Skip to content

Commit

Permalink
docs(conf): Remove syncing of tabs
Browse files Browse the repository at this point in the history
  • Loading branch information
tony committed May 27, 2023
1 parent 9307424 commit 88a236f
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,12 @@
from pathlib import Path

import gp_libs

import linkify_issues

if t.TYPE_CHECKING:
from sphinx.application import Sphinx

# Get the project root dir, which is the parent dir of this
cwd = Path(__file__).parent
project_root = cwd.parent
Expand Down Expand Up @@ -240,3 +244,12 @@ def linkcode_resolve(
fn,
linespec,
)

def remove_tabs_js(app: "Sphinx", exc: Exception) -> None:
if app.builder.format == "html" and not exc:
tabs_js = Path(app.builder.outdir) / "_static" / "tabs.js"
tabs_js.unlink()


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

0 comments on commit 88a236f

Please sign in to comment.