Skip to content

Commit

Permalink
ci: Fix readthedocs build
Browse files Browse the repository at this point in the history
Mirrors the approach used by httpstan. On readthedocs build machines we
first install the packages in `docs-requirements.txt` and then install
the pystan package (bringing in all the normal requirements). Then we
build the docs.
  • Loading branch information
riddell-stan committed Jul 7, 2022
1 parent 567bed8 commit 19052f8
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
3 changes: 1 addition & 2 deletions .readthedocs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ sphinx:

python:
install:
- requirements: docs-requirements.txt
- method: pip
path: .
extra_requirements:
- docs
5 changes: 5 additions & 0 deletions docs-requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# docs requirements
# these requirements are used by the documentation builder

sphinx~=4.2 # BSD
sphinx-rtd-theme~=1.0.0
3 changes: 2 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,8 @@ mypy = "0.961"
types-setuptools = "^57.4"
flake8 = "^4.0"
# documentation
sphinx = "^5.0"
# NOTE: when changing these, update docs-requirements.txt
sphinx = "^4.2"
sphinx-rtd-theme = "^1.0"

[tool.black]
Expand Down

0 comments on commit 19052f8

Please sign in to comment.