-
Notifications
You must be signed in to change notification settings - Fork 23.7k
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
Fix Sphinx 4.0 support for docsite #74798
Conversation
The test
|
The actual error is: Interestingly, it goes away with |
Well, I think I solved this. The issue is that this error should be there, but was not shown for whatever reason if the lexer was passed already instantiated. You can see on the actual output in https://docs.ansible.com/ansible/devel/user_guide/intro_getting_started.html#action-run-your-first-playbook (you need to scroll down a bit) that there's a formatting error. The reason is that the fields |
Tested locally. This gets rid of the Sphinx 4 error (which was: Note that Sphinx 4 requires Jinja2 <3.0, at least as of 4.0.1. |
FWIW I've absorbed this patch into the theme for now. |
FYI if #74318 gets merged first, the current PR will become unnecessary. |
Fixed as part of #74318. |
SUMMARY
Port of ansible-community/antsibull#273. Sphinx 4 no longer accepts instantiated lexer classes.
CC @abadger @acozine @relrod
ISSUE TYPE
COMPONENT NAME
docs/docsite/_extensions/pygments_lexer.py