diff options
| author | Anderson Bravalheri <andersonbravalheri@gmail.com> | 2022-03-24 12:19:54 +0000 |
|---|---|---|
| committer | Anderson Bravalheri <andersonbravalheri@gmail.com> | 2022-03-24 12:19:54 +0000 |
| commit | 7f7ac349329d748bfa784540fe861a682bf3df50 (patch) | |
| tree | 30f6319b8b268e2a1ef6d7b7025d048526bd7aa7 /docs | |
| parent | 2ec868c8a8ce69dd43a9a00eea5426159f625c44 (diff) | |
| download | python-setuptools-git-7f7ac349329d748bfa784540fe861a682bf3df50.tar.gz | |
Avoid extlink for issue to prevent verbose warnings
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/conf.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/docs/conf.py b/docs/conf.py index 21451447..4ebb521c 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -10,6 +10,10 @@ link_files = { ), replace=[ dict( + pattern=r'(?<!\w)PR #(?P<pull>\d+)', + url='{package_url}/pull/{pull}', + ), + dict( pattern=r'(?<!\w)(Issue )?#(?P<issue>\d+)', url='{package_url}/issues/{issue}', ), @@ -99,8 +103,6 @@ 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'), # noqa: WPS323 'wiki': ('https://wikipedia.org/wiki/%s', '%s'), # noqa: WPS323 |
