docs/conf: add ExtLinks

Signed-off-by: Unai Martinez-Corral <umartinezcorral@antmicro.com>
This commit is contained in:
Unai Martinez-Corral 2022-03-09 02:47:32 +01:00
parent 6ebcca01f3
commit de1bc377c4
1 changed files with 12 additions and 0 deletions

View File

@ -43,6 +43,7 @@ version = ''
release = '' # The full version, including alpha/beta/rc tags. release = '' # The full version, including alpha/beta/rc tags.
extensions = [ extensions = [
'sphinx.ext.extlinks',
'sphinx.ext.intersphinx', 'sphinx.ext.intersphinx',
'sphinx_verilog_domain' 'sphinx_verilog_domain'
] ]
@ -140,3 +141,14 @@ intersphinx_mapping = {
"prjxray": ("https://f4pga.readthedocs.io/projects/prjxray/en/latest/", None), "prjxray": ("https://f4pga.readthedocs.io/projects/prjxray/en/latest/", None),
"vtr": ("https://docs.verilogtorouting.org/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', '')
}