[backport to 2.7] Change documentation's `Show Source` link to GitHub by Mariatta · Pull Request #44 · python/cpython

@Mariatta

Change documentation's Show Source link to GitHub (2.7 branch)
Render issue role as bpo-NNNN

@Mariatta

Change the url to 2.7

(cherry picked from commit 79ab8be)

methane

def issue_role(typ, rawtext, text, lineno, inliner, options={}, content=[]):
issue = utils.unescape(text)
text = 'issue ' + issue
text = 'bpo- ' + issue

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is there space between 'bpo-' and issue number?

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No, there shouldn't be a space 😅
Thanks for the review :) Will fix soon.

@Mariatta

@methane

Hm, the title of pull request is bit misleading. doc of Python 2.7 doesn't include Misc/NEWS.
But this pull request backports these changes.

  • Change link target of "Source code:" from hg.python.org to github
  • issue role (:issue:`1234`) rendered as "bpo-1234" instead of "issue 1234" (example)

methane

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I did make html in local, and it works as expected.
LGTM.

@Mariatta Mariatta changed the title [backport to 2.7] Support "bpo-" in Misc/NEWS [backport to 2.7] Change documentation's Show Source link to GitHub

Feb 12, 2017

@Mariatta

Thanks @methane :) I updated the pull request description.
What do you think?

@methane

gnprice added a commit to gnprice/cpython that referenced this pull request

Aug 15, 2019

benjaminp pushed a commit that referenced this pull request

Sep 9, 2019

miss-islington pushed a commit to miss-islington/cpython that referenced this pull request

Sep 9, 2019

miss-islington pushed a commit to miss-islington/cpython that referenced this pull request

Sep 9, 2019

benjaminp pushed a commit that referenced this pull request

Sep 9, 2019
GH-15301)

The link we have points to the version from Unicode 6.0.0, dated 2010.
There have been numerous updates to it since then:
  https://www.unicode.org/reports/tr44/GH-Modifications

Change the link to one that points to the current version. Also, use HTTPS..
(cherry picked from commit 64c6ac7)

Co-authored-by: Greg Price <gnprice@gmail.com>

benjaminp added a commit that referenced this pull request

Sep 9, 2019
GH-15808)

The link we have points to the version from Unicode 6.0.0, dated 2010.
There have been numerous updates to it since then:
  https://www.unicode.org/reports/tr44/GH-Modifications

Change the link to one that points to the current version. Also, use HTTPS..
(cherry picked from commit 64c6ac7)

Co-authored-by: Greg Price <gnprice@gmail.com>

miss-islington added a commit that referenced this pull request

Sep 9, 2019
…15301)

The link we have points to the version from Unicode 6.0.0, dated 2010.
There have been numerous updates to it since then:
  https://www.unicode.org/reports/tr44/GH-Modifications

Change the link to one that points to the current version. Also, use HTTPS.
(cherry picked from commit 64c6ac7)

Co-authored-by: Greg Price <gnprice@gmail.com>

miss-islington added a commit that referenced this pull request

Sep 9, 2019
…15301)

The link we have points to the version from Unicode 6.0.0, dated 2010.
There have been numerous updates to it since then:
  https://www.unicode.org/reports/tr44/GH-Modifications

Change the link to one that points to the current version. Also, use HTTPS.
(cherry picked from commit 64c6ac7)

Co-authored-by: Greg Price <gnprice@gmail.com>

websurfer5 pushed a commit to websurfer5/cpython that referenced this pull request

Jul 20, 2020

iritkatriel referenced this pull request in iritkatriel/cpython

Jul 22, 2021

jaraco pushed a commit to jaraco/cpython that referenced this pull request

Feb 17, 2023
Fix `contents()` so that it no longer returns unrelated items

Closes python#44

See merge request python-devs/importlib_resources!48

oraluben pushed a commit to oraluben/cpython that referenced this pull request

Jun 26, 2023

This was referenced

Feb 11, 2025