generate html from .md and stdout from other files. v0.02
This commit is contained in:
parent
6dd9be7f99
commit
5258cec6b3
1 changed files with 3 additions and 2 deletions
|
@ -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>"
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue