Skip to content

Commit 9a37ffc

Browse files
authored
Fix Read the Docs: use build.jobs instead of build.commands (#33)
* Remove redundant Sphinx install from build commands Sphinx is already installed via the dev extra requirements, so the explicit pip install is unnecessary. The key fix is using python -m sphinx.ext.apidoc instead of sphinx-apidoc command. * Fix Read the Docs build: use build.jobs instead of build.commands Using build.commands completely overrides the build process, preventing Sphinx from generating HTML output. Switch to build.jobs.pre_build to extend the build process while keeping the default Sphinx build.
1 parent e8a0086 commit 9a37ffc

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

.readthedocs.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@ build:
44
os: ubuntu-24.04
55
tools:
66
python: "3.10"
7-
commands:
8-
- python -m pip install sphinx
9-
- rm -f docs/multibase.rst docs/modules.rst
10-
- python -m sphinx.ext.apidoc -o docs/ multibase
7+
jobs:
8+
pre_build:
9+
- rm -f docs/multibase.rst docs/modules.rst
10+
- python -m sphinx.ext.apidoc -o docs/ multibase
1111

1212
sphinx:
1313
configuration: docs/conf.py

0 commit comments

Comments
 (0)