13 Page With Different Sidebar#

This page has different content in the sidebar, see html_sidebars in conf.py:

Listing 13.1 conf.py#
57
58
59
60
61
62
63
64
65
66
67
68
69
70
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.