We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3ba173b commit dc238f0Copy full SHA for dc238f0
source/_extensions/rtd_patch.py
@@ -0,0 +1,13 @@
1
+# Force RTD to build zip with regular html builder, not single html
2
+# The builder is preloaded after all extensions are loaded, so we can
3
+# change the registered class here.
4
+
5
+from sphinx.builders.html import StandaloneHTMLBuilder
6
7
8
+class ReadtheDocsBuilderLocalMedia(StandaloneHTMLBuilder):
9
+ name = "readthedocssinglehtmllocalmedia"
10
11
12
+def setup(app):
13
+ app.add_builder(ReadtheDocsBuilderLocalMedia, override=True)
source/conf.py
@@ -57,6 +57,7 @@
57
58
local_extensions = [
59
"_extensions.post_process",
60
+ "_extensions.rtd_patch",
61
"_extensions.localization",
62
]
63
0 commit comments