summaryrefslogtreecommitdiff
path: root/make
diff options
context:
space:
mode:
Diffstat (limited to 'make')
-rwxr-xr-xmake20
1 files changed, 20 insertions, 0 deletions
diff --git a/make b/make
new file mode 100755
index 0000000..b3090a3
--- /dev/null
+++ b/make
@@ -0,0 +1,20 @@
+#!/usr/bin/env ruby
+$:.unshift('lib')
+require 'sitegen'
+require 'page_index'
+
+# Initialize the site generator
+Sitegen::init
+
+# This should trigger a full recursive crawl, loadng everything into
+# the sitegen.
+IndexPage::new('src').local_input
+
+# Tell the sitegen which files we want
+Sitegen.pages.each do |page|
+ Sitegen::want(page.local_outfile)
+end
+Sitegen::want('out/index.atom')
+
+# Make!
+print Sitegen::make(:all)