diff --git a/conf.py b/conf.py index e44ee1b5..24f77fab 100644 --- a/conf.py +++ b/conf.py @@ -64,6 +64,15 @@ 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) @@ -71,14 +80,6 @@ def bikeshed(): 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)