summaryrefslogtreecommitdiff
path: root/check.rb
diff options
context:
space:
mode:
authorLuke Shumaker <lukeshu@sbcglobal.net>2017-01-07 00:14:22 -0500
committerLuke Shumaker <lukeshu@sbcglobal.net>2017-01-07 00:14:22 -0500
commit3d989e2caf683d8300ae4e8191b81fd6fe0c0948 (patch)
tree3201b014adf279de37f64ac222e551c1781eadcd /check.rb
parentbae3d88f0d4ab3481cdbd47ae5ddd65ff5f91e0c (diff)
more
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()