-
-
Notifications
You must be signed in to change notification settings - Fork 32.1k
bpo-11233: Create availability directive for documentation #9692
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
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.
I like the general approach, but there are a few issues:
- "make html" generates 3 warnings
/home/vstinner/prog/python/master/Doc/library/os.rst:1111: WARNING: Explicit markup ends without a blank line; unexpected unindent.
/home/vstinner/prog/python/master/Doc/library/os.rst:1179: WARNING: Explicit markup ends without a blank line; unexpected unindent.
/home/vstinner/prog/python/master/Doc/library/os.rst:3555: WARNING: Explicit markup ends without a blank line; unexpected unindent.
-
"Availability: Unix." is used outside os.rst: asyncio, signal, time, etc. documentation.
-
Because the availability is used in multiple files, maybe the definition of availability should be described somewhere else? Sorry I have no better proposal, so maybe allos.rst is fine.
A Python core developer has requested some changes be made to your pull request before we can consider merging it. If you could please address their requests along with any other requests in other reviews from core developers that would be appreciated. Once you have made the requested changes, please leave a comment on this pull request containing the phrase |
|
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.
Hum, I would prefer that the macro doesn't add a trailing dot. I prefer to give more freedom to the user of the macro to decide how to render the text.
Thanks @csabella! I checked the full PR and it seems like all "Availability" lines now ends with a dot :-) It's more consistent. For the exact location of the definition of Availability, if someone complains, we can now easily change it, since it has a reST label. The whole PR LGTM, I merged it. I don't want it to be backported. It seems too intrusive to backport it. |
a post-commit LGTM from me. |
BTW, I think this PR should be backported to 3.7, otherwise we might have unnecessary conflicts when backporting docs updates to 3.7. |
If you want to avoid conflicts, in that case, should we also apply it to 3.6 and 2.7? |
We rarely backport doc changes to 2.7 and 3.6. IMO 3.7 would be good enough. |
Do you want me to cherry pick to 3.7 or is Miss Islington able to do it post-merge? |
Sorry, @csabella and @vstinner, I could not cleanly backport this to |
Apparently she can't :( Could you please open a PR for 3.7 branch? |
…honGH-9692) Replace "Availability: xxx" with ".. availability:: xxx" in the doc. Original patch by Georg Brandl. Co-Authored-By: Georg Brandl <[email protected]> (cherry picked from commit 2d6097d) Co-authored-by: Cheryl Sabella <[email protected]>
GH-9830 is a backport of this pull request to the 3.7 branch. |
…9692) (GH-9830) Replace "Availability: xxx" with ".. availability:: xxx" in the doc. Original patch by Georg Brandl. Co-Authored-By: Georg Brandl <[email protected]> (cherry picked from commit 2d6097d) Co-authored-by: Cheryl Sabella <[email protected]>
Original patch by Georg Brandl.
https://bugs.python.org/issue11233