Copy static directory into output/

This commit is contained in:
Daniel Parks 2017-09-11 18:49:51 -07:00
parent c0595b182f
commit 80819e54dd
No known key found for this signature in database
GPG key ID: 7335138B2B9829EB
2 changed files with 2 additions and 1 deletions

View file

@ -168,4 +168,5 @@ def main():
if os.path.isdir("output"): if os.path.isdir("output"):
shutil.rmtree("output") shutil.rmtree("output")
os.mkdir("output", 0o755) os.mkdir("output", 0o755)
shutil.copytree("static", "output/static")
output_html(inventory, "output") output_html(inventory, "output")

View file

@ -3,7 +3,7 @@
<head> <head>
<meta charset="UTF-8"> <meta charset="UTF-8">
<title>{% block title %}{% endblock %}</title> <title>{% block title %}{% endblock %}</title>
<link rel="stylesheet" href="{{ path }}../static/general.css"> <link rel="stylesheet" href="{{ path }}static/general.css">
<link rel="stylesheet" href="{{ path }}pygments.css"> <link rel="stylesheet" href="{{ path }}pygments.css">
<script src="{{ path }}../static/moment.js" defer></script> <script src="{{ path }}../static/moment.js" defer></script>
<script src="{{ path }}../static/general.js" defer></script> <script src="{{ path }}../static/general.js" defer></script>