X-Git-Url: https://iankelling.org/git/?p=iankelling.org;a=blobdiff_plain;f=build.rb;h=4867a2542f3df139f75787e5664aec28bfe29ad5;hp=65264b68f5f99da34724f0beb01de08bedb267aa;hb=001299deacd7b5d230416aeda612ca7b40e13ffc;hpb=c1871d16306dcb56d84582144a97ce51e040001d diff --git a/build.rb b/build.rb index 65264b6..4867a25 100755 --- a/build.rb +++ b/build.rb @@ -58,6 +58,18 @@ FileUtils.mkdir_p('../comments/blog') FileUtils.chmod_R(0777, '../comments') +technotes_list = [] +Dir.glob('../technical-notes/*.md').sort.each do |file| + technotes_list << techpost(file) +end + +stdpage('technical-notes', < + #{technotes_list.join("\n")} + +EOF + + # main reference doc https://validator.w3.org/feed/docs/atom.html # Reference doc says updated should be last time it changed # but jekyll's rss feed just uses current time, which is easier to get, @@ -90,11 +102,18 @@ if File.exists? ('../resume.md') end stdpage('favorite-things', File.read('../favorite-things.html')) +stdpage('about-me', File.read('../about-me.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. + +ret = 0 ["main", "gitweb-site"].each do |basename| cmd = "scss --force --cache-location ../.sass-cache" - system("#{cmd} ../css/#{basename}.scss css/#{basename}.css") + unless system("#{cmd} ../css/#{basename}.scss css/#{basename}.css") + ret = 1 + end end + +exit ret