diff options
Diffstat (limited to 'check.rb')
-rwxr-xr-x | check.rb | 19 |
1 files changed, 17 insertions, 2 deletions
@@ -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() |