Merge pull request #4444 from mhils/docs-ci

Fix Docs CI
This commit is contained in:
Maximilian Hils 2021-02-13 12:34:50 +01:00 committed by GitHub
commit 9763c1810d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -6,7 +6,7 @@ from pathlib import Path
here = Path(__file__).parent
for script in (here / "scripts").glob("*.py"):
for script in sorted((here / "scripts").glob("*.py")):
print(f"Generating output for {script.name}...")
out = subprocess.check_output(["python3", script.absolute()], text=True)
if out:
@ -14,4 +14,4 @@ for script in (here / "scripts").glob("*.py"):
if (here / "public").exists():
shutil.rmtree(here / "public")
subprocess.run(["hugo"], cwd=here / "src")
subprocess.run(["hugo"], cwd=here / "src", check=True)