Skip to content

Commit bc49abe

Browse files
committed
minor #105 Minor tweak in admonition titles (javiereguiluz)
This PR was merged into the main branch. Discussion ---------- Minor tweak in admonition titles We need this minor change for some upcoming changes. Commits ------- 34d085c Minor tweak in admonition titles
2 parents f0cf6f2 + 34d085c commit bc49abe

File tree

13 files changed

+23
-23
lines changed

13 files changed

+23
-23
lines changed

src/Templates/default/html/directives/admonition.html.twig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,5 +14,5 @@
1414
{% elseif name in ['seealso'] %}
1515
<svg xmlns="http://www.w3.org/2000/svg" fill="none" width="24" height="24" viewBox="0 0 24 24" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M13.828 10.172a4 4 0 00-5.656 0l-4 4a4 4 0 105.656 5.656l1.102-1.101m-.758-4.899a4 4 0 005.656 0l4-4a4 4 0 00-5.656-5.656l-1.1 1.1" /></svg>
1616
{% endif %}
17-
{{ text }}
17+
<span>{{ text }}</span>
1818
</p>
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
<div class="admonition-wrapper"><div class="admonition admonition-sidebar"><p class="sidebar-title">{{ title|raw }}</p>
1+
<div class="admonition-wrapper"><div class="admonition admonition-sidebar"><p class="sidebar-title"><span>{{ title|raw }}</span></p>
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<div class="admonition admonition-default screencast_class">
22
<p class="admonition-title">
3-
Screencast
3+
<span>Screencast</span>
44
</p><p>Do you prefer video tutorials? Check out the the screencasts.</p>
55
</div>
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<div class="admonition admonition-best-practice ">
22
<p class="admonition-title">
3-
Best Practice
3+
<span>Best Practice</span>
44
</p><p>Use the bcrypt encoder for hashing your users' passwords.</p>
55
</div>
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<div class="admonition admonition-caution ">
22
<p class="admonition-title">
3-
<svg xmlns="http://www.w3.org/2000/svg" fill="none" width="24" height="24" viewBox="0 0 24 24" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M12 8v4m0 4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z" /></svg>
4-
Caution
3+
<svg xmlns="http://www.w3.org/2000/svg" fill="none" width="24" height="24" viewBox="0 0 24 24" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M12 8v4m0 4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z" /></svg>
4+
<span>Caution</span>
55
</p><p>Using too many sidebars or caution directives can be distracting!</p>
66
</div>

tests/fixtures/expected/blocks/directives/note-code-block-nested.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<div class="admonition admonition-note ">
22
<p class="admonition-title">
3-
<svg xmlns="http://www.w3.org/2000/svg" fill="none" width="24" height="24" viewBox="0 0 24 24" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M11 5H6a2 2 0 00-2 2v11a2 2 0 002 2h11a2 2 0 002-2v-5m-1.414-9.414a2 2 0 112.828 2.828L11.828 15H9v-2.828l8.586-8.586z" /></svg>
4-
Note
3+
<svg xmlns="http://www.w3.org/2000/svg" fill="none" width="24" height="24" viewBox="0 0 24 24" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M11 5H6a2 2 0 00-2 2v11a2 2 0 002 2h11a2 2 0 002-2v-5m-1.414-9.414a2 2 0 112.828 2.828L11.828 15H9v-2.828l8.586-8.586z" /></svg>
4+
<span>Note</span>
55
</p><p>test</p>
66
<div translate="no" class="notranslate codeblock codeblock-loc-1 codeblock-php">
77
<div class="codeblock-scroll">
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<div class="admonition admonition-note ">
22
<p class="admonition-title">
3-
<svg xmlns="http://www.w3.org/2000/svg" fill="none" width="24" height="24" viewBox="0 0 24 24" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M11 5H6a2 2 0 00-2 2v11a2 2 0 002 2h11a2 2 0 002-2v-5m-1.414-9.414a2 2 0 112.828 2.828L11.828 15H9v-2.828l8.586-8.586z" /></svg>
4-
Note
3+
<svg xmlns="http://www.w3.org/2000/svg" fill="none" width="24" height="24" viewBox="0 0 24 24" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M11 5H6a2 2 0 00-2 2v11a2 2 0 002 2h11a2 2 0 002-2v-5m-1.414-9.414a2 2 0 112.828 2.828L11.828 15H9v-2.828l8.586-8.586z" /></svg>
4+
<span>Note</span>
55
</p><p>Sometimes we add notes. But not too often because they interrupt the flow.</p>
66
</div>

