From 3d989e2caf683d8300ae4e8191b81fd6fe0c0948 Mon Sep 17 00:00:00 2001 From: Luke Shumaker Date: Sat, 7 Jan 2017 00:14:22 -0500 Subject: more --- check.rb | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) (limited to 'check.rb') 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() -- cgit v1.2.3-2-g168b