add compile time to footer content
parent
457d2b2436
commit
e96f16c5c3
|
@ -1,5 +1,6 @@
|
||||||
import os
|
import os
|
||||||
import re
|
import re
|
||||||
|
from datetime import datetime
|
||||||
from os.path import join as path_join
|
from os.path import join as path_join
|
||||||
|
|
||||||
from markdown import markdown
|
from markdown import markdown
|
||||||
|
@ -17,11 +18,10 @@ def compile_wiki(source_path: str, dest_path: str) -> None:
|
||||||
|
|
||||||
Be absolutely sure you know what you are doing when you call this ^_^
|
Be absolutely sure you know what you are doing when you call this ^_^
|
||||||
"""
|
"""
|
||||||
# TODO progress bar
|
last_compiled = '<p><em>last compiled: {}</em></p>'.format(datetime.utcnow())
|
||||||
# TODO put useful metadata in footer
|
|
||||||
|
|
||||||
header_content = compile_markdown(path_join(source_path, 'src/header.md'))
|
header_content = compile_markdown(path_join(source_path, 'src/header.md'))
|
||||||
footer_content = compile_markdown(path_join(source_path, 'src/footer.md'))
|
footer_content = last_compiled + compile_markdown(path_join(source_path, 'src/footer.md'))
|
||||||
|
|
||||||
articles_root = path_join(source_path, 'src/articles')
|
articles_root = path_join(source_path, 'src/articles')
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,3 @@
|
||||||
"""TODO"""
|
|
||||||
import os
|
import os
|
||||||
import re
|
import re
|
||||||
from os.path import expanduser
|
from os.path import expanduser
|
||||||
|
|
Loading…
Reference in New Issue