summaryrefslogtreecommitdiff
path: root/make
diff options
context:
space:
mode:
authorLuke Shumaker <lukeshu@sbcglobal.net>2017-01-07 00:59:01 -0500
committerLuke Shumaker <lukeshu@sbcglobal.net>2017-01-07 00:59:01 -0500
commit90a45f9729f131569889f52cf792007f23df3949 (patch)
tree3a7297268da2f4fd81749c4e724faaa7a8f0f047 /make
parentadd2ce8c856d99a2f4cc0bbd4f630cc9aeb2ef05 (diff)
tidy
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)