summaryrefslogtreecommitdiffstats
path: root/doc/conf.py
diff options
context:
space:
mode:
authorNicolas Dechesne <nicolas.dechesne@linaro.org>2020-10-05 14:19:32 +0200
committerNicolas Dechesne <nicolas.dechesne@linaro.org>2020-10-05 14:19:32 +0200
commit9ae5cce76693d7c12396cee1183aaf371bb3d66c (patch)
tree515b96520ce09d6d1cead148c5bf7717f1dae32b /doc/conf.py
parentec4c481a0c3a3ccd0ef0832f128afdc047876552 (diff)
downloadbitbake-9ae5cce76693d7c12396cee1183aaf371bb3d66c.tar.gz
docs: sphinx: report errors when dependencies are not met
Signed-off-by: Nicolas Dechesne <nicolas.dechesne@linaro.org>
Diffstat (limited to 'doc/conf.py')
-rw-r--r--doc/conf.py8
1 files changed, 7 insertions, 1 deletions
diff --git a/doc/conf.py b/doc/conf.py
index 197f2757a..354dff36f 100644
--- a/doc/conf.py
+++ b/doc/conf.py
@@ -73,7 +73,13 @@ rst_prolog = """
# The theme to use for HTML and HTML Help pages. See the documentation for
# a list of builtin themes.
#
-html_theme = 'sphinx_rtd_theme'
+try:
+ import sphinx_rtd_theme
+ html_theme = 'sphinx_rtd_theme'
+except ImportError:
+ sys.stderr.write("The Sphinx sphinx_rtd_theme HTML theme was not found.\
+ \nPlease make sure to install the sphinx_rtd_theme python package.\n")
+ sys.exit(1)
# Add any paths that contain custom static files (such as style sheets) here,
# relative to this directory. They are copied after the builtin static files,