-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
DOC: add a page with a different sidebar
- Loading branch information
Showing
3 changed files
with
37 additions
and
1 deletion.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
Page With Different Sidebar | ||
=========================== | ||
|
||
This page has different content in the sidebar, | ||
see :confval:`html_sidebars` in :download:`conf.py <../conf.py>`: | ||
|
||
.. literalinclude:: ../conf.py | ||
:caption: conf.py | ||
:language: python | ||
:linenos: | ||
:lineno-match: | ||
:start-at: html_sidebars | ||
:end-at: } | ||
|
||
|
||
Local Table of Contents | ||
----------------------- | ||
|
||
Instead of displaying the whole TOC in the sidebar | ||
with ``globaltoc.html``, | ||
a local TOC can be shown with ``localtoc.html``. | ||
|
||
|
||
Search Box | ||
---------- | ||
|
||
If you don't like the search button in the topbar, | ||
you can also put a search field into the sidebar | ||
by selecting the template ``searchbox.html``. | ||
|
||
Like the search button, this is only available when JavaScript is enabled. |