I'd like to have a link to the automatically generated index in the sidebar when using sphinx-rtd-theme
. I've tried adding it to the toctree:
.. toctree::
first
second
Index <:ref:`genindex`>
but this resulted in
WARNING: toctree contains reference to nonexisting document u':ref:`geinindex`'
from Sphinx and no other effect.
I think I could simply hardcode the index in the theme layout.html
file, but perhaps there is some better way, not involving modifying the standard theme?
TIA for any hints!
Header For Index