From 2feaf570bda63c44fc2a4b82caffc94484c06c08 Mon Sep 17 00:00:00 2001 From: David Wilson Date: Thu, 18 Aug 2016 18:02:59 +0100 Subject: [PATCH] Reorient Sphinx layout to get subheadings in sidebar. --- docs/conf.py | 2 +- docs/index.rst | 10 ---------- docs/toc.rst | 13 +++++++++++++ 3 files changed, 14 insertions(+), 11 deletions(-) create mode 100644 docs/toc.rst diff --git a/docs/conf.py b/docs/conf.py index 1a55fa25..16d41277 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -13,7 +13,7 @@ html_theme = 'alabaster' htmlhelp_basename = 'econtextdoc' intersphinx_mapping = {'python': ('https://docs.python.org/2', None)} language = None -master_doc = 'index' +master_doc = 'toc' project = u'econtext' pygments_style = 'sphinx' release = u'master' diff --git a/docs/index.rst b/docs/index.rst index 9a477572..503550b6 100644 --- a/docs/index.rst +++ b/docs/index.rst @@ -4,16 +4,6 @@ Python Execution Contexts **5KiB of sugar and no fat!** -.. toctree:: - :maxdepth: 1 - - self - howitworks - getting_started - api - internals - history - Introduction ------------ diff --git a/docs/toc.rst b/docs/toc.rst new file mode 100644 index 00000000..d788cad4 --- /dev/null +++ b/docs/toc.rst @@ -0,0 +1,13 @@ + +Table Of Contents +================= + +.. toctree:: + :maxdepth: 2 + + index + howitworks + getting_started + api + internals + history