summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorChristoph Reiter <reiter.christoph@gmail.com>2018-01-12 09:42:49 +0100
committerChristoph Reiter <reiter.christoph@gmail.com>2018-01-12 09:51:57 +0100
commit9fe7eb528c711e56ee58ce3b8a4d7b4270708d40 (patch)
treea570a24d384843af55931dc9877d74348d7900fe /docs
parent91a1ec0ef6e3cbfb6c83ae8e17564733c8e840f6 (diff)
downloadpygobject-9fe7eb528c711e56ee58ce3b8a4d7b4270708d40.tar.gz
docs: Add custom roles for linking to gitlab issues and merge requests
This allows one to use :issue:`42` or :mr:`42` in the documentation and the NEWS file and will result in links pointing to the specified issue/merge request.
Diffstat (limited to 'docs')
-rw-r--r--docs/conf.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/docs/conf.py b/docs/conf.py
index c7209f5b..26921b1f 100644
--- a/docs/conf.py
+++ b/docs/conf.py
@@ -51,6 +51,9 @@ html_theme_options = {
extlinks = {
'bzbug': ('https://bugzilla.gnome.org/show_bug.cgi?id=%s', 'bz#'),
+ 'issue': ('https://gitlab.gnome.org/GNOME/pygobject/issues/%s', 'issue#'),
+ 'mr': (
+ 'https://gitlab.gnome.org/GNOME/pygobject/merge_requests/%s', 'mr#'),
}
suppress_warnings = ["image.nonlocal_uri"]