tests/fixtures/expected/blocks/directives/seealso.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<svg xmlns="http://www.w3.org/2000/svg" fill="none" width="24" height="24" viewBox="0 0 24 24" stroke="currentColor">
44
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M13.828 10.172a4 4 0 00-5.656 0l-4 4a4 4 0 105.656 5.656l1.102-1.101m-.758-4.899a4 4 0 005.656 0l4-4a4 4 0 00-5.656-5.656l-1.1 1.1"/>
55
</svg>
6-
See also
6+
<span>See also</span>
77
</p>
88
<p>Also check out the homepage</p>
99
</div>

tests/fixtures/expected/blocks/directives/sidebar-code-block-nested.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<div class="admonition-wrapper"><div class="admonition admonition-sidebar"><p class="sidebar-title">The sidebar's title</p><p>some text before code block</p>
1+
<div class="admonition-wrapper"><div class="admonition admonition-sidebar"><p class="sidebar-title"><span>The sidebar's title</span></p><p>some text before code block</p>
22
<div translate="no" class="notranslate codeblock codeblock-loc-1 codeblock-php">
33
<div class="codeblock-scroll">
44
<pre class="codeblock-lines">1</pre>
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
<div class="admonition-wrapper"><div class="admonition admonition-sidebar"><p class="sidebar-title">The sidebar's title</p><p>some text inside sidebar</p>
1+
<div class="admonition-wrapper"><div class="admonition admonition-sidebar"><p class="sidebar-title"><span>The sidebar's title</span></p><p>some text inside sidebar</p>
22
</div></div>
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<div class="admonition admonition-tip ">
22
<p class="admonition-title">
33
<svg xmlns="http://www.w3.org/2000/svg" fill="none" width="24" height="24" viewBox="0 0 24 24" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9.663 17h4.673M12 3v1m6.364 1.636l-.707.707M21 12h-1M4 12H3m3.343-5.657l-.707-.707m2.828 9.9a5 5 0 117.072 0l-.548.547A3.374 3.374 0 0014 18.469V19a2 2 0 11-4 0v-.531c0-.895-.356-1.754-.988-2.386l-.548-.547z" /></svg>
4-
Tip
4+
<span>Tip</span>
55
</p><p>This is a little tip about something! We an also talk about specific</p>
66
</div>

tests/fixtures/expected/blocks/directives/versionadded.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<svg xmlns="http://www.w3.org/2000/svg" fill="none" width="24" height="24" viewbox="0 0 24 24" stroke="currentColor">
44
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M19 20H5a2 2 0 01-2-2V6a2 2 0 012-2h10a2 2 0 012 2v1m2 13a2 2 0 01-2-2V7m2 13a2 2 0 002-2V9a2 2 0 00-2-2h-2m-4-3H9M7 16h6M7 8h6v4H7V8z"></path>
55
</svg>
6-
New in version 4.1
6+
<span>New in version 4.1</span>
77

88
</p>
99
<p>This option was introduced in Symfony 2.6 and replaces another option, which is available prior to 2.6.</p>

