From 18a484df634653f81d86bb5aa1a6ed7d44572f5a Mon Sep 17 00:00:00 2001 From: Nicolas Dechesne Date: Mon, 7 Sep 2020 12:52:49 +0200 Subject: sphinx: enable intersphinx extension This extension can generate automatic links to the documentation of objects in other projects. We will use it to use cross references with the Bibtake manual, for example. (From yocto-docs rev: 5add9854b112f93acba982f237fbfa83aee80d77) Signed-off-by: Nicolas Dechesne Signed-off-by: Richard Purdie --- documentation/conf.py | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'documentation/conf.py') diff --git a/documentation/conf.py b/documentation/conf.py index 54d8db4b47..546ca723a9 100644 --- a/documentation/conf.py +++ b/documentation/conf.py @@ -35,6 +35,7 @@ sys.path.insert(0, os.path.abspath('sphinx')) extensions = [ 'sphinx.ext.autosectionlabel', 'sphinx.ext.extlinks', + 'sphinx.ext.intersphinx', 'yocto-vars' ] autosectionlabel_prefix_document = True @@ -72,6 +73,11 @@ extlinks = { 'oe_lists': ('https://lists.openembedded.org%s', None), } +# Intersphinx config to use cross reference with Bitbake user manual +intersphinx_mapping = { + 'bitbake': ('https://docs.yoctoproject.org/bitbake/', None) +} + # -- Options for HTML output ------------------------------------------------- # The theme to use for HTML and HTML Help pages. See the documentation for -- cgit v1.2.3-54-g00ecf