summaryrefslogtreecommitdiff
path: root/docs/conf.py
diff options
context:
space:
mode:
authorAnderson Bravalheri <andersonbravalheri@gmail.com>2022-02-01 12:44:26 +0000
committerAnderson Bravalheri <andersonbravalheri@gmail.com>2022-03-05 14:32:14 +0000
commitaab5899b4cd7e262a71635cf669ebf63f9b1e7ff (patch)
tree74d0fa36ff7e8813c37f9e7d430af9b1620465cd /docs/conf.py
parent9e8e3d3693953e8f75539506b3f97b0df30ce77c (diff)
downloadpython-setuptools-git-aab5899b4cd7e262a71635cf669ebf63f9b1e7ff.tar.gz
Add news fragment
Diffstat (limited to 'docs/conf.py')
-rw-r--r--docs/conf.py8
1 files changed, 7 insertions, 1 deletions
diff --git a/docs/conf.py b/docs/conf.py
index da4d9f33..7f66483a 100644
--- a/docs/conf.py
+++ b/docs/conf.py
@@ -93,10 +93,16 @@ intersphinx_mapping.update({
# Add support for linking usernames
github_url = 'https://github.com'
+github_repo_org = 'pypa'
+github_repo_name = 'setuptools'
+github_repo_slug = f'{github_repo_org}/{github_repo_name}'
+github_repo_url = f'{github_url}/{github_repo_slug}'
github_sponsors_url = f'{github_url}/sponsors'
extlinks = {
+ 'issue': (f'{github_repo_url}/issues/%s', 'issue #%s'), # noqa: WPS323
+ 'pr': (f'{github_repo_url}/pull/%s', 'PR #%s'), # noqa: WPS323
'user': (f'{github_sponsors_url}/%s', '@'), # noqa: WPS323
- 'pypi': ('https://pypi.org/project/%s', '%s'),
+ 'pypi': ('https://pypi.org/project/%s', '%s'), # noqa: WPS323
}
extensions += ['sphinx.ext.extlinks']