GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | |||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | |||||||||||||||
GeezerVison is showing github.com — GH-121970: Extract ``issue_role`` into a new extension by AA-Turner · Pull Request #130615 · python/cpython Conversation
|
| return [prb], [msg] | ||
|
|
||
| issue_url = self.ISSUE_URI.format(issue) | ||
| refnode = nodes.reference(issue, f"bpo-{issue}", refuri=issue_url) |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Here we're passing something like 12345 and bpo-12345 as the first two arguments.
Before we were passing something like bpo-12345 and bpo-12345 for both.
I see the second one is used in the refnode:
<reference refuri="https://bugs.python.org/issue?@action=redirect&bpo=13936">bpo-13936</reference>
How is the first one used?
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
It's the docutils rawsource, it should reflect what was actually written in the document.
Sphinx uses this for translation, I don't think these nodes are translatable but I'll double check.
A
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
See e.g. https://github.com/python/python-docs-fr/blob/3.13/whatsnew/3.13.po#L394-L399, the whole role is included in the translation string.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
So should it match 12345 or bpo-12345?
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
(Unresolving so the question isn't hidden :)
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
The text of what is actually written in the document, so "14159".
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Co-authored-by: Hugo van Kemenade <[email protected]>
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Thanks @AA-Turner for the PR 🌮🎉.. I'm working now to backport this PR to: 3.12, 3.13. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
…H-130615) (cherry picked from commit 043ab3a) Co-authored-by: Adam Turner <[email protected]> Co-authored-by: Hugo van Kemenade <[email protected]>
|
GH-130651 is a backport of this pull request to the 3.13 branch. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
…H-130615) (cherry picked from commit 043ab3a) Co-authored-by: Adam Turner <[email protected]> Co-authored-by: Hugo van Kemenade <[email protected]>
|
GH-130652 is a backport of this pull request to the 3.12 branch. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
) (#130651) (cherry picked from commit 043ab3a) Co-authored-by: Adam Turner <[email protected]> Co-authored-by: Hugo van Kemenade <[email protected]>
) (#130652) (cherry picked from commit 043ab3a) Co-authored-by: Adam Turner <[email protected]> Co-authored-by: Hugo van Kemenade <[email protected]>
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
There was an error while loading. Please reload this page.