You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The reason no one has noticed it until now is that we lock down our version of Sphinx to 1.7.0 for the documentation tests.
An alternative fix would be to replace sphinx.apidoc.main with sphinx.ext.apidoc.main. This solution was not chosen because sphinx.ext.apidoc did not exist before 1.7.0. This solution should work for all versions of Sphinx, although testing with older versions would be greatly appreciated.
According to sphinx-doc/sphinx#5104 (comment), sphinx.apidoc will be removed in Sphinx-2.0 and we will need to move to sphinx.ext.apidoc eventually. Not sure how wide of a version range we want to support. We could check the version of Sphinx when importing.
Okay, the latest commit future-proofs things so that the docs will build with Sphinx 2.0, whenever it is released. This has the beneficial side-effect of side-stepping the bug in sphinx.apidoc.main.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
documentationImprovements or additions to documentation
3 participants
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes an issue reported by @twang15 in #8491.
Before
If you try to build Spack's documentation with Sphinx 1.7.1+, you encounter the following error message:
This bug was introduced in sphinx-doc/sphinx#4624, which first appears in Sphinx 1.7.1. See sphinx-doc/sphinx#5104 for the nitty-gritty details.
The reason no one has noticed it until now is that we lock down our version of Sphinx to 1.7.0 for the documentation tests.
An alternative fix would be to replace
sphinx.apidoc.mainwithsphinx.ext.apidoc.main. This solution was not chosen becausesphinx.ext.apidocdid not exist before 1.7.0. This solution should work for all versions of Sphinx, although testing with older versions would be greatly appreciated.