Skip to content

Commit

Permalink
[Doc] Change theme to sphinx_book_theme
Browse files Browse the repository at this point in the history
  • Loading branch information
klieret committed Jul 24, 2021
1 parent d3accf5 commit 8d5e45e
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
6 changes: 3 additions & 3 deletions doc/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -160,12 +160,12 @@
try:
import importlib

theme = importlib.import_module("sphinx_rtd_theme")
html_theme = "sphinx_rtd_theme"
theme = importlib.import_module("sphinx_book_theme")
html_theme = "sphinx_book_theme"
html_theme_path = [theme.get_html_theme_path()]
except ImportError:
print(
"**** WARNING ****: reverting to default theme, because sphinx_rtd_theme is not installed"
"**** WARNING ****: reverting to default theme, because sphinx_book_theme is not installed"
)
html_theme = "default"
print("html_theme='{}'".format(html_theme))
Expand Down
1 change: 1 addition & 0 deletions doc/requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
sphinx_book_theme
2 changes: 2 additions & 0 deletions readthedocs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,5 @@ build:

python:
version: 3.6
install:
- requirements: doc/requirements.txt

0 comments on commit 8d5e45e

Please sign in to comment.