Skip to content

Commit

Permalink
Fix version menu
Browse files Browse the repository at this point in the history
  • Loading branch information
goerz committed Jun 4, 2024
1 parent 45f1ab5 commit a9feded
Showing 1 changed file with 12 additions and 4 deletions.
16 changes: 12 additions & 4 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -210,12 +210,18 @@ def patched_parse(self):

# -- Options for HTML output ---------------------------------------------------

# on_rtd is whether we are on readthedocs.org, this line of code grabbed from
# docs.readthedocs.org
on_rtd = os.environ.get("READTHEDOCS", None) == "True"

# The theme to use for HTML and HTML Help pages. See the documentation for
# a list of builtin themes.
import sphinx_rtd_theme
html_theme = "sphinx_rtd_theme"
html_theme_path = [sphinx_rtd_theme.get_html_theme_path()]
#html_theme = 'sphinxdoc'
if not on_rtd: # only import and set the theme if we're building docs locally
import sphinx_rtd_theme

html_theme = "sphinx_rtd_theme"
html_theme_path = [sphinx_rtd_theme.get_html_theme_path()]
# html_theme = 'sphinxdoc'

# Theme options are theme-specific and customize the look and feel of a theme
# further. For a list of options available for each theme, see the
Expand Down Expand Up @@ -290,6 +296,8 @@ def patched_parse(self):

# This is the file name suffix for HTML files (e.g. ".xhtml").
#html_file_suffix = None

docs_versions_menu_conf = {'menu_title': 'Docs'}
nbsphinx_prolog = r"""
{% set docname = env.doc2path(env.docname, base='docs') %}
Expand Down

0 comments on commit a9feded

Please sign in to comment.