summaryrefslogtreecommitdiff
path: root/conf.py
diff options
context:
space:
mode:
authorÖzgür Kesim <oec@codeblau.de>2023-08-07 17:18:25 +0200
committerÖzgür Kesim <oec@codeblau.de>2023-08-07 17:18:25 +0200
commit99b525d2442db918c398192250c553d32ebb285e (patch)
treefa352d96d8def1b373bc1d7d4d82c06aa6000a27 /conf.py
parentc96c2f8b9a588637b4d98652e5b6b434e7f3268c (diff)
downloaddocs-99b525d2442db918c398192250c553d32ebb285e.tar.gz
docs-99b525d2442db918c398192250c553d32ebb285e.tar.bz2
docs-99b525d2442db918c398192250c553d32ebb285e.zip
switch to sphinx-book-theme
Diffstat (limited to 'conf.py')
-rw-r--r--conf.py22
1 files changed, 10 insertions, 12 deletions
diff --git a/conf.py b/conf.py
index 6b1e35df..8d8e49d8 100644
--- a/conf.py
+++ b/conf.py
@@ -38,8 +38,6 @@ import os
sys.path.append(os.path.abspath("_exts"))
-import taler_sphinx_theme
-
# If extensions (or modules to document with autodoc) are in another directory,
# add these directories to sys.path here. If the directory is relative to the
# documentation root, use os.path.abspath to make it absolute, like shown here.
@@ -56,7 +54,6 @@ needs_sphinx = "2.2.0"
extensions = [
"ebicsdomain",
"typescriptdomain",
- #"taler_sphinx_theme",
"sphinx.ext.todo",
"sphinx.ext.imgmath",
"httpdomain.httpdomain",
@@ -141,17 +138,15 @@ pygments_style = "sphinx"
# The theme to use for HTML and HTML Help pages. See the documentation for
# a list of builtin themes.
-#html_theme = "taler_sphinx_theme"
-#html_theme_path = taler_sphinx_theme.html_theme_path()
+html_theme = "sphinx_book_theme"
#html_sidebars = {"**": ["logo-text.html", "globaltoc.html", "searchbox.html"]}
-html_sidebars = {"**": ["globaltoc.html", "searchbox.html"]}
+#html_sidebars = {"**": ["globaltoc.html", "searchbox.html"]}
html_theme_options = {
# Set the name of the project to appear in the sidebar
- "project_nav_name": "GNU Taler",
- "globaltoc_depth": 4,
- "globaltoc_includehidden": False,
+ "home_page_in_toc": True,
+ "show_navbar_depth": 1,
}
# Add any paths that contain custom themes here, relative to this directory.
@@ -159,14 +154,14 @@ html_theme_options = {
# The name for this set of Sphinx documents. If None, it defaults to
# "<project> v<release> documentation".
-# html_title = None
+html_title = "GNU Taler"
# A shorter title for the navigation bar. Default is the same as html_title.
-# html_short_title = None
+html_short_title = "GNU Taler"
# The name of an image file (relative to this directory) to place at the top
# of the sidebar.
-# html_logo = None
+html_logo = "taler-logo.svg"
# The name of an image file (within the static path) to use as favicon of the
# docs. This file should be a Windows icon file (.ico) being 16x16 or 32x32
@@ -178,6 +173,9 @@ html_theme_options = {
# so a file named "default.css" will overwrite the builtin "default.css".
html_static_path = ["_static"]
+# This is a sphinx-book-themes specific parameter to allow for customized css
+html_css_files = ["custom.css"]
+
# Add any extra paths that contain custom files (such as robots.txt or
# .htaccess) here, relative to this directory. These files are copied
# directly to the root of the documentation.