Skip to content

Commit

Permalink
chore(docs[conf]): pydocstyle manual fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
tony committed Nov 25, 2023
1 parent 0c776a1 commit 2ada5a0
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions docs/conf.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# flake8: NOQA: E501
"""Sphinx configuration for libtmux."""
import contextlib
import inspect
import pathlib
Expand Down Expand Up @@ -202,6 +203,7 @@ def linkcode_resolve(domain: str, info: t.Dict[str, str]) -> t.Union[None, str]:


def remove_tabs_js(app: "Sphinx", exc: Exception) -> None:
"""Remove tabs.js from _static after build."""
# Fix for sphinx-inline-tabs#18
if app.builder.format == "html" and not exc:
tabs_js = pathlib.Path(app.builder.outdir) / "_static" / "tabs.js"
Expand All @@ -210,4 +212,5 @@ def remove_tabs_js(app: "Sphinx", exc: Exception) -> None:


def setup(app: "Sphinx") -> None:
"""Configure Sphinx app hooks."""
app.connect("build-finished", remove_tabs_js)

0 comments on commit 2ada5a0

Please sign in to comment.