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:
parent
736d401bcd
commit
b8e9b90370
@ -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")
|
Loading…
x
Reference in New Issue
Block a user