1
0
mirror of https://gitlab.com/MisterBiggs/Resume.git synced 2025-06-15 17:06:39 +00:00

added more functionality so gave relevant name

This commit is contained in:
Anson 2019-06-13 16:03:23 -07:00
parent 736d401bcd
commit b8e9b90370

View File

@ -1,11 +1,15 @@
with open("header.html", "r") as top, open("footer.html", "r") as bottom, open(
"resume.html", "r"
) as middle:
import os, shutil, pypandoc
with open("header.html", "r") as top, open("footer.html", "r") as bottom:
header = top.read()
content = middle.read()
footer = bottom.read()
content = pypandoc.convert_file("resume.md", "html")
with open("index.html", "w+") as index:
index.write(header)
index.write(content)
index.write(footer)
os.mkdir("site")
shutil.move("index.html", "site")
shutil.copy("style.css", "site")