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
FileUtils.chmod_R(0777, '../comments')
+technotes_list = []
+Dir.glob('../technical-notes/*.md').sort.each do |file|
+ technotes_list << techpost(file)
+end
+
+stdpage('technical-notes', <<EOF)
+<ul class="site-nav-list">
+ #{technotes_list.join("\n")}
+</ul>
+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,
fskel('index.html', DN, File.read('../index.html'))
stdpage('blog', <<EOF)
-<ul class="index">
+<ul class="site-nav-list">
#{blog_list.join("\n")}
</ul>
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('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"
+ unless system("#{cmd} ../css/#{basename}.scss css/#{basename}.css")
+ ret = 1
+ end
+end
-stdpage('favorite-stuff', File.read('../favorite-stuff.html'))
+exit ret