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 f5b4fe4 commit 2c04a31Copy full SHA for 2c04a31
docs/conf.py
@@ -8,6 +8,9 @@
8
9
import vcspull
10
11
+if t.TYPE_CHECKING:
12
+ from sphinx.application import Sphinx
13
+
14
# Get the project root dir, which is the parent dir of this
15
cwd = Path.cwd()
16
project_root = cwd.parent
@@ -250,3 +253,14 @@ def linkcode_resolve(
250
253
fn,
251
254
linespec,
252
255
)
256
257
258
+def remove_tabs_js(app: "Sphinx", exc: Exception) -> None:
259
+ # Fix for sphinx-inline-tabs#18
260
+ if app.builder.format == "html" and not exc:
261
+ tabs_js = Path(app.builder.outdir) / "_static" / "tabs.js"
262
+ tabs_js.unlink()
263
264
265
+def setup(app: "Sphinx") -> None:
266
+ app.connect("build-finished", remove_tabs_js)
0 commit comments