Skip to content

Commit 935c2c9

Browse files
committed
readthedocs: fix docs build
1 parent 07805a3 commit 935c2c9

File tree

2 files changed

+4
-8
lines changed

2 files changed

+4
-8
lines changed

.readthedocs.yaml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,10 @@ build:
1212
jobs:
1313
post_create_environment:
1414
- pip install poetry
15-
- poetry config virtualenvs.create false
1615
post_install:
17-
- poetry install --only=docs
16+
# VIRTUAL_ENV needs to be set manually for now.
17+
# See https://github.com/readthedocs/readthedocs.org/pull/11152/
18+
- VIRTUAL_ENV=$READTHEDOCS_VIRTUALENV_PATH poetry install --only=docs
1819

1920
# Build documentation in the docs/ directory with Sphinx
2021
sphinx:

docs/conf.py

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,6 @@
1616

1717
import toml
1818

19-
ON_RTD = os.environ.get("READTHEDOCS", None) == "True"
20-
2119
# so we have single source of project info
2220
_pyproject = toml.load("../pyproject.toml")
2321

@@ -83,10 +81,7 @@
8381
# The theme to use for HTML and HTML Help pages. See the documentation for
8482
# a list of builtin themes.
8583
#
86-
if ON_RTD:
87-
html_theme = "default"
88-
else:
89-
html_theme = "sphinx_rtd_theme"
84+
html_theme = "sphinx_rtd_theme"
9085

9186

9287
# Add any paths that contain custom static files (such as style sheets) here,

0 commit comments

Comments
 (0)