diff options
Diffstat (limited to 'bitbake/doc/conf.py')
-rw-r--r-- | bitbake/doc/conf.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/bitbake/doc/conf.py b/bitbake/doc/conf.py index fc2ee08111..f61241e28b 100644 --- a/bitbake/doc/conf.py +++ b/bitbake/doc/conf.py | |||
@@ -17,6 +17,8 @@ | |||
17 | import sys | 17 | import sys |
18 | import datetime | 18 | import datetime |
19 | 19 | ||
20 | from pathlib import Path | ||
21 | |||
20 | current_version = "dev" | 22 | current_version = "dev" |
21 | 23 | ||
22 | # String used in sidebar | 24 | # String used in sidebar |
@@ -47,6 +49,7 @@ extlinks = { | |||
47 | extensions = [ | 49 | extensions = [ |
48 | 'sphinx.ext.autosectionlabel', | 50 | 'sphinx.ext.autosectionlabel', |
49 | 'sphinx.ext.extlinks', | 51 | 'sphinx.ext.extlinks', |
52 | 'sphinx.ext.autodoc', | ||
50 | ] | 53 | ] |
51 | autosectionlabel_prefix_document = True | 54 | autosectionlabel_prefix_document = True |
52 | 55 | ||
@@ -99,3 +102,7 @@ html_last_updated_fmt = '%b %d, %Y' | |||
99 | 102 | ||
100 | # Remove the trailing 'dot' in section numbers | 103 | # Remove the trailing 'dot' in section numbers |
101 | html_secnumber_suffix = " " | 104 | html_secnumber_suffix = " " |
105 | |||
106 | # autoconf needs the modules available to auto-generate documentation from the | ||
107 | # code | ||
108 | sys.path.insert(0, str(Path('..', 'lib').resolve())) | ||