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 = {}