ryan-roemer / sphinx-bootstrap-theme

Sphinx Bootstrap Theme
http://ryan-roemer.github.io/sphinx-bootstrap-theme/README.html
MIT License
586 stars 206 forks source link

Left sidebar with global toc #150

Open rroblik opened 7 years ago

rroblik commented 7 years ago

Hi Ryan !

First thanks for all your work on this beautiful theme(s) :) I'm trying the last version of it, with sandstone bootswatch theme for my current documentation project.

I want to :

  1. enable the sidebar on all pages, with global toc in it (globaltoc.html)
  2. remove global toc from top nav.

So here is (a part of) my configuration in conf.py

html_sidebars = {
  '**': ['globaltoc.html'],
}

But ... result is not really good for the 1. : items are collapsed and visible only after clicking on them (same behavior as in the top nav, in short)

I think I need to override globaltoc.html in my _templates folder (or maybe create a derivative template file) removing dropdown related stuff...

What do you think as "the best of" of doing this ?

Regards

ryan-roemer commented 7 years ago

Hi @rroblik ! Is your project open source and if so, can you point me to it / the build steps?

If not, can you create a branch / fork and tweak the demo application conf.py to reproduce what you're seeing with the theme you're using?

Thanks!