mirror of
https://gitlab.com/MisterBiggs/Resume.git
synced 2025-06-16 01:16: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(
|
import os, shutil, pypandoc
|
||||||
"resume.html", "r"
|
|
||||||
) as middle:
|
with open("header.html", "r") as top, open("footer.html", "r") as bottom:
|
||||||
header = top.read()
|
header = top.read()
|
||||||
content = middle.read()
|
|
||||||
footer = bottom.read()
|
footer = bottom.read()
|
||||||
|
content = pypandoc.convert_file("resume.md", "html")
|
||||||
|
|
||||||
with open("index.html", "w+") as index:
|
with open("index.html", "w+") as index:
|
||||||
index.write(header)
|
index.write(header)
|
||||||
index.write(content)
|
index.write(content)
|
||||||
index.write(footer)
|
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