There is no problem on de index.rst
it seems as below:
However, when I go to another page, in my case it is annotation-module.rst
, the sidebar selects and shows both index
and annotation-module
, as seen below:
However, I want to have only Annotation Module page to be activated and show its subsections.
My conf.py
only uses html_theme
by looking for the READTHEDOCS
environment variable as below:
if not on_rtd: # only import and set the theme if we're building docs locally
try:
import sphinx_rtd_theme
html_theme = "sphinx_rtd_theme"
html_theme_path = [sphinx_rtd_theme.get_html_theme_path()]
except Exception:
pass
My index.rst
:
Welcome to exceptive's documentation!
=====================================
.. toctree::
:maxdepth: 2
:caption: Contents:
index
annotation-module
Here I have some introductory text.
And annotation-module.rst
doesn't even include any toctree
,I only have sections under it.
So, how do I only activate current documents sections on sidebar?
Here is the source directory of docs as requested by Steve Piercy.
Environment
- Python 3.5
- Sphinx 1.7.6
- sphinx-rtd-theme 0.4.0