diff --git a/tildewiki/compilation.py b/tildewiki/compilation.py index 898934b..7b143ed 100644 --- a/tildewiki/compilation.py +++ b/tildewiki/compilation.py @@ -2,6 +2,7 @@ import os import re from datetime import datetime from os.path import join as path_join +from shutil import copyfile from markdown import markdown @@ -23,6 +24,8 @@ def compile_wiki(source_path: str, dest_path: str) -> None: header_content = compile_markdown(path_join(source_path, 'src/header.md')) footer_content = last_compiled + compile_markdown(path_join(source_path, 'src/footer.md')) + # TODO fix any links in header/footer to work with preview path + articles_root = path_join(source_path, 'src/articles') toc_content = '{}\n' with open(path_join(dest_path, 'toc.html'), 'w') as f: