docs/conf: add ExtLinks
@@ -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', '')
+}
