-
Notifications
You must be signed in to change notification settings - Fork 12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Documentation fails to build #841
Comments
Might close #841 Also noticed the `.readthedocs.yaml` had an a couple of errors in where the version was incorrectly specified in one location and outdated in another.
Partial success. Documentation is back online but only I see the same error locally...
This is because sphinx-autodoc-typehints uses Why this happens on other versions I'm unsure, but I've opened an issue in sphinx-autodocs-typehints about this. |
Closing as the versioned docs look back online :) |
Currently the documentation fails to build.
Failed build
Current run is with Sphinx 7.3.7 fails with...
The installed packages and versions are listed in
failed_packages.txt
Working build
An older run with Sphinx 7.2.6 built correctly.
The installed packages and versions are listed in
worked_packages.txt
Differences
Investigations
I can recreate the error locally in a fresh environment and its not and error with
sphinx-multiversion
as the same occurs when using theMakefile
to build a single version of the currently checked out commit.With
-P
/--pdb
Sphinx option enabled we see the following output pointing towardssphinx-autoapi
being the culprit (its the penultimate call in the traceback and callslist(doctree.traverse(toctree))
(NB this is not theautoapi
package at fault here).If we look at the source code in GitHub and check the blame we see this was corrected 2 months ago and is in the 3.1.0b0 pre-release and if we install the pre-release locally
make html
successfully builds the documentation 🙌 🎉Unfortunately
sphinx-multiversion . _build
doesn't build all the version 😿 one of the older versions (notmain
orv2.0.0
fails).Solution
Part 1
Temporarily peg the version of
sphinx-autoapi
inpyproject.toml
...and remember to remove this once
sphinx-autoapi-3.1.0
is released.Check and see what get built in GitHub Workflow.
Part 2
It may be desirable to restrict building of documentation to only tagged releases, there are some comments in
.github/workflows/sphinx_docs_to_gh_pages.yaml
on how to achieve this.The text was updated successfully, but these errors were encountered: