FlyingAura
FlyingAura

Reputation: 1601

Add sidebar to all pages except index in sphinx-bootstrap-theme

I have added a sidebar to my sphinx-documentation by appending the following to conf.py

html_sidebars = {'**': ['my_custom_sidebar.html']}

This causes the sidebar to show on all pages. I want this sidebar to show on all pages except the index page. How do I do this?

Upvotes: 2

Views: 259

Answers (1)

mluerig
mluerig

Reputation: 749

check this answer: Sphinx exclude one Page from html_sidebars

I got it to work using Chris Bay's code:

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

Upvotes: 1

Related Questions