-
-
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] Add local option to contents directive
- Loading branch information
Showing
7 changed files
with
146 additions
and
7 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
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
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
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
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
37 changes: 37 additions & 0 deletions
37
tests/Integration/tests/navigation/contents/contents-local/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,37 @@ | ||
<!-- content start --> | ||
<div class="section" id="title"> | ||
<h1>Title</h1> | ||
|
||
<p>Some Text</p> | ||
|
||
<div class="section" id="properties"> | ||
<h2>Properties</h2> | ||
<div class="contents"> | ||
<ul class="menu-level"> | ||
<li class="toc-item"> | ||
<a href="/index.html#additionalpreviewlanguages">additionalPreviewLanguages</a> | ||
|
||
|
||
</li> | ||
<li class="toc-item"> | ||
<a href="/index.html#alertpopups">alertPopups</a> | ||
|
||
|
||
</li> | ||
</ul> | ||
</div> | ||
<div class="section" id="additionalpreviewlanguages"> | ||
<h3>additionalPreviewLanguages</h3> | ||
|
||
<p>some text</p> | ||
|
||
</div> | ||
<div class="section" id="alertpopups"> | ||
<h3>alertPopups</h3> | ||
|
||
<p>another text</p> | ||
|
||
</div> | ||
</div> | ||
</div> | ||
<!-- content end --> |
22 changes: 22 additions & 0 deletions
22
tests/Integration/tests/navigation/contents/contents-local/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,22 @@ | ||
===== | ||
Title | ||
===== | ||
|
||
Some Text | ||
|
||
Properties | ||
========== | ||
|
||
.. contents:: | ||
:depth: 2 | ||
:local: | ||
|
||
additionalPreviewLanguages | ||
-------------------------- | ||
|
||
some text | ||
|
||
alertPopups | ||
----------- | ||
|
||
another text |