13 Page With Different Sidebar#

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

Listing 13.1 conf.py#
70html_sidebars = {
71   '**': [
72       'github-badge.html',  # Custom template, see _templates/
73       'home.html',
74       'globaltoc.html',
75       'separator.html',
76       'indices.html',
77   ],
78   'showcase/different-sidebar': [
79       'localtoc.html',
80       'searchbox.html',
81   ],
82   'showcase/no-sidebar': [],
83}

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.