We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9307424 commit ee67c82Copy full SHA for ee67c82
1 file changed
docs/conf.py
@@ -7,8 +7,12 @@
7
from pathlib import Path
8
9
import gp_libs
10
+
11
import linkify_issues
12
13
+if t.TYPE_CHECKING:
14
+ from sphinx.application import Sphinx
15
16
# Get the project root dir, which is the parent dir of this
17
cwd = Path(__file__).parent
18
project_root = cwd.parent
@@ -240,3 +244,14 @@ def linkcode_resolve(
240
244
fn,
241
245
linespec,
242
246
)
247
248
249
+def remove_tabs_js(app: "Sphinx", exc: Exception) -> None:
250
+ # Fix for sphinx-inline-tabs#18
251
+ if app.builder.format == "html" and not exc:
252
+ tabs_js = Path(app.builder.outdir) / "_static" / "tabs.js"
253
+ tabs_js.unlink()
254
255
256
+def setup(app: "Sphinx") -> None:
257
+ app.connect("build-finished", remove_tabs_js)
0 commit comments