13 Page With Different Sidebar#
This page has different content in the sidebar,
see html_sidebars in conf.py:
70 71 72 73 74 75 76 77 78 79 80 81 82 83 | html_sidebars = { '**': [ 'github-badge.html', # Custom template, see _templates/ 'home.html', 'globaltoc.html', 'separator.html', 'indices.html', ], 'showcase/different-sidebar': [ 'localtoc.html', 'searchbox.html', ], 'showcase/no-sidebar': [], } |
13.1 Local Table of Contents#
Instead of displaying the whole TOC in the sidebar
with globaltoc.html,
a local TOC can be shown with localtoc.html.
13.2 Search Box#
If you don’t like the search button in the topbar,
you can also put a search field into the sidebar
by selecting the template searchbox.html or searchfield.html.
Like the search button, this is only available when JavaScript is enabled.