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