docs/conf: use extension InterSphinx

Signed-off-by: Unai Martinez-Corral <umartinezcorral@antmicro.com>
This commit is contained in:
Unai Martinez-Corral 2022-02-13 21:05:59 +01:00
parent 3b6dbc5278
commit 8ad41a5be3
1 changed files with 13 additions and 0 deletions

View File

@ -48,6 +48,7 @@ copyright = f'{authors}, 2020 - 2022'
# ones.
extensions = [
'sphinx.ext.extlinks',
'sphinx.ext.intersphinx',
'sphinx_tabs.tabs',
'sphinxcontrib.jinja',
]
@ -106,6 +107,18 @@ for family in families:
key = '_'.join((family, example.name))
jinja_contexts[key] = {'blocks': fill_context(text)}
# -- Sphinx.Ext.InterSphinx ------------------------------------------------------------------------
intersphinx_mapping = {
'python': ('https://docs.python.org/3.6/', None),
'f4pga': ('https://f4pga.readthedocs.io/en/latest/', None),
'arch-defs': ('https://f4pga.readthedocs.io/projects/arch-defs/en/latest/', None),
'fasm': ('https://fasm.readthedocs.io/en/latest/', None),
'prjtrellis': ('https://prjtrellis.readthedocs.io/en/latest/', None),
'prjxray': ('https://f4pga.readthedocs.io/projects/prjxray/en/latest/', None),
'vtr': ('https://docs.verilogtorouting.org/en/latest/', None),
}
# -- Sphinx.Ext.ExtLinks ---------------------------------------------------------------------------
extlinks = {