Skip to content

Commit 72d1080

Browse files
authored
[BUGFIX] Remove duplicated admonition titles (#1062)
resolves: #1030
1 parent fbf37fa commit 72d1080

File tree

8 files changed

+28
-4
lines changed

8 files changed

+28
-4
lines changed

packages/typo3-docs-theme/resources/template/body/admonition.html.twig

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,5 @@
2424
{% if titleOfSeverity %}<p class="admonition-title">{{ titleOfSeverity }}</p>
2525
{% elseif title and isTitled %}<p class="admonition-title">{{ renderNode(title) }}</p>
2626
{% endif %}
27-
{% if title and not isTitled %}<p>{{ renderNode(title) }}</p>
28-
{% endif %}
2927
{{ renderNode(node) }}
3028
</div>
31-

tests/Integration/tests/admonitions/expected/index.html

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,6 @@ <h2>Tip<a class="headerlink" href="#tip" data-bs-toggle="modal" data-bs-target="
4747

4848
<div class="admonition hint" role="alert">
4949
<p class="admonition-title">Hint</p>
50-
<p>One line hint</p>
5150

5251
</div>
5352
</section>
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
<!-- content start -->
2+
3+
<section class="section" id="markdown-admonitions">
4+
<h1>MarkDown admonitions<a class="headerlink" href="#markdown-admonitions" data-bs-toggle="modal" data-bs-target="#linkReferenceModal" title="Reference this headline">&nbsp;<i class="fa-solid fa-link"></i></a></h1>
5+
6+
<div class="admonition note" role="alert">
7+
<p class="admonition-title">Note</p>
8+
<strong>Image and screenshot files</strong> should be placed within <code>Images/MyGuidesFileName/</code> where <code>MyGuidesFileName</code> is your guide&#039;s filename without the final <code>.md</code>.
9+
</div>
10+
</section>
11+
<!-- content end -->
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# MarkDown admonitions
2+
3+
> [!NOTE]
4+
> **Image and screenshot files** should be placed within `Images/MyGuidesFileName/` where `MyGuidesFileName` is your guide's filename without the final `.md`.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
<?xml version="1.0" encoding="UTF-8" ?>
2+
<guides xmlns="https://www.phpdoc.org/guides"
3+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4+
xsi:schemaLocation="https://www.phpdoc.org/guides vendor/phpdocumentor/guides-cli/resources/schema/guides.xsd"
5+
links-are-relative="true"
6+
input-file="README.md"
7+
input-format="md"
8+
>
9+
10+
<extension class="\T3Docs\Typo3DocsTheme\DependencyInjection\Typo3DocsThemeExtension"
11+
copy-sources="false"
12+
/>
13+
</guides>

0 commit comments

Comments
 (0)