From f55be0dc3d075bc19eb27faf2d7b3f21b334c331 Mon Sep 17 00:00:00 2001 From: Tim Head Date: Tue, 25 Apr 2017 16:08:02 +0200 Subject: [PATCH] Modify TOC depth --- doc/_templates/navigation.html | 11 +++++++++++ doc/conf.py | 3 ++- doc/index.rst | 1 - 3 files changed, 13 insertions(+), 2 deletions(-) create mode 100644 doc/_templates/navigation.html diff --git a/doc/_templates/navigation.html b/doc/_templates/navigation.html new file mode 100644 index 0000000000..3e8fe78d56 --- /dev/null +++ b/doc/_templates/navigation.html @@ -0,0 +1,11 @@ +

{{ _('Table Of Contents') }}

+{{ toctree(maxdepth=3, collapse=False) }} + +{% if theme_extra_nav_links %} +
+ +{% endif %} diff --git a/doc/conf.py b/doc/conf.py index 1b04a515c1..23ca0f4780 100644 --- a/doc/conf.py +++ b/doc/conf.py @@ -160,7 +160,8 @@ #html_use_smartypants = True # Custom sidebar templates, maps document names to template names. -#html_sidebars = {} +html_sidebars = {'*': ['navigation.html', 'relations.html', + 'sourcelink.html', 'searchbox.html']} # Additional templates that should be rendered to pages, maps page names to # template names. diff --git a/doc/index.rst b/doc/index.rst index 4d6407577f..1596efcb87 100644 --- a/doc/index.rst +++ b/doc/index.rst @@ -70,4 +70,3 @@ Indices and tables * :ref:`genindex` * :ref:`modindex` * :ref:`search` -