add logo and css support

master
vilmibm 2018-09-15 11:51:09 -07:00
parent ae77500996
commit e22e2ed972
1 changed files with 6 additions and 0 deletions

View File

@ -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<ul>'.format(update_title(header_content, 'table of contents'))
copy(logo_path, dest_path)
copy(css_path, dest_path)
depth = 0
for source_root, dirs, files in os.walk(articles_root):
depth += 1