[Bf-docboard-svn] bf-manual: [7211] trunk/blender_docs/manual/conf.py: Config: Cleanup theme import
Aaron Carlisle
noreply at blender.org
Fri Oct 9 21:11:13 CEST 2020
Revision: 7211
https://developer.blender.org/rBM7211
Author: Blendify
Date: 2020-10-09 21:11:13 +0200 (Fri, 09 Oct 2020)
Log Message:
-----------
Config: Cleanup theme import
Modified Paths:
--------------
trunk/blender_docs/manual/conf.py
Modified: trunk/blender_docs/manual/conf.py
===================================================================
--- trunk/blender_docs/manual/conf.py 2020-10-09 18:58:40 UTC (rev 7210)
+++ trunk/blender_docs/manual/conf.py 2020-10-09 19:11:13 UTC (rev 7211)
@@ -178,9 +178,9 @@
# a list of builtin themes.
html_theme = "default"
try:
- __import__("sphinx_rtd_theme")
+ import sphinx_rtd_theme
html_theme = "sphinx_rtd_theme"
-except ModuleNotFoundError:
+except ImportError:
pass
@@ -193,10 +193,8 @@
html_theme_path = []
if html_theme == "sphinx_rtd_theme":
- import sphinx_rtd_theme
-
- # included in the title
html_theme_options = {
+ # included in the title
"display_version": False,
"collapse_navigation": True,
"navigation_depth": -1,
More information about the Bf-docboard-svn
mailing list