[Bf-docboard-svn] bf-manual: [7196] trunk/blender_docs/manual/conf.py: Support building without 'sphinx_rtd_theme'
Campbell Barton
noreply at blender.org
Thu Oct 8 03:03:16 CEST 2020
Revision: 7196
https://developer.blender.org/rBM7196
Author: campbellbarton
Date: 2020-10-08 03:03:16 +0200 (Thu, 08 Oct 2020)
Log Message:
-----------
Support building without 'sphinx_rtd_theme'
It seems this is no longer part of a default sphinx installation,
so support building without it.
Modified Paths:
--------------
trunk/blender_docs/manual/conf.py
Modified: trunk/blender_docs/manual/conf.py
===================================================================
--- trunk/blender_docs/manual/conf.py 2020-10-08 00:51:38 UTC (rev 7195)
+++ trunk/blender_docs/manual/conf.py 2020-10-08 01:03:16 UTC (rev 7196)
@@ -176,8 +176,14 @@
# -- Options for HTML output ---------------------------------------------------
# The theme to use for HTML and HTML Help pages. See the documentation for
# a list of builtin themes.
-html_theme = "sphinx_rtd_theme"
+html_theme = "default"
+try:
+ __import__("sphinx_rtd_theme")
+ html_theme = "sphinx_rtd_theme"
+except ModuleNotFound:
+ pass
+
# Theme options are theme-specific and customize the look and feel of a theme
# further. For a list of options available for each theme, see the
# documentation.
More information about the Bf-docboard-svn
mailing list