Skip to content

Commit 1d86604

Browse files
committed
Improve discourse link in newsfragment
1 parent 7faa077 commit 1d86604

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

docs/conf.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,10 @@
8989
pattern=r'pypa/(?P<commit_repo>[\-\.\w]+)@(?P<commit_number>[\da-f]+)',
9090
url='{GH}/pypa/{commit_repo}/commit/{commit_number}',
9191
),
92+
dict(
93+
pattern=r'Discourse thread (?P<thread_number>\d+)',
94+
url='https://discuss.python.org/t/{commit_number}',
95+
),
9296
],
9397
),
9498
}
@@ -113,7 +117,6 @@
113117
'user': (f'{github_url}%s', '@%s'),
114118
'pypi': ('https://pypi.org/project/%s', '%s'),
115119
'wiki': ('https://wikipedia.org/wiki/%s', '%s'),
116-
'discourse': ('https://discuss.python.org/t/%s', '%s'),
117120
}
118121
extensions += ['sphinx.ext.extlinks']
119122

newsfragments/4965.feature.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
Incorporated ``wheel.macosx_libfile`` as a private module in the ``setuptools`` project.
2-
The discussion leading to this approach can be found in #4935 and :discourse:`87509`.
2+
The discussion leading to this approach can be found in #4935 and in the Discourse thread 87509.
33
Third party software interested in using this module are encouraged to interact
4-
in the discourse thread and propose alternatives (e.g. extracting this module
4+
in the Discourse thread and propose alternatives (e.g. extracting this module
55
in its own separated project).

0 commit comments

Comments
 (0)