hook(type => "preprocess", id => "linkmap", call => \&preprocess);
hook(type => "format", id => "linkmap", call => \&format);
hook(type => "preprocess", id => "linkmap", call => \&preprocess);
hook(type => "format", id => "linkmap", call => \&format);
- # Needs to update whenever a page is added or removed, so
- # register a dependency.
+ # Needs to update whenever a page is added, removed, or
+ # its links change, so register a dependency.
add_depends($params{page}, $params{pages});
# Can't just return the linkmap here, since the htmlscrubber
add_depends($params{page}, $params{pages});
# Can't just return the linkmap here, since the htmlscrubber
# Use ikiwiki's function to create the file, this makes sure needed
# subdirs are there and does some sanity checking.
# Use ikiwiki's function to create the file, this makes sure needed
# subdirs are there and does some sanity checking.
- will_render($params{page}, $params{page}.".png");
- writefile($params{page}.".png", $config{destdir}, "");
+ will_render($params{page}, $dest);
+ writefile($dest, $config{destdir}, "");