-
Notifications
You must be signed in to change notification settings - Fork 206
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
Can navbar_links support menus and submenus #178
Comments
I think this would be a nice feature as well but i would propose that the Menu's use a |
@iwelch82 that sounds interesting, would you be willing to expand on how the mechanics of that play out? E.g. what is written in RST, does the user need to customize The reason I ask is something that's been on the (very) back burner I'd like to contribute is reworking how the menus are achieved. As far as I can tell the global toc is generated for every page, which means that larger projects get significantly slower build times. More than twice slower than RTD theme, for example. I am worried that introducing another toc-like thing will make this worse, but in all honesty how all of the layout stuff works is still confusing to me. @sdayers you may be able to override # Add any paths that contain templates here, relative to this directory.
# templates_path = ['_templates'] Un-comment the In terms of what to change, I think you want to override the sphinx-bootstrap-theme/sphinx_bootstrap_theme/bootstrap/layout.html Lines 71 to 82 in 28c5369
Then I think you basically want to copy-paste most of that code, only remove the call to sphinx-bootstrap-theme/sphinx_bootstrap_theme/bootstrap/layout.html Lines 28 to 30 in 28c5369
So what you'll want to do now is work off of the navbar code (see the files in that same directory), and essentially copy-paste everything you want, and add these special links. Having this as a bypass in the theme itself would definitely be nice (since that gets pretty bloody), but if you really really want it I think the above will get you close. Good luck! |
Note also the duplicate feature request #156. |
Thanks for the comments! I've actually had a lot of success with this through templates. I'll post a demo. For now I'll summarize:
|
Is it possible to include menus within the navbar_links list (similar to 'page' and 'site' links)?
It seems like this would be a good format
The text was updated successfully, but these errors were encountered: