summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSviatoslav Sydorenko <wk@sydorenko.org.ua>2020-11-15 03:07:13 +0100
committerSviatoslav Sydorenko <wk@sydorenko.org.ua>2020-11-15 03:25:06 +0100
commitf39ad75081f20bc4344b931fb699957298cba117 (patch)
tree3f8222cb7b1410f67f260bd0ef6955b92270289b
parent0a652bd91732e3c04620948c06b198c7c0183889 (diff)
downloadcherrypy-git-f39ad75081f20bc4344b931fb699957298cba117.tar.gz
Add a :user: role to sphinx
(cherry picked from commit 3bc2b0f181291d727833586071a95d5d8ff68fd3)
-rw-r--r--docs/conf.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/docs/conf.py b/docs/conf.py
index bad773be..a6f0a0b1 100644
--- a/docs/conf.py
+++ b/docs/conf.py
@@ -62,6 +62,7 @@ github_repo_name = project.lower()
github_repo_slug = f'{github_repo_org}/{github_repo_name}'
github_repo_url = f'{github_url}/{github_repo_slug}'
cr_github_repo_url = f'{github_url}/{github_repo_org}/cheroot'
+github_sponsors_url = f'{github_url}/sponsors'
rst_epilog = f"""
.. |project| replace:: {project}
@@ -96,6 +97,7 @@ extlinks = {
'cr-issue': (f'{cr_github_repo_url}/issues/%s', 'Cheroot #'),
'cr-pr': (f'{cr_github_repo_url}/pull/%s', 'Cheroot PR #'),
'gh': (f'{github_url}/%s', 'GitHub: '),
+ 'user': (f'{github_sponsors_url}/%s', '@'),
}
intersphinx_mapping = {