Permalink
Browse files

Move site_config.js location to the root of the repo. Add gitignore.

  • Loading branch information...
chromakode committed Apr 4, 2010
1 parent a0a4b4b commit 358f0ae2466730e3c4599884af65ef9086b89af4
Showing with 4 additions and 3 deletions.
  1. +1 −0 .gitignore
  2. +2 −2 build.py
  3. +1 −1 src/index.html
View
@@ -0,0 +1 @@
+site_config.js
View
@@ -1,7 +1,7 @@
#!/usr/bin/env python
import sys
from os import mkdir, remove, listdir
-from os.path import isfile, isdir, join
+from os.path import isfile, isdir, join, normpath
from shutil import copy, rmtree
import subprocess
import re
@@ -36,7 +36,7 @@ def sub_minify(match):
for src in SCRIPT_RE.findall(scripts):
# Minify only JS with relative paths
if not src.startswith("http"):
- to_minify.setdefault(to_src, []).append(join(src_dir, src))
+ to_minify.setdefault(to_src, []).append(normpath(join(src_dir, src)))
return to_script
with open(join(build_dir, "index.html"), "w") as f:
f.write(MINIFY_RE.sub(sub_minify, index_data))
View
@@ -19,7 +19,7 @@
<script type="text/javascript" src="jquery.konami.js"></script>
<script type="text/javascript" src="cli.js"></script>
<script type="text/javascript" src="xkcd_cli.js"></script>
- <script type="text/javascript" src="site_config.js"></script>
+ <script type="text/javascript" src="../site_config.js"></script>
<!-- TO: <script type="text/javascript" src="xkcd_cli_all.js"></script> -->
</head>
<body>

0 comments on commit 358f0ae

Please sign in to comment.