tests/fixtures/expected/main/datetime.html

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ <h3 id="the-date-format-option"><a class="headerlink" href="#the-date-format-opt
6363
<div class="admonition admonition-tip ">
6464
<p class="admonition-title">
6565
<svg xmlns="http://www.w3.org/2000/svg" fill="none" width="24" height="24" viewBox="0 0 24 24" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9.663 17h4.673M12 3v1m6.364 1.636l-.707.707M21 12h-1M4 12H3m3.343-5.657l-.707-.707m2.828 9.9a5 5 0 117.072 0l-.548.547A3.374 3.374 0 0014 18.469V19a2 2 0 11-4 0v-.531c0-.895-.356-1.754-.988-2.386l-.548-.547z" /></svg>
66-
Tip
66+
<span>Tip</span>
6767
</p><p>This is a little tip about something! We an also talk about specific
6868
methods: <a href="https://api.symfony.com/4.0/Symfony/Component/BrowserKit/Client.html#method_doRequest" class="reference external" title="Symfony\Component\BrowserKit\Client::doRequest()">doRequest()</a>.
6969
Or a namespace: <a href="https://api.symfony.com/4.0/Symfony/Component/Validator/Constraints.html" class="reference external" title="Symfony\Component\Validator\Constraints">Constraints</a>.
@@ -76,8 +76,8 @@ <h3 id="date-widget"><a class="headerlink" href="#date-widget" title="Permalink
7676
<p>Date widget!</p>
7777
<div class="admonition admonition-note ">
7878
<p class="admonition-title">
79-
<svg xmlns="http://www.w3.org/2000/svg" fill="none" width="24" height="24" viewBox="0 0 24 24" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M11 5H6a2 2 0 00-2 2v11a2 2 0 002 2h11a2 2 0 002-2v-5m-1.414-9.414a2 2 0 112.828 2.828L11.828 15H9v-2.828l8.586-8.586z" /></svg>
80-
Note
79+
<svg xmlns="http://www.w3.org/2000/svg" fill="none" width="24" height="24" viewBox="0 0 24 24" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M11 5H6a2 2 0 00-2 2v11a2 2 0 002 2h11a2 2 0 002-2v-5m-1.414-9.414a2 2 0 112.828 2.828L11.828 15H9v-2.828l8.586-8.586z" /></svg>
80+
<span>Note</span>
8181
</p><p>Sometimes we add notes. But not too often because they interrupt the flow.
8282
<a href="form/form_type.html#internal-reference" class="reference internal">FormType Documentation</a></p>
8383
</div>
@@ -90,7 +90,7 @@ <h3 id="placeholder"><a class="headerlink" href="#placeholder" title="Permalink
9090
<svg xmlns="http://www.w3.org/2000/svg" fill="none" width="24" height="24" viewBox="0 0 24 24" stroke="currentColor">
9191
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M19 20H5a2 2 0 01-2-2V6a2 2 0 012-2h10a2 2 0 012 2v1m2 13a2 2 0 01-2-2V7m2 13a2 2 0 002-2V9a2 2 0 00-2-2h-2m-4-3H9M7 16h6M7 8h6v4H7V8z"></path>
9292
</svg>
93-
New in version 2.6</p>
93+
<span>New in version 2.6</span></p>
9494
<p>The <code translate="no" class="notranslate">placeholder</code> option was introduced in Symfony 2.6 and replaces
9595
<code translate="no" class="notranslate">empty_value</code>, which is available prior to 2.6.
9696
<a href="form/form_type.html#internal-reference" class="reference internal">FormType Documentation</a></p></div>
@@ -117,7 +117,7 @@ <h3 id="placeholder"><a class="headerlink" href="#placeholder" title="Permalink
117117
<svg xmlns="http://www.w3.org/2000/svg" fill="none" width="24" height="24" viewBox="0 0 24 24" stroke="currentColor">
118118
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M13.828 10.172a4 4 0 00-5.656 0l-4 4a4 4 0 105.656 5.656l1.102-1.101m-.758-4.899a4 4 0 005.656 0l4-4a4 4 0 00-5.656-5.656l-1.1 1.1" />
119119
</svg>
120-
See also
120+
<span>See also</span>
121121
</p><p>Also check out the homepage - <a href="index.html" class="reference internal">Some Test Docs!</a>.
122122
<a href="form/form_type.html#internal-reference" class="reference internal">FormType Documentation</a></p>
123123
</div>
@@ -137,17 +137,17 @@ <h3 id="format"><a class="headerlink" href="#format" title="Permalink to this he
137137
<p>If the <code translate="no" class="notranslate">widget</code> option is set to <code translate="no" class="notranslate">single_text</code>, this option specifies
138138
the format of the input, i.e. how Symfony will interpret the given input
139139
as a datetime string. See <a href="http://userguide.icu-project.org/formatparse/datetime#TOC-Date-Time-Format-Syntax" class="reference external" rel="external noopener noreferrer" target="_blank">Date/Time Format Syntax</a>.</p>
140-
<div class="admonition-wrapper"><div class="admonition admonition-sidebar"><p class="sidebar-title">Everyone loves sidebars</p><p>But do they really? They also get in the way!</p>
140+
<div class="admonition-wrapper"><div class="admonition admonition-sidebar"><p class="sidebar-title"><span>Everyone loves sidebars</span></p><p>But do they really? They also get in the way!</p>
141141
</div></div>
142142
<div class="admonition admonition-caution ">
143143
<p class="admonition-title">
144144
<svg xmlns="http://www.w3.org/2000/svg" fill="none" width="24" height="24" viewBox="0 0 24 24" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M12 8v4m0 4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z" /></svg>
145-
Caution
145+
<span>Caution</span>
146146
</p><p>Using too many sidebars or caution directives can be distracting!</p>
147147
</div>
148148
<div class="admonition admonition-best-practice ">
149149
<p class="admonition-title">
150-
Best Practice
150+
<span>Best Practice</span>
151151
</p><p>Use the bcrypt encoder for hashing your users' passwords.</p>
152152
</div>
153153
</div>

0 commit comments

Comments
 (0)