Skip to content

Commit 67d521e

Browse files
authored
Run sphinx directly on readthedocs (#1919)
* Run sphinx directly on readthedocs * Update doc build script
1 parent 54a0958 commit 67d521e

File tree

2 files changed

+9
-6
lines changed

2 files changed

+9
-6
lines changed

.readthedocs.yaml

+8-4
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,19 @@
11
version: 2
22

33
build:
4-
os: ubuntu-20.04
4+
os: ubuntu-22.04
55
tools:
66
python: "3.10"
7-
commands:
8-
- pip install hatch
9-
- hatch run docs:rtd
107

118
sphinx:
129
configuration: docs/conf.py
1310
fail_on_warning: true
1411

1512
formats: all
13+
14+
python:
15+
install:
16+
- method: pip
17+
path: .
18+
extra_requirements:
19+
- docs

pyproject.toml

+1-2
Original file line numberDiff line numberDiff line change
@@ -136,8 +136,7 @@ list-env = "pip list"
136136
features = ['docs']
137137

138138
[tool.hatch.envs.docs.scripts]
139-
build = "sphinx-build docs/ docs/_build/"
140-
rtd = "sphinx-build docs/ _readthedocs/html/"
139+
build = "cd docs && make html"
141140
serve = "sphinx-autobuild docs docs/_build --ignore 'docs/_autoapi/**/*' --host 0.0.0.0"
142141

143142
[tool.ruff]

0 commit comments

Comments
 (0)