From f39ad75081f20bc4344b931fb699957298cba117 Mon Sep 17 00:00:00 2001 From: Sviatoslav Sydorenko Date: Sun, 15 Nov 2020 03:07:13 +0100 Subject: Add a :user: role to sphinx (cherry picked from commit 3bc2b0f181291d727833586071a95d5d8ff68fd3) --- docs/conf.py | 2 ++ 1 file changed, 2 insertions(+) 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 = { -- cgit v1.2.1