Fiddling for fun
parent
07652d9795
commit
6ea2963cf8
|
@ -0,0 +1,13 @@
|
|||
import glob
|
||||
import os
|
||||
import subprocess
|
||||
|
||||
specials = ["footer", "todo"]
|
||||
for filename in specials:
|
||||
subprocess.run(f"pandoc {filename}.md > {filename}.html", shell=True)
|
||||
|
||||
for filename in glob.glob("*.md"):
|
||||
filename = os.path.splitext(filename)[0]
|
||||
if filename in specials:
|
||||
continue
|
||||
subprocess.run(f"pandoc --toc --css=github-pandoc.css -A footer.html --standalone {filename}.md > {filename}.html", shell=True)
|
Loading…
Reference in New Issue