diff options
Diffstat (limited to 'poky/bitbake/doc/conf.py')
-rw-r--r-- | poky/bitbake/doc/conf.py | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/poky/bitbake/doc/conf.py b/poky/bitbake/doc/conf.py index 197f2757a..fc2ee0811 100644 --- a/poky/bitbake/doc/conf.py +++ b/poky/bitbake/doc/conf.py @@ -14,6 +14,7 @@ # import sys # sys.path.insert(0, os.path.abspath('.')) +import sys import datetime current_version = "dev" @@ -73,7 +74,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, |