diff options
author | Luke Shumaker <lukeshu@sbcglobal.net> | 2017-01-07 00:14:22 -0500 |
---|---|---|
committer | Luke Shumaker <lukeshu@sbcglobal.net> | 2017-01-07 00:14:22 -0500 |
commit | 3d989e2caf683d8300ae4e8191b81fd6fe0c0948 (patch) | |
tree | 3201b014adf279de37f64ac222e551c1781eadcd /check.rb | |
parent | bae3d88f0d4ab3481cdbd47ae5ddd65ff5f91e0c (diff) |
more
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() |