add normalize, refactor css
[iankelling.org] / build.rb
index 4025eefa3b452e36d6ee5910e41dd29ea10bfdd3..620fe89c345937dcec223e737a135069df2f7503 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.rm Dir.glob('css/*')
 
 $db = db_init
 # date has no type affinity, since floating point (REAL) doesn't
@@ -88,4 +89,10 @@ if File.exists? ('../resume.md')
   stdpage('resume', md_to_html(File.read('../resume.md')))
 end
 
-stdpage('favorite-stuff', File.read('../favorite-stuff.html'))
+stdpage('favorite-things', File.read('../favorite-things.html'))
+
+# we could use ruby native stuff here, but this was
+# better documented so meh.
+# Force because it's cache is not perfect, it definitely misses renamed symlinks.
+# This creates a few extra files, but oh well.
+system("scss --force --cache-location ../.sass-cache --update ../css:css")