Skip to content

Commit

Permalink
Set the readthedocs theme for sphinx
Browse files Browse the repository at this point in the history
[ci skip]
  • Loading branch information
mstimberg committed Oct 14, 2023
1 parent 8611aa5 commit f5f1143
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
8 changes: 8 additions & 0 deletions docs_sphinx/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,14 @@ def __getattr__(cls, name):
'sphinx.ext.extlinks',
'sphinx_tabs.tabs']

# Set readthedocs theme if available
try:
import sphinx_rtd_theme
extensions += ['sphinx_rtd_theme']
html_theme = 'sphinx_rtd_theme'
except ImportError:
pass

# Add any paths that contain templates here, relative to this directory.
templates_path = ['_templates']

Expand Down
1 change: 1 addition & 0 deletions rtd-requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,4 @@ sphinx==1.8.6
Jinja2<3.1.0
commonmark==0.9.1
recommonmark==0.5.0
sphinx_rtd_theme

0 comments on commit f5f1143

Please sign in to comment.