summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
Diffstat (limited to 'docs')
-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']