diff --git a/docs/source/conf.py b/docs/source/conf.py index c0950ff5..f1fe11d7 100644 --- a/docs/source/conf.py +++ b/docs/source/conf.py @@ -34,11 +34,12 @@ # -- Options for EPUB output epub_show_urls = 'footnote' +# Add any paths that contain templates here, relative to this directory. +templates_path = ['_templates'] html_sidebars = { '**': [ - # 'relations.html', # needs 'show_related': True theme option to display - 'searchbox.html', - ] + '_templates/versions.html', + ], } # autosummary_generate = True diff --git a/docs/source/templates/versions.html b/docs/source/templates/versions.html new file mode 100644 index 00000000..c49f844c --- /dev/null +++ b/docs/source/templates/versions.html @@ -0,0 +1,27 @@ +{%- if current_version %} +