-
-
Notifications
You must be signed in to change notification settings - Fork 30.6k
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 the role :pep: for the PEP \d+ #79223
Comments
In the doc, we write PEP XYZ but there is a sphinx role for that, just replace PEP XYZ by :pep:`XYZ` and convert the :PEP: by :pep: |
This gives us the hyperlink everywhere a PEP is referenced? |
sure, it's the default behavior of this role, I have a PR with the fix, but Github has a big issue with the PRs :/ |
What is wrong with the current code? Why replace :PEP: with :pep:? |
in fact, in the doc of Sphinx, it's just :pep: and not :PEP: see http://www.sphinx-doc.org/en/master/usage/restructuredtext/roles.html?highlight=%3Apep%3A#role-pep in this case, I think it's better to use the "reference" and use pep in lowercase. |
I am -0 on this. I want to hear a more compelling argument than wanting to leverage an existing feature. IMHO, when i am reading the documentation i never bothered to go into the PEP docs - most of the times. I explicitly visited a PEP when i want to understand the rationale of a feature. My 2 cents. |
When you start to contribute to Python, and you see there is a PEP in the doc.
if you don't know the concept of the PEPs, you will check with your favorite search engine because you are a developer. This is not the case for everybody. For a newcomer/beginner, read the right information just with a click, it's just the founding principles of the Web. create a link is not a real problem for a computer and for the end-user will be happy. |
When mentionning a PEP I see no reason not to point to it, and as it's easy to do with the pep role, I'm +1 on this. |
If I am understanding this correctly the :pep: role is already present and only that PEP references that don't have this role are being updated now? ➜ cpython git:(master) rg ':pep:`\d+`' | grep 'rst' | grep -Ev 'NEWS|whatsnew' | wc References that don't have the role are being updated along with :PEP: changed to :pep: in the PR? (Around 30 entries) ➜ cpython git:(master) rg 'PEP \d+' | grep 'rst' | grep -Ev 'NEWS|whatsnew' | wc I think older NEWS entries can be left behind like the PR changes whatsnew for Python 2.0, 2.1, 2.5 and they won't be back ported I personally feel little value in changing them though doc changes have been done on those files in 2016 and up to the reviewer. Thanks |
Docutils itself parses In some parts of the docs with many references, some devs (I think Raymond Hettinger for example) use tricks like So I don’t see what the replacement of `PEP nnn` with `:pep:`nnn`` adds. |
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: