generate html from .md and stdout from other files. v0.02

This commit is contained in:
Wolfgang Nowak 2021-04-14 12:49:11 +02:00
parent 6dd9be7f99
commit 5258cec6b3

View file

@ -11,6 +11,7 @@ except:
)
# creationtime = datetime.datetime.now().strftime("%Y-%m-%d %H ")
creationtime = datetime.datetime.now().strftime("%Y-%m-%d %H:%M")
if re.match(".*\.md$", mark_down_file):
@ -41,13 +42,13 @@ head1 = (
styles = " <!--\n\
* { font-family: monospace; color: #00f020; background-color: #1c1414; font-size: 1.1em; text-decoration: none; }\n\
* { font-family: monospace; color: #00f020; background-color: #1c1414; font-size: 1.1em;}\n\
body { font-family: monospace; }\n\
pre { white-space: pre-wrap; font-family: monospace; color: #00f020; background-color: #1c1414; }\n\
.Statement { color: #00f020; font-weight: bold; }\n\
-->\n"
head2 = "</style> </head><body>\n"
body1 = '<a href="../" >Go back to upper folder</a>'
body1 = '<a href="#" onclick="history.go(-1)">Go Back</a>'
foot = "</body> </html>"