I am using the nice sphinx-bootstrap-theme 0.3.4 and trying to apply it on top of Sphinx Python Documentation Generator version 1.2.
When I build the documentation via make html
, I don't get any sidebar, although it's shown to be possible in this example. Neither, I was able to find any option to enable sidebar in the build configuration file (conf.py).
Doing the following:
html_sidebars = {'sidebar': ['localtoc.html', 'sourcelink.html', 'searchbox.html']}
doesn't help.
Thanks for any hint on how it's possible to enable sidebar from such a Sphinx theme.
Best Answer
Just figured it out. This should do the trick.
Using this as a reference
Sphinx theming guide html_sidebars
I am experimenting with creating a custom sidebar since I don't like the included options. Using the bootstrap demo index.html I created the following for a custom sidebar. Just name it something like
my_custom_sidebar.html
and put it in /source/_templatesThen edit
html_sidebars