Skip to content
Snippets Groups Projects
Commit 62cf684a authored by Josh Borrow's avatar Josh Borrow
Browse files

Moved compiler and about to the top level directory

parent bb5b7ef0
No related branches found
No related tags found
No related merge requests found
File moved
......@@ -5,6 +5,7 @@
"""
import os
from distutils.dir_util import copy_tree
import jinja2
import yaml
......@@ -107,17 +108,33 @@ def render(render_pages, data_dir, template_dir, output_dir):
return
def copy_static(directories, output_dir):
""" Copies the (static) files from the original directory to the output """
if type(directories) == list:
for directory in directories:
copy_tree(directory, output_dir)
else:
copy_tree(directories, output_dir)
return
if __name__ == "__main__":
import about
DATA_DIR = "../data"
TEMPLATE_DIR = "."
DATA_DIR = "/data"
TEMPLATE_DIR = "./templates"
OUTPUT_DIR = "./compiled"
PAGES = [
"index.html",
"pubs.html",
"talks.html"
"talks.html",
"about.html"
]
STATIC = [
"stylesheets"
]
about.compile_to_yaml(
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment