Skip to content

Commit 61fc85c

Browse files
authored
Merge pull request #951 from phpDocumentor/backport/1.x/pr-944
[1.x] Fix Tex template name
2 parents bb92a54 + 11844c4 commit 61fc85c

File tree

149 files changed

+4922
-4456
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

149 files changed

+4922
-4456
lines changed
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
<div class="tab-pane fade {%- if tab.active %} show active{% endif -%}" id="{{ tab.key }}-{{ tabsId }}" role="tabpanel" aria-labelledby="{{ tab.key }}-tab-{{ tabsId }}">
22
{{ renderNode(tab.value) }}
33
</div>
4+
{# force a new line at the end of the file #}

packages/guides-theme-bootstrap/resources/template/body/directive/tabs/tabs-button.html.twig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,4 @@
66
{{ renderNode(tab.content) }}
77
</button>
88
</li>
9+
{# force a new line at the end of the file #}
Lines changed: 15 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,19 @@
11

22
<ul class="level-{{ menuEntry.level }}">
3-
{% for entry in menuEntry.children -%}
4-
<li><a href="{{ renderLink(entry.url) }}"
5-
class="nav-link {%- if menu.currentPath == entry.url %} current {%- endif -%}{% if entry.url in menu.rootlinePaths %} active {%- endif -%}"
6-
{%- if menu.currentPath == entry.url %} aria-current="page" {%- endif -%} >
7-
{{ renderNode(entry.value.value) }}
8-
</a>
3+
{% for entry in menuEntry.children -%}
4+
<li>
5+
<a href="{{ renderLink(entry.url) }}"
6+
class="nav-link {%- if menu.currentPath == entry.url %} current {%- endif -%}{% if entry.url in menu.rootlinePaths %} active {%- endif -%}"
7+
{%- if menu.currentPath == entry.url %} aria-current="page" {%- endif -%}>
8+
{{- renderNode(entry.value.value) -}}
9+
</a>
910

10-
{%- if entry.children|length %}
11-
{% include "body/menu/mainmenu/menu-level.html.twig" with {
12-
menuEntry:entry
13-
} %}
14-
{%- endif -%}
15-
</li>
16-
{% endfor %}
11+
{%- if entry.children|length %}
12+
{% include "body/menu/mainmenu/menu-level.html.twig" with {
13+
menuEntry:entry
14+
} %}
15+
{%- endif ~%}
16+
</li>
17+
{% endfor %}
1718
</ul>
19+
{# force a new line at the end of the file #}
Lines changed: 20 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,24 @@
11
<nav class="nav flex-column">
2-
{% if node.caption %}
3-
<h2>{{ renderNode(node.caption) }}</h2>
4-
{% endif %}
5-
<ul class="menu-level-main">
6-
{% for entry in node.menuEntries -%}
7-
<li><a href="{{ renderLink(entry.url) }}"
8-
class="nav-link {%- if node.currentPath == entry.url %} current {%- endif -%}{% if entry.url in node.rootlinePaths %} active {%- endif -%}"
9-
{%- if node.currentPath == entry.url %} aria-current="page" {% endif -%} >
10-
{{ renderNode(entry.value.value) }}
11-
</a>
2+
{% if node.caption %}
3+
<h2>{{ renderNode(node.caption) }}</h2>
4+
{% endif %}
5+
<ul class="menu-level-main">
6+
{% for entry in node.menuEntries -%}
7+
<li>
8+
<a href="{{ renderLink(entry.url) }}"
9+
class="nav-link {%- if node.currentPath == entry.url %} current {%- endif -%}{% if entry.url in node.rootlinePaths %} active {%- endif -%}"
10+
{%- if node.currentPath == entry.url %} aria-current="page"{% endif -%}>
11+
{{- renderNode(entry.value.value) -}}
12+
</a>
1213

13-
{%- if entry.children|length %}
14-
{% include "body/menu/mainmenu/menu-level.html.twig" with {
15-
menu:node,
16-
menuEntry:entry
17-
} %}
18-
{%- endif -%}
14+
{%- if entry.children|length %}
15+
{% include "body/menu/mainmenu/menu-level.html.twig" with {
16+
menu:node,
17+
menuEntry:entry
18+
} %}
19+
{%- endif ~%}
1920
</li>
20-
{% endfor %}
21-
</ul>
22-
21+
{% endfor %}
22+
</ul>
2323
</nav>
24+
{# force a new line at the end of the file #}
Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
1+
12
<ul class="level-{{ node.level }}">
23
{% for entry in node.menuEntries -%}
3-
{% apply spaceless %}
4-
<li class="nav-item">
5-
<a href="{{ renderLink(entry.url) }}"
6-
class="nav-link {%- if menu.currentPath == entry.url %} current {%- endif -%}{% if entry.url in menu.rootlinePaths %} active {%- endif -%}"
7-
{%- if menu.currentPath == entry.url %} aria-current="page" {% endif %} >
8-
{{ renderNode(entry.value.value) }}
9-
</a>
10-
</li>
11-
{% endapply %}
12-
{%- endfor %}
4+
<li class="nav-item">
5+
<a href="{{ renderLink(entry.url) }}"
6+
class="nav-link {%- if menu.currentPath == entry.url %} current {%- endif -%}{% if entry.url in menu.rootlinePaths %} active {%- endif -%}"
7+
{%- if menu.currentPath == entry.url %} aria-current="page"{% endif %}>
8+
{{- renderNode(entry.value.value) -}}
9+
</a>
10+
</li>
11+
{%~ endfor %}
1312
</ul>
13+
{# force a new line at the end of the file #}

packages/guides-theme-bootstrap/resources/template/body/menu/navbar/table-of-content.html.twig

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@
22
<ul class="navbar-nav me-auto mb-2 mb-lg-0">
33
{% for entry in node.menuEntries -%}
44
<li class="nav-item">
5-
<a href="{{ renderLink(entry.url) }}" class="nav-link {%- if node.currentPath == entry.url %} current {%- endif -%}{% if entry.url in node.rootlinePaths %} active {%- endif -%}"
6-
{%- if node.currentPath == entry.url %} aria-current="page" {% endif %} >
7-
{{ renderNode(entry.value.value) }}
8-
</a>
5+
<a href="{{ renderLink(entry.url) }}" class="nav-link {%- if node.currentPath == entry.url %} current {%- endif -%}{% if entry.url in node.rootlinePaths %} active {%- endif -%}"
6+
{%- if node.currentPath == entry.url %} aria-current="page"{% endif %}>
7+
{{ renderNode(entry.value.value) }}
8+
</a>
99
</li>
1010

1111
{%- if entry.children|length %}
@@ -16,3 +16,4 @@
1616
{%- endif -%}
1717
{% endfor %}
1818
</ul>
19+
{# force a new line at the end of the file #}

packages/guides-theme-bootstrap/resources/template/structure/navigation/navbar.html.twig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
<span class="navbar-toggler-icon"></span>
88
</button>
99
<div class="collapse navbar-collapse" id="navbarSupportedContent">
10-
1110
{% if parts.navbar %}
1211
{% for child in parts.navbar -%}
1312
{{ renderNode(child) }}
@@ -18,3 +17,4 @@
1817
</div>
1918
</div>
2019
</nav>
20+
{# force a new line at the end of the file #}

packages/guides/resources/config/guides.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@
5757
use phpDocumentor\Guides\Twig\EnvironmentBuilder;
5858
use phpDocumentor\Guides\Twig\GlobalMenuExtension;
5959
use phpDocumentor\Guides\Twig\Theme\ThemeManager;
60+
use phpDocumentor\Guides\Twig\TrimFilesystemLoader;
6061
use phpDocumentor\Guides\Twig\TwigTemplateRenderer;
6162
use Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator;
6263
use Symfony\Component\DependencyInjection\Reference;
@@ -223,11 +224,12 @@
223224
param('phpdoc.guides.base_template_paths'),
224225
)
225226

226-
->set(FilesystemLoader::class)
227+
->set(TrimFilesystemLoader::class)
227228
->arg(
228229
'$paths',
229230
param('phpdoc.guides.base_template_paths'),
230231
)
232+
->alias(FilesystemLoader::class, TrimFilesystemLoader::class)
231233

232234
->set(LoadSettingsFromComposer::class)
233235
->tag('event_listener', ['event' => PostProjectNodeCreated::class])

packages/guides/resources/template/html/body/admonition.html.twig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
12
<div class="admonition {{ name }}{{ class ? (' '~class) }}{% if node.classes %} {{ node.classesString }}{% endif %}">
23
{% if title and isTitled %}<p class="admonition-title">{{ renderNode(title) }}</p>{% endif %}
34
{% if title and not isTitled %}<p>{{ renderNode(title) }}</p>{% endif %}

packages/guides/resources/template/html/body/code.html.twig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,4 @@
1212
{%- if node.emphasizeLines %} data-emphasize-lines="{{ node.emphasizeLines }}"{% endif -%}>
1313
{%- include "body/code/highlighted-code.html.twig" -%}
1414
</code></pre>
15-
{%- endif -%}
15+
{%~ endif -%}

0 commit comments

Comments
 (0)