From 9fe7eb528c711e56ee58ce3b8a4d7b4270708d40 Mon Sep 17 00:00:00 2001 From: Christoph Reiter Date: Fri, 12 Jan 2018 09:42:49 +0100 Subject: 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. --- docs/conf.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'docs') 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"] -- cgit v1.2.1