diff options
author | Nicolas Dechesne <nicolas.dechesne@linaro.org> | 2020-07-24 13:21:02 +0200 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2020-09-17 10:09:33 +0100 |
commit | 303f1a9ef73583df420beb255ecb4dbd3d426f15 (patch) | |
tree | afaffeec591e51b5745ef3a6f77cabdc379ef7d3 /documentation | |
parent | a9577eadaeed4686bafacb1bd95b731ad6a4f4ea (diff) | |
download | poky-303f1a9ef73583df420beb255ecb4dbd3d426f15.tar.gz |
sphinx: conf.py: enable sphinx.ext.autosectionlabel
This extension generates the labels for each section, so that we can
reference section by their title.
(From yocto-docs rev: 910bdad33819116f00fd4f849dcf7484fbebb465)
Signed-off-by: Nicolas Dechesne <nicolas.dechesne@linaro.org>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'documentation')
-rw-r--r-- | documentation/conf.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/documentation/conf.py b/documentation/conf.py index a598c5bd88..beb5496763 100644 --- a/documentation/conf.py +++ b/documentation/conf.py | |||
@@ -33,9 +33,11 @@ sys.path.insert(0, os.path.abspath('sphinx')) | |||
33 | # extensions coming with Sphinx (named 'sphinx.ext.*') or your custom | 33 | # extensions coming with Sphinx (named 'sphinx.ext.*') or your custom |
34 | # ones. | 34 | # ones. |
35 | extensions = [ | 35 | extensions = [ |
36 | 'sphinx.ext.autosectionlabel', | ||
36 | 'sphinx.ext.extlinks', | 37 | 'sphinx.ext.extlinks', |
37 | 'yocto-vars' | 38 | 'yocto-vars' |
38 | ] | 39 | ] |
40 | autosectionlabel_prefix_document = True | ||
39 | 41 | ||
40 | # Add any paths that contain templates here, relative to this directory. | 42 | # Add any paths that contain templates here, relative to this directory. |
41 | templates_path = ['_templates'] | 43 | templates_path = ['_templates'] |