From de1bc377c46f6d464c5e0ee00d34786abdc564bc Mon Sep 17 00:00:00 2001 From: Unai Martinez-Corral Date: Wed, 9 Mar 2022 02:47:32 +0100 Subject: [PATCH] docs/conf: add ExtLinks Signed-off-by: Unai Martinez-Corral --- docs/conf.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/docs/conf.py b/docs/conf.py index 3906f48..4302418 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -43,6 +43,7 @@ version = '' release = '' # The full version, including alpha/beta/rc tags. extensions = [ + 'sphinx.ext.extlinks', 'sphinx.ext.intersphinx', 'sphinx_verilog_domain' ] @@ -140,3 +141,14 @@ intersphinx_mapping = { "prjxray": ("https://f4pga.readthedocs.io/projects/prjxray/en/latest/", None), "vtr": ("https://docs.verilogtorouting.org/en/latest/", None), } + +# -- Sphinx.Ext.ExtLinks ----------------------------------------------------------------------------------------------- + +extlinks = { + 'wikipedia': ('https://en.wikipedia.org/wiki/%s', 'wikipedia:'), + 'gh': ('https://github.com/%s', 'gh:'), + 'ghsharp': ('https://github.com/chipsalliance/f4pga/issues/%s', '#'), + 'ghissue': ('https://github.com/chipsalliance/f4pga/issues/%s', 'issue #'), + 'ghpull': ('https://github.com/chipsalliance/f4pga/pull/%s', 'pull request #'), + 'ghsrc': ('https://github.com/chipsalliance/f4pga/blob/master/%s', '') +}