add compile time to footer content

This commit is contained in:
nathaniel smith 2017-09-23 01:13:22 -07:00
父節點 457d2b2436
當前提交 e96f16c5c3
共有 2 個文件被更改,包括 3 次插入4 次删除

查看文件

@ -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