summaryrefslogtreecommitdiff
path: root/make
blob: b3090a36b8ce1e3a17612bf7dc601edbc99ddaad (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/usr/bin/env ruby
$:.unshift('lib')
require 'sitegen'
require 'page_index'

# 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')

# Make!
print Sitegen::make(:all)