-
Notifications
You must be signed in to change notification settings - Fork 16.4k
Update Sphinx and Sphinx-AutoAPI #20079
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
Conversation
|
👯 |
|
Not sure what changed this time, maybe I never checked on v1.8. |
airflow/models/dag.py
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Parametrize seems more widespread? That’s the spelling Pytest uses as well. I don’t know.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
But not https://pypi.org/project/parameterized/ -- and this spelling was in the dictionary, the other wasn't.
(As a British English speaker param-et-er-ized is how I say it, so I was happy to go along with this.)
|
Right, now we just need to look at the new output and see if we are happy with it 😁 |
|
The biggest change (excluding changes caused by the underlying dependency upgrades, which isn’t visible in the source) is |
exampleinclude was only ever designed to work with .py files, and sphinx got more specific about the "register_source" call we were doing there -- it errored on later Sphinx. literalinclude does what we want for those files, so it seemed easier to use that directive than change our exampleinclude to cope with non .py files |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
TIL -- didn't knew we could do this in docstrings too
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yup, Doc strings are "just" rst :)
|
Conflicts ! |
56fe05b to
9c5ddab
Compare
|
Easy one to resolve -- it was TP's |
|
I might have a temporary fix for the failing build, and I'd rather give this PR time for a few more eyes, that or someone to have looked At the built docs and say "yes, this output LGTM" |
We were stuck on an old version of Sphinx AutoAPI for a long while as more recent versions wouldn't build Airflow's docs, but that seems to have finally been resolved. We can remove the run_patched_sphinx.py as that was included in sphinx-autoapi 1.1
9c5ddab to
efd7eee
Compare
|
The PR most likely needs to run full matrix of tests because it modifies parts of the core of Airflow. However, committers might decide to merge it quickly and take the risk. If they don't merge it quickly - please rebase it to the latest main at your convenience, or amend the last commit of the PR, and push it with --force-with-lease. |
I think we have quite a few other styling issues (most notably the cursed expanding-beyond-screen wide tables with vertical scrolling which make most of the wide tables hidden to a casual user) so I think we should fix those in a separate PR. Maybe even someone from the UI team, could take a look because of course: |
We were stuck on an old version of Sphinx AutoAPI for a long while as more recent versions wouldn't build Airflow's docs, but that seems to have finally been resolved. We can remove the run_patched_sphinx.py as that was included in sphinx-autoapi 1.1 * Fix doc rendering glitch in Google provider utils * Remove duplicated link from cncf-kubernetes provider index (cherry picked from commit fa96b09)
We were stuck on an old version of Sphinx AutoAPI for a long while as more recent versions wouldn't build Airflow's docs, but that seems to have finally been resolved. We can remove the run_patched_sphinx.py as that was included in sphinx-autoapi 1.1 * Fix doc rendering glitch in Google provider utils * Remove duplicated link from cncf-kubernetes provider index (cherry picked from commit fa96b09)



I haven't looked in detail how much the output differs, so I am marking this for draft right now.
Spelling check might not pass, but the build was passing locally.
The words added to the spelling dictionary are because Sphinx now picks up typehints (yay!)