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.
writefile($dest, $config{destdir}, "");
# Run dot to create the graphic and get the map data.
writefile($dest, $config{destdir}, "");
# Run dot to create the graphic and get the map data.