Skip to content

Commit fcab864

Browse files
committed
[TASK] composer update phpdocumentor/guides
Additionally phpstan was updated. The most recent PR of the guides fixed some problems but created new ones. Resolves #103 I added new tests for the use case toc menu with maxdepth without titlesonly, subpages having subsection. For some reason up until now the menu was not displayed in the edit-on-gitghub test, now it is correctly displayed. However in glob toc trees with multiple glob patterns the order is currently not preseved, making that test fail. We are working on a flollow up that will hopefully fix this issue.
1 parent 67478e4 commit fcab864

File tree

20 files changed

+794
-30
lines changed

20 files changed

+794
-30
lines changed

composer.lock

Lines changed: 29 additions & 29 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

tests/Integration/tests-full/edit-on-github/expected/index.html

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,14 @@
6868
<div aria-label="Main navigation" class="main_menu" role="navigation">
6969

7070
<ul class="menu-level-1">
71+
<li class="">
72+
<a href="page1.html">
73+
Page 1
74+
</a></li>
75+
<li class="">
76+
<a href="subpages/index.html">
77+
Subpages
78+
</a></li>
7179
</ul>
7280

7381

@@ -108,6 +116,10 @@ <h1>Document Title<a class="headerlink" href="#document-title" data-bs-toggle="m
108116
<p>Lorem Ipsum Dolor.</p>
109117
<div class="toctree-wrapper compound">
110118
<ul class="menu-level">
119+
<li class="toc-item"><a href="page1.html#page-1">Page 1</a></li>
120+
121+
<li class="toc-item"><a href="subpages/index.html#subpages">Subpages</a></li>
122+
111123
</ul>
112124
</div>
113125

tests/Integration/tests-full/edit-on-github/expected/page1.html

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,14 @@
6969
<div aria-label="Main navigation" class="main_menu" role="navigation">
7070

7171
<ul class="menu-level-1">
72+
<li class=" current active">
73+
<a href="#" aria-current="page">
74+
Page 1
75+
</a></li>
76+
<li class="">
77+
<a href="subpages/index.html">
78+
Subpages
79+
</a></li>
7280
</ul>
7381

7482

tests/Integration/tests-full/edit-on-github/expected/subpages/index.html

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,14 @@
6969
<div aria-label="Main navigation" class="main_menu" role="navigation">
7070

7171
<ul class="menu-level-1">
72+
<li class="">
73+
<a href="../page1.html">
74+
Page 1
75+
</a></li>
76+
<li class=" current active">
77+
<a href="#" aria-current="page">
78+
Subpages
79+
</a></li>
7280
</ul>
7381

7482

tests/Integration/tests-full/menu-subpages-max-1/input/index.rst

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ Lorem Ipsum Dolor.
1313

1414
.. toctree::
1515
:glob:
16-
:titlesonly:
1716
:maxdepth: 1
1817

1918
*/index

0 commit comments

Comments
 (0)