Skip to content

Commit

Permalink
Use RTD theme
Browse files Browse the repository at this point in the history
  • Loading branch information
alejoe91 committed Jan 17, 2024
1 parent 8e137c3 commit 2b007f7
Showing 1 changed file with 7 additions and 10 deletions.
17 changes: 7 additions & 10 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,19 +21,16 @@
# import sys
# sys.path.insert(0, os.path.abspath('.'))

import os
import re
import expipe

on_rtd = os.environ.get('READTHEDOCS', None) == 'True'
if not on_rtd: # only import and set the theme if we're building docs locally
try:
import sphinx_rtd_theme
html_theme = "sphinx_rtd_theme"
html_theme_path = [sphinx_rtd_theme.get_html_theme_path()]
except ImportError:
print("RTD theme not installed, using default")
pass
try:
import sphinx_rtd_theme
html_theme = "sphinx_rtd_theme"
html_theme_path = [sphinx_rtd_theme.get_html_theme_path()]
except ImportError:
print("RTD theme not installed, using default")
pass

# -- General configuration ------------------------------------------------

Expand Down

0 comments on commit 2b007f7

Please sign in to comment.