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 e07c876
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
from pathlib import Path

import gp_libs

import linkify_issues

# Get the project root dir, which is the parent dir of this
Expand Down Expand Up @@ -240,3 +241,12 @@ def linkcode_resolve(
fn,
linespec,
)

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


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

0 comments on commit e07c876

Please sign in to comment.