summaryrefslogtreecommitdiff
path: root/check.rb
diff options
context:
space:
mode:
Diffstat (limited to 'check.rb')
-rwxr-xr-xcheck.rb19
1 files changed, 17 insertions, 2 deletions
diff --git a/check.rb b/check.rb
index 5e2a4ba..2a9fbc6 100755
--- a/check.rb
+++ b/check.rb
@@ -1,4 +1,19 @@
#!/usr/bin/env ruby
+require 'sitegen'
require 'page_index'
-top = IndexPage::new('src')
-print top.local_input
+
+# 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')
+
+# Dump dependencies as a Makefile
+print Sitegen::Makefile()