Skip to content

Commit

Permalink
Adjusting directories
Browse files Browse the repository at this point in the history
  • Loading branch information
gphipps authored and gphipps committed Aug 6, 2024
1 parent 53b1a0e commit aa12974
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docs/build.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@
def build_doc(version: str) -> None:
print(f"Build _{version}_")
run(f"git checkout v{version}")
run("git checkout publish-docs -- conf.py")
run("git checkout publish-docs -- versions.toml")
run("git checkout publish-docs -- docs/conf.py")
run("git checkout publish-docs -- docs/versions.toml")

#run("make html")
run("sphinx-build -M html docs _build")
Expand All @@ -33,7 +33,7 @@ def build_init_page(version: str) -> None:
run("mkdir pages")

# get versions
with open("meta.toml", "rb") as f:
with open("docsmeta.toml", "rb") as f:
versions = tomllib.load(f)["versions"]
print(f"versions A _{versions}_")
versions.sort(reverse=True, key=lambda v: tuple(map(int, v.split("."))))
Expand Down

0 comments on commit aa12974

Please sign in to comment.