-
-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[FEATURE] Enable relative menu entries
resolves #821
- Loading branch information
Showing
13 changed files
with
280 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
163 changes: 163 additions & 0 deletions
163
tests/Integration/tests-full/bootstrap/bootstrap-menu-relative/expected/index.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,163 @@ | ||
<!DOCTYPE html> | ||
<html class="no-js" lang="en"> | ||
<head> | ||
<title>Document Title - Bootstrap Theme</title> | ||
<!-- Required meta tags --> | ||
<meta charset="utf-8"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1"> | ||
|
||
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.0.2/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-EVSTQN3/azprG1Anm3QDgpJLIm9Nao0Yz1ztcQTwFspd3yD65VohhpuuCOmLASjC" crossorigin="anonymous"> | ||
</head> | ||
<body> | ||
<header class=""> | ||
|
||
<nav class="navbar navbar-expand-lg navbar-dark bg-primary"> | ||
<div class="container"> | ||
|
||
<a class="navbar-brand" href="#">Navbar</a> | ||
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation"> | ||
<span class="navbar-toggler-icon"></span> | ||
</button> | ||
<div class="collapse navbar-collapse" id="navbarSupportedContent"> | ||
|
||
|
||
<ul class="navbar-nav me-auto mb-2 mb-lg-0"> | ||
<li class="nav-item"> | ||
<a href="someDirectory/index.html" class="nav-link" > | ||
Some Page | ||
</a> | ||
</li> <ul class="level-"> | ||
<li class="nav-item"><a href="someDirectory/index.html" | ||
class="nav-link" > | ||
Some Page | ||
</a></li></ul> | ||
</ul> | ||
|
||
|
||
</div> | ||
</div> | ||
</nav> | ||
</header> | ||
<main id="main-content"> | ||
<div class="container"> | ||
<div class="container"> | ||
<div class="row"> | ||
<div class="col-lg-3"> | ||
<nav class="nav flex-column"> | ||
<ul class="menu-level-main"> | ||
<li><a href="someDirectory/index.html" | ||
class="nav-link"> | ||
Some Page | ||
</a> | ||
<ul class="level-1"> | ||
<li><a href="levelup1.html" | ||
class="nav-link"> | ||
Level up 1 | ||
</a></li> | ||
<li><a href="someDirectory/anotherDirectory/index.html" | ||
class="nav-link"> | ||
Another Page | ||
</a> | ||
<ul class="level-2"> | ||
<li><a href="levelup2.html" | ||
class="nav-link"> | ||
Level up 2 | ||
</a></li> | ||
<li><a href="someDirectory/anotherDirectory/yetAnotherDirectory/index.html" | ||
class="nav-link"> | ||
Yet Another Page | ||
</a> | ||
<ul class="level-3"> | ||
<li><a href="levelup3.html" | ||
class="nav-link"> | ||
Level up 3 | ||
</a></li> | ||
<li><a href="someDirectory/anotherDirectory/yetAnotherDirectory/andYetAnotherDirectory/index.html" | ||
class="nav-link"> | ||
And Yet Another Page | ||
</a> | ||
<ul class="level-4"> | ||
<li><a href="levelup4.html" | ||
class="nav-link"> | ||
Level up 4 | ||
</a></li> | ||
</ul> | ||
</li> | ||
</ul> | ||
</li> | ||
</ul> | ||
</li> | ||
</ul> | ||
</li> | ||
</ul> | ||
|
||
</nav> | ||
|
||
|
||
</div> | ||
<div class="col-lg-9"> | ||
|
||
<nav aria-label="breadcrumb"> | ||
<ol class="breadcrumb"> | ||
<li class="breadcrumb-item"><a href="#">Document Title</a></li> | ||
</ol> | ||
</nav> | ||
|
||
<!-- content start --> | ||
|
||
|
||
<div class="section" id="document-title"> | ||
<h1>Document Title</h1> | ||
|
||
<p>Lorem Ipsum Dolor.</p> | ||
<div class="toc"> | ||
<ul class="menu-level"> | ||
<li class="toc-item"><a href="someDirectory/index.html#some-page">Some Page</a> <ul class="menu-level-1"> | ||
<li class="toc-item"><a href="levelup1.html#level-up-1">Level up 1</a></li> | ||
|
||
<li class="toc-item"><a href="someDirectory/anotherDirectory/index.html#another-page">Another Page</a> <ul class="menu-level-2"> | ||
<li class="toc-item"><a href="levelup2.html#level-up-2">Level up 2</a></li> | ||
|
||
<li class="toc-item"><a href="someDirectory/anotherDirectory/yetAnotherDirectory/index.html#yet-another-page">Yet Another Page</a> <ul class="menu-level-3"> | ||
<li class="toc-item"><a href="levelup3.html#level-up-3">Level up 3</a></li> | ||
|
||
<li class="toc-item"><a href="someDirectory/anotherDirectory/yetAnotherDirectory/andYetAnotherDirectory/index.html#and-yet-another-page">And Yet Another Page</a> <ul class="menu-level-4"> | ||
<li class="toc-item"><a href="levelup4.html#level-up-4">Level up 4</a></li> | ||
|
||
</ul></li> | ||
|
||
</ul></li> | ||
|
||
</ul></li> | ||
|
||
</ul></li> | ||
|
||
</ul> | ||
</div> | ||
|
||
</div> | ||
|
||
<!-- content end --> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</main> | ||
<footer class="bg-primary text-light"> | ||
<div class="container"> | ||
<p>Generated by <a href="https://www.phpdoc.org/">phpDocumentor</a>.</p> | ||
</div> | ||
</footer> | ||
|
||
<!-- Optional JavaScript; choose one of the two! --> | ||
|
||
<!-- Option 1: Bootstrap Bundle with Popper --> | ||
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.0.2/dist/js/bootstrap.bundle.min.js" integrity="sha384-MrcW6ZMFYlzcLA8Nl+NtUVF0sA7MsXsP1UyJoMp4YLEuNSfAP+JcXn/tWtIaxVXM" crossorigin="anonymous"></script> | ||
|
||
<!-- Option 2: Separate Popper and Bootstrap JS --> | ||
<!-- | ||
<script src="https://cdn.jsdelivr.net/npm/@popperjs/core@2.9.2/dist/umd/popper.min.js" integrity="sha384-IQsoLXl5PILFhosVNubq5LC7Qb9DXgDA9i+tQ8Zj3iwWAwPtgFTxbJ8NT4GN1R8p" crossorigin="anonymous"></script> | ||
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.0.2/dist/js/bootstrap.min.js" integrity="sha384-cVKIPhGWiC2Al4u+LWgxfKTRIcfu0JTxR+EQDz/bgldoEyl4H0zUF0QKbrJ0EcQF" crossorigin="anonymous"></script> | ||
--> | ||
</body> | ||
</html> |
9 changes: 9 additions & 0 deletions
9
tests/Integration/tests-full/bootstrap/bootstrap-menu-relative/input/guides.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
<?xml version="1.0" encoding="UTF-8" ?> | ||
<guides xmlns="https://www.phpdoc.org/guides" | ||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xsi:schemaLocation="https://www.phpdoc.org/guides packages/guides-cli/resources/schema/guides.xsd" | ||
theme="bootstrap" | ||
links-are-relative="true" | ||
> | ||
<extension class="phpDocumentor\Guides\Bootstrap"/> | ||
</guides> |
6 changes: 6 additions & 0 deletions
6
.../Integration/tests-full/bootstrap/bootstrap-menu-relative/input/include.rst.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
.. documentblock:: | ||
:identifier: footer | ||
|
||
Generated by `phpDocumentor <https://www.phpdoc.org/>`__. | ||
|
||
.. role:: custom |
18 changes: 18 additions & 0 deletions
18
tests/Integration/tests-full/bootstrap/bootstrap-menu-relative/input/index.rst
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
.. include:: /include.rst.txt | ||
|
||
:project: | ||
Bootstrap Theme | ||
:version: | ||
1.0 | ||
|
||
============== | ||
Document Title | ||
============== | ||
|
||
Lorem Ipsum Dolor. | ||
|
||
.. toctree:: | ||
:glob: | ||
:titlesonly: | ||
|
||
*/index |
2 changes: 2 additions & 0 deletions
2
tests/Integration/tests-full/bootstrap/bootstrap-menu-relative/input/levelup1.rst
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
Level up 1 | ||
========== |
2 changes: 2 additions & 0 deletions
2
tests/Integration/tests-full/bootstrap/bootstrap-menu-relative/input/levelup2.rst
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
Level up 2 | ||
========== |
2 changes: 2 additions & 0 deletions
2
tests/Integration/tests-full/bootstrap/bootstrap-menu-relative/input/levelup3.rst
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
Level up 3 | ||
========== |
2 changes: 2 additions & 0 deletions
2
tests/Integration/tests-full/bootstrap/bootstrap-menu-relative/input/levelup4.rst
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
Level up 4 | ||
========== |
16 changes: 16 additions & 0 deletions
16
...ootstrap/bootstrap-menu-relative/input/someDirectory/anotherDirectory/index.rst
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
.. include:: /include.rst.txt | ||
|
||
============ | ||
Another Page | ||
============ | ||
|
||
Lorem Ipsum Dolor. | ||
|
||
|
||
.. toctree:: | ||
:hidden: | ||
:glob: | ||
:titlesonly: | ||
|
||
../../levelup2 | ||
*/index |
15 changes: 15 additions & 0 deletions
15
...Directory/anotherDirectory/yetAnotherDirectory/andYetAnotherDirectory/index.rst
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
.. include:: /include.rst.txt | ||
|
||
==================== | ||
And Yet Another Page | ||
==================== | ||
|
||
Lorem Ipsum Dolor. | ||
|
||
.. toctree:: | ||
:hidden: | ||
:glob: | ||
:titlesonly: | ||
|
||
../../../../levelup4 | ||
*/index |
16 changes: 16 additions & 0 deletions
16
...enu-relative/input/someDirectory/anotherDirectory/yetAnotherDirectory/index.rst
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
.. include:: /include.rst.txt | ||
|
||
================ | ||
Yet Another Page | ||
================ | ||
|
||
Lorem Ipsum Dolor. | ||
|
||
|
||
.. toctree:: | ||
:hidden: | ||
:glob: | ||
:titlesonly: | ||
|
||
../../../levelup3 | ||
*/index |
16 changes: 16 additions & 0 deletions
16
...tion/tests-full/bootstrap/bootstrap-menu-relative/input/someDirectory/index.rst
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
.. include:: /include.rst.txt | ||
|
||
========= | ||
Some Page | ||
========= | ||
|
||
Lorem Ipsum :custom:`Dolor`. | ||
|
||
.. toctree:: | ||
:hidden: | ||
:glob: | ||
:titlesonly: | ||
|
||
../levelup1 | ||
*/index | ||
|