summaryrefslogtreecommitdiff
path: root/lib/page_local.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/page_local.rb')
-rw-r--r--lib/page_local.rb10
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/page_local.rb b/lib/page_local.rb
index 7121c8e..c4bd158 100644
--- a/lib/page_local.rb
+++ b/lib/page_local.rb
@@ -7,12 +7,11 @@ require 'license'
require 'page'
require 'pandoc'
require 'person'
-require 'sitegen'
class LocalPage < Page
def initialize(infile)
@infile = infile
- Sitegen::add(self)
+ super()
end
# Some of this code looks a little weird because it is
@@ -104,10 +103,11 @@ class LocalPage < Page
def local_depends
if @depends.nil?
basename = local_infile.sub(/^src/, 'out').sub(/\.[^\/.]*$/, '')
+ deps = Set['config.yaml', local_infile]
@depends = {
- '' => Set[local_infile],
- "#{basename}.html" => Set[local_infile, "tmpl/page.html.erb"],
- #"#{basename}.atom" => Set[local_infile, "tmpl/page.atom.erb"]
+ '' => deps,
+ "#{basename}.html" => deps.clone.merge(["tmpl/page.html.erb"]),
+ #"#{basename}.atom" => deps.clone.merge([local_infile, "tmpl/page.atom.erb"]),
}
end
@depends