Attempt to fix readthedocs by delegating build to just

This commit is contained in:
2025-05-29 10:34:57 +01:00
parent ce3e0f623c
commit 36d12de829
2 changed files with 7 additions and 3 deletions

View File

@@ -10,9 +10,10 @@ build:
- asdf plugin add poetry - asdf plugin add poetry
- asdf install poetry latest - asdf install poetry latest
- asdf global poetry latest - asdf global poetry latest
- asdf plugin add just
- asdf install poetry just
- asdf global poetry just
create_environment: create_environment:
- poetry lock
- poetry install --with dev,docs - poetry install --with dev,docs
- poetry run maturin develop
install: install:
- export PATH="$PATH:$HOME/.asdf/installs/rust/1.86.0/bin" && cargo install sphinx-rustdocgen && poetry run sphinx-build -b html docs $READTHEDOCS_OUTPUT/html - PATH="$PATH:$HOME/.asdf/installs/rust/1.86.0/bin" just html_out $READTHEDOCS_OUTPUT

View File

@@ -35,6 +35,9 @@ html sphinxbuild=_sphinxbuild sourcedir=_sourcedir builddir=_builddir sphinxopts
@echo @echo
@echo "Build finished. The HTML pages are in {{builddir}}/html." @echo "Build finished. The HTML pages are in {{builddir}}/html."
# Build HTML for with a specific out directory
html_out builddir=_builddir: (html _sphinxbuild _sourcedir builddir _sphinxopts)
# Build and serve documentation locally # Build and serve documentation locally
serve sphinxbuild=_sphinxbuild sourcedir=_sourcedir builddir=_builddir sphinxopts=_sphinxopts: (html sphinxbuild sourcedir builddir sphinxopts) serve sphinxbuild=_sphinxbuild sourcedir=_sourcedir builddir=_builddir sphinxopts=_sphinxopts: (html sphinxbuild sourcedir builddir sphinxopts)
@echo "Serving documentation at http://localhost:8000" @echo "Serving documentation at http://localhost:8000"