From 18b76a661d76e182452ed8ade8d7cb1c0d29edf3 Mon Sep 17 00:00:00 2001 From: Stefan van der Walt Date: Wed, 8 Feb 2012 13:02:41 -0800 Subject: [PATCH] DOC: Link logo to main webpage. Add navigation side bar. --- doc/source/_templates/localtoc.html | 8 ++++++++ doc/source/_templates/navigation.html | 12 ++++++++++++ doc/source/conf.py | 4 ++-- doc/source/themes/agogo/layout.html | 2 +- 4 files changed, 23 insertions(+), 3 deletions(-) create mode 100644 doc/source/_templates/localtoc.html create mode 100644 doc/source/_templates/navigation.html diff --git a/doc/source/_templates/localtoc.html b/doc/source/_templates/localtoc.html new file mode 100644 index 00000000..3a26d6fa --- /dev/null +++ b/doc/source/_templates/localtoc.html @@ -0,0 +1,8 @@ +{% if pagename != 'index' %} + + {%- if display_toc %} +

Contents

+ {{ toc }} + {%- endif %} + +{% endif %} diff --git a/doc/source/_templates/navigation.html b/doc/source/_templates/navigation.html new file mode 100644 index 00000000..587d95a1 --- /dev/null +++ b/doc/source/_templates/navigation.html @@ -0,0 +1,12 @@ +{%- block navigation %} + + {% if pagename != 'index' %} +

Navigation

+

+ Documentation Home +

+

 

+ {% endif %} + + +{%- endblock %} diff --git a/doc/source/conf.py b/doc/source/conf.py index 5bc957ba..7b3ed3c9 100644 --- a/doc/source/conf.py +++ b/doc/source/conf.py @@ -151,9 +151,9 @@ html_static_path = ['_static'] # Custom sidebar templates, maps document names to template names. html_sidebars = { - '**': ['localtoc.html', + '**': ['navigation.html', + 'localtoc.html', 'relations.html', - 'sourcelink.html', 'versions.html', 'searchbox.html'], } diff --git a/doc/source/themes/agogo/layout.html b/doc/source/themes/agogo/layout.html index 0e18ba22..3ba13ef2 100644 --- a/doc/source/themes/agogo/layout.html +++ b/doc/source/themes/agogo/layout.html @@ -17,7 +17,7 @@ {%- block headertitle %} {%- if logo %} -