Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove "Site" tab from top navbar #185

Open
ahwillia opened this issue Aug 6, 2018 · 1 comment
Open

Remove "Site" tab from top navbar #185

ahwillia opened this issue Aug 6, 2018 · 1 comment

Comments

@ahwillia
Copy link

ahwillia commented Aug 6, 2018

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.

@ryan-roemer
Copy link
Owner

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.

karlch added a commit to karlch/vimiv-qt that referenced this issue Dec 11, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants