Skip to content

Commit f54eadd

Browse files
Fix up ReadTheDocs documentation builds.
1 parent fa712ce commit f54eadd

File tree

3 files changed

+8
-10
lines changed

3 files changed

+8
-10
lines changed

.readthedocs.yaml

+3-3
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,6 @@ sphinx:
1717

1818
# We recommend specifying your dependencies to enable reproducible builds:
1919
# https://docs.readthedocs.io/en/stable/guides/reproducible-builds.html
20-
# python:
21-
# install:
22-
# - requirements: docs/requirements.txt
20+
python:
21+
install:
22+
- requirements: docs/requirements.txt

docs/conf.py

+3-7
Original file line numberDiff line numberDiff line change
@@ -106,13 +106,9 @@ def _version_info():
106106
# The theme to use for HTML and HTML Help pages. See the documentation for
107107
# a list of builtin themes.
108108

109-
on_rtd = os.environ.get('READTHEDOCS', None) == 'True'
110-
if on_rtd:
111-
html_theme = 'default'
112-
else:
113-
import sphinx_rtd_theme
114-
html_theme = 'sphinx_rtd_theme'
115-
html_theme_path = [sphinx_rtd_theme.get_html_theme_path()]
109+
import sphinx_rtd_theme
110+
html_theme = 'sphinx_rtd_theme'
111+
html_theme_path = [sphinx_rtd_theme.get_html_theme_path()]
116112

117113
# Theme options are theme-specific and customize the look and feel of a theme
118114
# further. For a list of options available for each theme, see the

docs/requirements.txt

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
sphinx
2+
sphinx_rtd_theme

0 commit comments

Comments
 (0)