Skip to content

Commit 4a9322c

Browse files
committed
fix bs call
1 parent f3729f5 commit 4a9322c

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

pre_build.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -173,13 +173,13 @@ def build_footer():
173173
with open('footer.md', 'w') as footer_file:
174174
footer_file.write(footer_content)
175175

176-
def build_legacy_bikeshed():
176+
def build_legacy_bikeshed(root: str = '.'):
177177
"""Build legacy Bikeshed files."""
178178
import subprocess
179179
import glob
180180

181-
bikeshed_file = glob.glob('*.bs')[0]
182-
subprocess.run(['bikeshed', 'build', bikeshed_file, '--output', 'index.html'], check=True)
181+
bikeshed_file = os.path.normpath(f"{root}/{glob.glob('*.bs')[0]}")
182+
subprocess.run(['bikeshed', 'spec', bikeshed_file, 'index.html'], check=True)
183183

184184
build_json_examples()
185185
build_json_schemas()

0 commit comments

Comments
 (0)