[Bf-docboard-svn] bf-manual: [7528] trunk/blender_docs/manual/conf.py: Config: Use html_*_files api instead of sphinx app api
Aaron Carlisle
noreply at blender.org
Tue Jan 5 06:48:34 CET 2021
Revision: 7528
https://developer.blender.org/rBM7528
Author: Blendify
Date: 2021-01-05 06:48:34 +0100 (Tue, 05 Jan 2021)
Log Message:
-----------
Config: Use html_*_files api instead of sphinx app api
This fixes css/js files being used on builders like epub
Modified Paths:
--------------
trunk/blender_docs/manual/conf.py
Modified: trunk/blender_docs/manual/conf.py
===================================================================
--- trunk/blender_docs/manual/conf.py 2021-01-05 04:44:55 UTC (rev 7527)
+++ trunk/blender_docs/manual/conf.py 2021-01-05 05:48:34 UTC (rev 7528)
@@ -227,11 +227,10 @@
# so a file named "default.css" will overwrite the builtin "default.css".
html_static_path = ["../resources/theme"]
-def setup(app):
- if html_theme == "sphinx_rtd_theme":
- app.add_css_file("css/theme_overrides.css")
- app.add_css_file("css/version_switch.css")
- app.add_js_file("js/version_switch.js")
+if html_theme == "sphinx_rtd_theme":
+ html_css_files = ["css/theme_overrides.css",
+ "css/version_switch.css"]
+ html_js_files = ["js/version_switch.js"]
# Add any extra paths that contain custom files (such as robots.txt or
# .htaccess) here, relative to this directory. These files are copied
More information about the Bf-docboard-svn
mailing list