sphinx-bootstrap-theme
sphinx-bootstrap-theme copied to clipboard
Remove "Site" tab from top navbar
I apologize if I missed this somewhere, but I can't find this anywhere in the docs and its driving me crazy. I'm looking for the equivalent of:
navbar_pagenav = False
But for the "Site" tab instead of the "Page" tab. Is this considered bad practice for some idea? I have relatively simple docs so it seems unnecessary / redundant for my use case.
Thanks for the great templates.
It's kind of hacky, but if you add a completely empty _templates/globaltoc.html
file to your source directory it will just output nothing for the unconditional include.
E.g., for the demo in the project:
diff --git a/demo/source/_templates/globaltoc.html b/demo/source/_templates/globaltoc.html
new file mode 100644
index 0000000..e69de29
Longer term, we could look to wrap instances of:
{% include "globaltoc.html" %}
in something like:
{% if theme_globaltoc %}
{% include "globaltoc.html" %}
{% endif %}
and roll out that option in the docs + demo conf.py, etc.