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
Use antsibull sphinx extension #73170
Conversation
The test
|
The test
|
This is strange. Sphinx 2.1.2 (https://github.com/ansible/ansible/blob/devel/docs/docsite/requirements.txt#L5) already has add_css_file (https://github.com/sphinx-doc/sphinx/blob/v2.1.2/sphinx/application.py#L960). Maybe an even older version of Sphinx is used here? It must have been before version 1.8.0, since add_css_file was added then (sphinx-doc/sphinx@3afc72f). This should get fixed by ansible-community/antsibull#233, but maybe the very old Sphinx version used for docsite testing also needs to be updated :) |
CC @samccann about the older Sphinx requirement |
* Add compatibility hack for old Sphinx versions. See ansible/ansible#73170 (comment) and sphinx-doc/sphinx@3afc72f
In any case, whatever comes first (#73176 merged or new antsibull release), this issue should be fixed soon :) |
Restarting tests (since rstcheck / sphinx were updated). |
The test
|
718c2f0
to
0229826
Compare
The test
|
@samccann for some reason, the sanity test is still using Sphinx v1.7.9. |
/rebuild |
@mattclay about the requirement constraings change: is this change OK? I could also change it to |
a757096
to
fb35de6
Compare
Marking as WIP since two more things should better happen first:
I think it's best to continue with this once #74956 has been merged. |
fb35de6
to
aa58de3
Compare
@felixfontein should this be unWIPed now? |
@webknjaz yep it should. Done, thanks! |
* Use antsibull sphinx extension. * Require antsibull 0.34.0. (cherry picked from commit 2c0f050)
SUMMARY
The Pygments lexer and part of the CSS is contained in the antsibull sphinx extension (https://github.com/ansible-community/antsibull/tree/main/sphinx_antsibull_ext), so there's no need to duplicate these parts in the docsite sources.
ISSUE TYPE
COMPONENT NAME
docsite