From e22e2ed9724ca7481f75c285b1da6f0a07f5d7f5 Mon Sep 17 00:00:00 2001 From: vilmibm Date: Sat, 15 Sep 2018 11:51:09 -0700 Subject: [PATCH] add logo and css support --- tildewiki/compilation.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tildewiki/compilation.py b/tildewiki/compilation.py index c5402e7..93a5884 100644 --- a/tildewiki/compilation.py +++ b/tildewiki/compilation.py @@ -1,6 +1,7 @@ import os import re from datetime import datetime +from shutil import copy from typing import Optional, Callable from markdown import markdown @@ -38,11 +39,16 @@ def compile_wiki(source_path: str, header_content = compile_markdown(os.path.join(source_path, 'src/header.md')) footer_content = last_compiled + compile_markdown(os.path.join(source_path, 'src/footer.md')) + logo_path = 'src/logo.png' + css_path = 'src/main.css' articles_root = os.path.join(source_path, 'src/articles') toc_content = '{}\n