iankelling.org
/
git
/
iankelling.org
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
minor css cleanup
[iankelling.org]
/
build.rb
diff --git
a/build.rb
b/build.rb
index f724fe92ca4e28a343ab2efb3a60c4788e0b21ef..65264b68f5f99da34724f0beb01de08bedb267aa 100755
(executable)
--- a/
build.rb
+++ b/
build.rb
@@
-30,6
+30,7
@@
blog_list = [] # table data
FileUtils.mkdir_p('../proposed-comments')
FileUtils.chmod(0777, '../proposed-comments')
FileUtils.rm Dir.glob('blog/*')
FileUtils.mkdir_p('../proposed-comments')
FileUtils.chmod(0777, '../proposed-comments')
FileUtils.rm Dir.glob('blog/*')
+FileUtils.rm Dir.glob('css/*')
$db = db_init
# date has no type affinity, since floating point (REAL) doesn't
$db = db_init
# date has no type affinity, since floating point (REAL) doesn't
@@
-79,7
+80,7
@@
EOF
fskel('index.html', DN, File.read('../index.html'))
stdpage('blog', <<EOF)
fskel('index.html', DN, File.read('../index.html'))
stdpage('blog', <<EOF)
-<ul class="
index
">
+<ul class="
site-nav-list
">
#{blog_list.join("\n")}
</ul>
EOF
#{blog_list.join("\n")}
</ul>
EOF
@@
-92,4
+93,8
@@
stdpage('favorite-things', File.read('../favorite-things.html'))
# we could use ruby native stuff here, but this was
# better documented so meh.
# we could use ruby native stuff here, but this was
# better documented so meh.
-system("scss --cache-location ../.sass-cache --update ../css:css")
+# Force because it's cache is not perfect, it definitely misses renamed symlinks.
+["main", "gitweb-site"].each do |basename|
+ cmd = "scss --force --cache-location ../.sass-cache"
+ system("#{cmd} ../css/#{basename}.scss css/#{basename}.css")
+end