15 lines
490 B
Python
Executable File
15 lines
490 B
Python
Executable File
#!/usr/bin/python3
|
|
|
|
from os import walk
|
|
import subprocess
|
|
|
|
subprocess.run("./tools/main_page_generator.py ./articles | ./tools/mmd/build/multimarkdown > ./html/index.html", shell=True)
|
|
subprocess.run("mkdir -p ./html/articles", shell=True)
|
|
|
|
for root, dirs, _ in walk("./articles"):
|
|
for d in dirs:
|
|
subprocess.run(
|
|
f"""./tools/article_wrapper.py ./articles/{d}/page.mmd | ./tools/mmd/build/multimarkdown > ./html/articles/{d}.html""",
|
|
shell=True
|
|
)
|