Skip to content

Commit 74f0a2f

Browse files
authored
sphinx-autobuild for live docs updates (#129)
* `sphinx-autobuild` for live docs updates. * Use Python 3.9 and `sphinx-autobuild` `2024.2.4`
1 parent d950ee7 commit 74f0a2f

File tree

4 files changed

+7
-2
lines changed

4 files changed

+7
-2
lines changed

.circleci/config.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ jobs:
9999
docs:
100100
<<: *docs
101101
docker:
102-
- image: cimg/python:3.8
102+
- image: cimg/python:3.9
103103
environment:
104104
TOXENV: docs
105105

.readthedocs.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ version: 2
33
build:
44
os: ubuntu-22.04
55
tools:
6-
python: "3.8"
6+
python: "3.9"
77

88
sphinx:
99
configuration: docs/conf.py

Makefile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ help:
88
@echo "lint - fix linting issues with pre-commit"
99
@echo "test - run tests quickly with the default Python"
1010
@echo "docs - generate docs and open in browser (linux-docs for version on linux)"
11+
@echo "autobuild-docs - live update docs when changes are saved"
1112
@echo "notes - consume towncrier newsfragments/ and update release notes in docs/"
1213
@echo "release - package and upload a release (does not run notes target)"
1314
@echo "dist - package"
@@ -33,6 +34,9 @@ lint:
3334
test:
3435
pytest tests
3536

37+
autobuild-docs:
38+
sphinx-autobuild --open-browser docs docs/_build/html
39+
3640
build-docs:
3741
sphinx-apidoc -o docs/ . setup.py "*conftest*"
3842
$(MAKE) -C docs clean

setup.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
],
1818
"docs": [
1919
"sphinx>=6.0.0",
20+
"sphinx-autobuild>=2024.2.4",
2021
"sphinx_rtd_theme>=1.0.0",
2122
"towncrier>=21,<22",
2223
],

0 commit comments

Comments
 (0)