Skip to content

Commit

Permalink
latest
Browse files Browse the repository at this point in the history
  • Loading branch information
normanrz committed Dec 3, 2024
1 parent d7bd5b3 commit ca9fbaf
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,21 +64,22 @@ def bikeshed():
import shutil
import subprocess

for version in ["0.1", "0.2", "0.3", "0.4"]:
os.makedirs(".cache", exist_ok=True)
subprocess.check_call(
f"git clone --depth=1 --branch {version}.0 https://github.com/ome/ngff.git .cache/{version}",
shell=True,
)
os.symlink(f".cache/{version}/{version}", f"{version}")
os.symlink("spec", "latest")

for index_file in ["latest/index.bs"] + glob.glob("[0-9]*/index.bs"):
output_file = index_file.replace("bs", "html")
output_dir = os.path.dirname(output_file)
target_dir = os.path.join("_bikeshed", output_dir)

run_bikeshed = True

for version in ["0.1", "0.2", "0.3", "0.4"]:
os.makedirs(".cache", exist_ok=True)
subprocess.check_call(
f"git clone --depth=1 --branch {version}.0 https://github.com/ome/ngff.git .cache/{version}",
shell=True,
)
os.symlink(f".cache/{version}/{version}", f"{version}")

# Give the loop a chance to skip files if no build is needed/requested
if "BIKESHED" not in os.environ and os.path.exists(output_file):
src_time = os.path.getmtime(index_file)
Expand Down

0 comments on commit ca9fbaf

Please sign in to comment.