From b4842b20f678055ee75d958e4402fe29af86ded6 Mon Sep 17 00:00:00 2001 From: Tobias Bieniek Date: Thu, 12 Dec 2013 18:37:32 +0100 Subject: [PATCH] doc: Added proper sidebar to index page --- doc/en/_templates/sidebarintro.html | 19 +++++++++++++++++++ doc/en/conf.py | 14 ++++++++++++++ 2 files changed, 33 insertions(+) create mode 100644 doc/en/_templates/sidebarintro.html diff --git a/doc/en/_templates/sidebarintro.html b/doc/en/_templates/sidebarintro.html new file mode 100644 index 000000000..05ee615f2 --- /dev/null +++ b/doc/en/_templates/sidebarintro.html @@ -0,0 +1,19 @@ +

About pytest

+

+ pytest is a mature full-featured Python testing tool that helps + you write better programs. +

+

Other Formats

+

+ You can download the documentation in other formats as well: +

+ +

Useful Links

+ diff --git a/doc/en/conf.py b/doc/en/conf.py index 12daac69c..a82043626 100644 --- a/doc/en/conf.py +++ b/doc/en/conf.py @@ -153,6 +153,20 @@ html_static_path = ['_static'] #html_sidebars = {} #html_sidebars = {'index': 'indexsidebar.html'} +html_sidebars = { + 'index': [ + 'sidebarintro.html', + 'sourcelink.html', + 'searchbox.html' + ], + '**': [ + 'localtoc.html', + 'relations.html', + 'sourcelink.html', + 'searchbox.html' + ] +} + # Additional templates that should be rendered to pages, maps page names to # template names. #html_additional_pages = {}