#!/usr/bin/env ruby MEDIA_DIR = '/srv/media' MEDIA_URL = 'https://media.pdp8.info' WWW_DIR = '/srv/www/pdp8-test' OUTBOX_DIR = '/srv/social/outbox' SNIPPETS = File.join(File.dirname(__FILE__), 'html') def nav(cat) html = " " html end def print_html(basename, html) out = File.join(WWW_DIR, basename + '.html') puts out File.open(out, 'w+') { |f| f.puts html } puts `tidy -iqm -w 0 #{out} 2>&1` end