Skip to content

Commit

Permalink
docs: Fallback to classic theme if furo is not available
Browse files Browse the repository at this point in the history
Signed-off-by: Free Ekanayaka <free@ekanayaka.io>
  • Loading branch information
freeekanayaka committed Feb 11, 2024
1 parent 4da5fd9 commit b73291c
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion docs/conf.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
import sphinx
import os.path

# The master toctree document.
master_doc = 'index'

Expand All @@ -24,7 +27,10 @@
#html_theme = 'material'
# html_theme = 'material'
#html_theme = 'furo'
html_theme = 'furo'
if os.path.exists(os.path.join(os.path.dirname(os.path.dirname(sphinx.__file__)), "furo")):
html_theme = 'furo'
else:
html_theme = 'classic'
html_theme_path = ['_themes']

# Theme options are theme-specific and customize the look and feel of a theme
Expand Down

0 comments on commit b73291c

Please sign in to comment.