Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add sphinx_rtd_theme to the list of extensions #323

Merged
merged 1 commit into from
Sep 14, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 2 additions & 16 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,21 +15,6 @@
import os
import sys

try:
# use bootstrap theme if user has it installed
import sphinx_bootstrap_theme
HTML_THEME = 'bootstrap'
html_theme_path = [sphinx_bootstrap_theme.get_html_theme_path()]
except ImportError:
try:
# fall back to sphinx_rtd_theme if available
import sphinx_rtd_theme
HTML_THEME = 'sphinx_rtd_theme'
html_theme_path = [sphinx_rtd_theme.get_html_theme_path()]
except ImportError:
# and fall back to 'default' if neither of those are available
HTML_THEME = 'default'

# 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.
Expand All @@ -45,6 +30,7 @@
# ones.
extensions = [
'sphinx.ext.autodoc',
'sphinx_rtd_theme',
]

# Add any paths that contain templates here, relative to this directory.
Expand Down Expand Up @@ -125,7 +111,7 @@

# The theme to use for HTML and HTML Help pages. See the documentation for
# a list of builtin themes.
html_theme = HTML_THEME
html_theme = "sphinx_rtd_theme"

# 1.3.1 sphinx READTHEDOCS build compat
# SEE:
Expand Down
Loading