Skip to content

Commit 59a37b3

Browse files
authored
Merge pull request #499 from rtfd/fix-stickynav-default
Default stickynav to on properly.
2 parents a765112 + 8be825a commit 59a37b3

File tree

2 files changed

+27
-12
lines changed

2 files changed

+27
-12
lines changed

README.rst

Lines changed: 26 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -87,29 +87,44 @@ file of this repository, and can be defined in your project's ``conf.py`` via
8787
.. code:: python
8888
8989
html_theme_options = {
90-
'typekit_id': hiw1hhg,
91-
'canonical_url':
92-
'analytics_id':
93-
'collapse_navigation': False
94-
'sticky_navigation': False
95-
'navigation_depth': 4
96-
'includehidden': True
97-
'logo_only':
98-
'display_version': True
90+
'typekit_id': '',
91+
'canonical_url': '',
92+
'analytics_id': '',
93+
'logo_only': False,
94+
'display_version': True,
9995
'prev_next_buttons_location': bottom,
100-
'style_external_links': False
96+
'style_external_links': False,
97+
# Toc options
98+
'collapse_navigation': False,
99+
'sticky_navigation': True,
100+
'navigation_depth': 4,
101+
'includehidden': True,
101102
}
102103
103104
The following options are available:
104105

106+
Base options
107+
~~~~~~~~~~~~
108+
109+
* ``typekit_id`` This will let users specify a typekit id to use for displaying nicer fonts.
105110
* ``canonical_url`` This will specify a `canonical url <https://en.wikipedia.org/wiki/Canonical_link_element>`__
106111
to let search engines know they should give higher ranking to latest version of the docs.
107112
The url points to the root of the documentation and requires a trailing slash.
108-
* ``includehidden`` Specifies if the global toctree includes toctrees marked with the `:hidden:` option
113+
* ``analytics_id`` Change the Google Analytics ID that is included on pages.
114+
* ``display_version`` With this disabled, the version number isn't shown at the top of the sidebar.
109115
* ``prev_next_buttons_location`` can take the value ``bottom``, ``top``, ``both`` , or ``None``
110116
and will display the "Next" and "Previous" buttons accordingly
111117
* ``style_external_links`` Add an icon next to external links. Defaults to ``False``.
112118

119+
TOC Options
120+
~~~~~~~~~~~
121+
122+
These effect how we display the Table of Contents in the side bar. You can read more about them here: http://www.sphinx-doc.org/en/stable/templating.html#toctree
123+
124+
* ``collapse_navigation`` With this enabled, you will lose the `[+]` drop downs next to each section in the sidebar. This is useful for _very large_ documents.
125+
* ``sticky_navigation`` This causes the sidebar to scroll with the main page content as you scroll the page.
126+
* ``includehidden`` Specifies if the sidebar includes toctrees marked with the `:hidden:` option
127+
113128
Page-level configuration
114129
------------------------
115130

sphinx_rtd_theme/theme.conf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ typekit_id = hiw1hhg
88
canonical_url =
99
analytics_id =
1010
collapse_navigation = False
11-
sticky_navigation = False
11+
sticky_navigation = True
1212
navigation_depth = 4
1313
includehidden = True
1414
logo_only =

0 commit comments

Comments
 (0)