Skip to content

Commit

Permalink
docs: build script failed to check out
Browse files Browse the repository at this point in the history
  • Loading branch information
dbhart committed Oct 7, 2024
1 parent f0192a0 commit df70c39
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions build_docs.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,11 +54,6 @@
if not found_stable:
found_stable = "main"

with open(
os.path.abspath(os.path.join(".", "docs", "_static", "switcher.json")), "w"
) as fswitch:
json.dump(versions, fswitch)

tag = found_stable
os.environ["VERSION_INFO"] = repr(tag)
my_env["SANSMIC_SPHINX_VERSION"] = tag
Expand All @@ -80,8 +75,6 @@
env=my_env,
)

os.remove(os.path.abspath(os.path.join(".", "docs", "_static", "switcher.json")))

tags.append("main")

for tag in tags:
Expand All @@ -104,3 +97,11 @@
shell=True,
env=my_env,
)

with open(
os.path.abspath(
os.path.join(".", "docs", "_build", "html", "_static", "switcher.json")
),
"w",
) as fswitch:
json.dump(versions, fswitch)

0 comments on commit df70c39

Please sign in to comment.