X-Git-Url: https://iankelling.org/git/?p=iankelling.org;a=blobdiff_plain;f=build.rb;h=d16f7da91b7beeee11de976b390d3c5dbd986466;hp=620fe89c345937dcec223e737a135069df2f7503;hb=refs%2Fheads%2Fmaster;hpb=d668aa72f0503fe96aff5865215602e8f87e1a56 diff --git a/build.rb b/build.rb index 620fe89..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, @@ -80,7 +92,7 @@ EOF fskel('index.html', DN, File.read('../index.html')) stdpage('blog', < + EOF @@ -90,9 +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. -# This creates a few extra files, but oh well. -system("scss --force --cache-location ../.sass-cache --update ../css:css") + +ret = 0 +["main", "gitweb-site"].each do |basename| + cmd = "scss --force --cache-location ../.sass-cache" + unless system("#{cmd} ../css/#{basename}.scss css/#{basename}.css") + ret = 1 + end +end + +exit ret