X-Git-Url: https://iankelling.org/git/?p=iankelling.org;a=blobdiff_plain;f=build.rb;h=370047f651db343069a2a5ad2c02253a90f33476;hp=507bd4e50fc2351182ac12bad7680f67b4391af6;hb=f32a9440b9055001ef3749999eaf3b4d7974932c;hpb=3fa84dfac392beb96e95430665495b43dc279b5a diff --git a/build.rb b/build.rb index 507bd4e..370047f 100755 --- 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 @@ -79,7 +80,7 @@ EOF fskel('index.html', DN, File.read('../index.html')) stdpage('blog', < + EOF @@ -89,3 +90,9 @@ if File.exists? ('../resume.md') end 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")