diff options
Diffstat (limited to 'bitbake/doc/conf.py')
-rw-r--r-- | bitbake/doc/conf.py | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/bitbake/doc/conf.py b/bitbake/doc/conf.py index 197f2757aa..354dff36f7 100644 --- a/bitbake/doc/conf.py +++ b/bitbake/doc/conf.py | |||
@@ -73,7 +73,13 @@ rst_prolog = """ | |||
73 | # The theme to use for HTML and HTML Help pages. See the documentation for | 73 | # The theme to use for HTML and HTML Help pages. See the documentation for |
74 | # a list of builtin themes. | 74 | # a list of builtin themes. |
75 | # | 75 | # |
76 | html_theme = 'sphinx_rtd_theme' | 76 | try: |
77 | import sphinx_rtd_theme | ||
78 | html_theme = 'sphinx_rtd_theme' | ||
79 | except ImportError: | ||
80 | sys.stderr.write("The Sphinx sphinx_rtd_theme HTML theme was not found.\ | ||
81 | \nPlease make sure to install the sphinx_rtd_theme python package.\n") | ||
82 | sys.exit(1) | ||
77 | 83 | ||
78 | # Add any paths that contain custom static files (such as style sheets) here, | 84 | # Add any paths that contain custom static files (such as style sheets) here, |
79 | # relative to this directory. They are copied after the builtin static files, | 85 | # relative to this directory. They are copied after the builtin static files, |