From e62428a477f5b60d6f512840e08c4d5d5f5c2cf5 Mon Sep 17 00:00:00 2001 From: Anson Biggs Date: Thu, 14 Nov 2019 21:01:55 -0700 Subject: [PATCH] added markdown compile --- body.md | 3 +++ boilerpalte.html | 55 ++++++++++++++++++++++++++++++++++++++++++++++++ bottom.html | 19 +++++++++++++++++ concat.py | 11 ++++++++++ top.html | 36 +++++++++++++++++++++++++++++++ 5 files changed, 124 insertions(+) create mode 100644 body.md create mode 100644 boilerpalte.html create mode 100644 bottom.html create mode 100644 concat.py create mode 100644 top.html diff --git a/body.md b/body.md new file mode 100644 index 0000000..3f549a3 --- /dev/null +++ b/body.md @@ -0,0 +1,3 @@ +# this is a body + +with some other text \ No newline at end of file diff --git a/boilerpalte.html b/boilerpalte.html new file mode 100644 index 0000000..3a83639 --- /dev/null +++ b/boilerpalte.html @@ -0,0 +1,55 @@ + + + + + + + + + + + Hello, world! + + +
+ + +
+ + + + + + + + + diff --git a/bottom.html b/bottom.html new file mode 100644 index 0000000..e3395ec --- /dev/null +++ b/bottom.html @@ -0,0 +1,19 @@ + + + + + + + diff --git a/concat.py b/concat.py new file mode 100644 index 0000000..e77162d --- /dev/null +++ b/concat.py @@ -0,0 +1,11 @@ +import pypandoc + +middle = pypandoc.convert_file("body.md", "html") + +with open("top.html", "r") as top: + with open("bottom.html", "r") as bottom: + with open("index.html", "w") as index: + index.write(top.read()) + index.write(middle) + index.write(bottom.read()) + index.close() diff --git a/top.html b/top.html new file mode 100644 index 0000000..890a4dc --- /dev/null +++ b/top.html @@ -0,0 +1,36 @@ + + + + + + + + + + + Hello, world! + + +
+ + +
+ +