From c77f740043146d87bcddce8de71834b3c4ff3abe Mon Sep 17 00:00:00 2001 From: Akihiro Motoki Date: Wed, 28 Sep 2016 04:39:40 +0900 Subject: [PATCH] Show TOC in side bar The current sidebar only has a link "Contents" and provides almost no information. It looks reasonable to show TOC in the sidebar. openstackdocstheme 1.5.0 has an option 'sidebar_mode' and it allows us to show TOC in the sidebar. Change-Id: I97b7f4d67053bf065ae0035acf7b973b9450eeb2 --- doc/upstream-training/conf.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/doc/upstream-training/conf.py b/doc/upstream-training/conf.py index 16ba4c27..c971e3de 100644 --- a/doc/upstream-training/conf.py +++ b/doc/upstream-training/conf.py @@ -120,7 +120,9 @@ html_theme = 'openstackdocs' # Theme options are theme-specific and customize the look and feel of a theme # further. For a list of options available for each theme, see the # documentation. -# html_theme_options = {} +html_theme_options = { + 'sidebar_mode': 'toc', +} # Add any paths that contain custom themes here, relative to this directory. html_theme_path = [openstackdocstheme.get_html_theme_path()]