Skip to content

Commit

Permalink
Run sphinx directly on readthedocs (zarr-developers#1919)
Browse files Browse the repository at this point in the history
* Run sphinx directly on readthedocs

* Update doc build script
  • Loading branch information
dstansby authored Jun 1, 2024
1 parent 54a0958 commit 67d521e
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 6 deletions.
12 changes: 8 additions & 4 deletions .readthedocs.yaml
Original file line number Diff line number Diff line change
@@ -1,15 +1,19 @@
version: 2

build:
os: ubuntu-20.04
os: ubuntu-22.04
tools:
python: "3.10"
commands:
- pip install hatch
- hatch run docs:rtd

sphinx:
configuration: docs/conf.py
fail_on_warning: true

formats: all

python:
install:
- method: pip
path: .
extra_requirements:
- docs
3 changes: 1 addition & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -136,8 +136,7 @@ list-env = "pip list"
features = ['docs']

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

[tool.ruff]
Expand Down

0 comments on commit 67d521e

Please sign in to comment.