From 6a9e23477d2233ce3c4074cb632e187072c1370b Mon Sep 17 00:00:00 2001 From: Matthias Geier Date: Thu, 6 Jan 2022 16:32:40 +0100 Subject: [PATCH] DOC: Switch to python_docs_theme --- doc/_templates/layout.html | 7 +++++++ doc/conf.py | 11 +++++++++++ doc/requirements.txt | 1 + 3 files changed, 19 insertions(+) create mode 100644 doc/_templates/layout.html diff --git a/doc/_templates/layout.html b/doc/_templates/layout.html new file mode 100644 index 00000000..877882c5 --- /dev/null +++ b/doc/_templates/layout.html @@ -0,0 +1,7 @@ +{% extends "!layout.html" %} + +{% block footer %} + +{% endblock %} diff --git a/doc/conf.py b/doc/conf.py index c7e8fbc5..1cad34f9 100644 --- a/doc/conf.py +++ b/doc/conf.py @@ -137,6 +137,17 @@ html_favicon = 'favicon.svg' html_title = project + ' version ' + release +html_theme = 'python_docs_theme' +html_theme_options = { + 'navigation_with_keys': True, + 'issues_url': 'https://github.com/spatialaudio/nbsphinx/issues', + 'root_name': '', + 'root_url': '', + 'root_icon': '', + #'root_include_title': False, +} +html_js_files = ['sidebar.js'] +templates_path = ['_templates'] # -- Options for LaTeX output --------------------------------------------- diff --git a/doc/requirements.txt b/doc/requirements.txt index 3c83291b..c16ca256 100644 --- a/doc/requirements.txt +++ b/doc/requirements.txt @@ -1,3 +1,4 @@ +python-docs-theme ipykernel numpy matplotlib