X-Git-Url: https://iankelling.org/git/?p=iankelling.org;a=blobdiff_plain;f=build.rb;h=65264b68f5f99da34724f0beb01de08bedb267aa;hp=4a6c268e3c445715f765bc3745c93058f9199f2b;hb=c1871d16306dcb56d84582144a97ce51e040001d;hpb=d0a5b73d2a275bfff5957961f2360df8966bee22 diff --git a/build.rb b/build.rb index 4a6c268..65264b6 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,11 +80,21 @@ EOF fskel('index.html', DN, File.read('../index.html')) stdpage('blog', < + EOF -stdpage('resume', md_to_html(File.read('../resume.md'))) +if File.exists? ('../resume.md') + stdpage('resume', md_to_html(File.read('../resume.md'))) +end + +stdpage('favorite-things', File.read('../favorite-things.html')) -stdpage('favorite-stuff', File.read('../favorite-stuff.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. +["main", "gitweb-site"].each do |basename| + cmd = "scss --force --cache-location ../.sass-cache" + system("#{cmd} ../css/#{basename}.scss css/#{basename}.css") +end