13 Page With Different Sidebar#

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

Listing 13.1 conf.py#
57html_sidebars = {
58   '**': [
59       'github-badge.html',  # Custom template, see _templates/
60       'home.html',
61       'globaltoc.html',
62       'separator.html',
63       'indices.html',
64   ],
65   'showcase/different-sidebar': [
66       'localtoc.html',
67       'searchbox.html',
68   ],
69   'showcase/no-sidebar': [],
70}

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.