From 8ad41a5be3c58372e677ed4459c918a1a22e78f8 Mon Sep 17 00:00:00 2001 From: Unai Martinez-Corral Date: Sun, 13 Feb 2022 21:05:59 +0100 Subject: [PATCH] docs/conf: use extension InterSphinx Signed-off-by: Unai Martinez-Corral --- docs/conf.py | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/docs/conf.py b/docs/conf.py index 6297807..00cd9cc 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -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 = {