Skip to content

Commit 8cedf87

Browse files
committed
Fix docs theme
1 parent f94693f commit 8cedf87

File tree

2 files changed

+3
-13
lines changed

2 files changed

+3
-13
lines changed

.readthedocs.yml

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,11 @@
1-
---
21
version: 2
3-
sphinx:
4-
configuration: docs/sphinx/conf.py
52

63
build:
74
os: ubuntu-22.04
85
tools:
9-
python: "3.10"
6+
python: "3"
107

118
python:
129
install:
10+
- requirements: dev-requirements.txt
1311
- path: .
14-
extra_requirements:
15-
- "docs"

docs/sphinx/conf.py

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -43,13 +43,7 @@
4343

4444
pygments_style = "sphinx"
4545

46-
on_rtd = os.environ.get("READTHEDOCS", None) == "True"
47-
48-
if not on_rtd: # only import and set the theme if we're building docs locally
49-
import sphinx_rtd_theme
50-
51-
html_theme = "sphinx_rtd_theme"
52-
html_theme_path = [sphinx_rtd_theme.get_html_theme_path()]
46+
html_theme = "sphinx_rtd_theme"
5347

5448
intersphinx_mapping = {
5549
"python": ("https://docs.python.org/3", None),

0 commit comments

Comments
 (0)