2006-11-22 03:28:42 +01:00
|
|
|
#!/usr/bin/perl
|
2006-11-22 07:15:32 +01:00
|
|
|
# Bundle of good stuff.
|
|
|
|
package IkiWiki::Plugin::goodstuff;
|
2006-11-22 03:28:42 +01:00
|
|
|
|
|
|
|
use warnings;
|
|
|
|
use strict;
|
2008-12-23 22:34:19 +01:00
|
|
|
use IkiWiki 3.00;
|
2006-11-22 03:28:42 +01:00
|
|
|
|
|
|
|
my @bundle=qw{
|
|
|
|
brokenlinks
|
|
|
|
img
|
|
|
|
map
|
2008-09-09 22:11:16 +02:00
|
|
|
more
|
2006-11-22 03:28:42 +01:00
|
|
|
orphans
|
|
|
|
pagecount
|
|
|
|
pagestats
|
2008-09-09 22:11:16 +02:00
|
|
|
progress
|
2006-11-22 03:28:42 +01:00
|
|
|
shortcut
|
|
|
|
smiley
|
|
|
|
tag
|
2008-09-09 22:11:16 +02:00
|
|
|
table
|
2006-11-22 03:28:42 +01:00
|
|
|
template
|
|
|
|
toc
|
|
|
|
toggle
|
2009-01-07 21:48:07 +01:00
|
|
|
repolist
|
2006-11-22 03:28:42 +01:00
|
|
|
};
|
|
|
|
|
2008-12-17 21:22:16 +01:00
|
|
|
sub import {
|
2008-08-03 22:40:12 +02:00
|
|
|
hook(type => "getsetup", id => "goodstuff", call => \&getsetup);
|
2008-10-06 22:19:54 +02:00
|
|
|
foreach my $plugin (@bundle) {
|
|
|
|
IkiWiki::loadplugin($plugin);
|
|
|
|
}
|
2008-12-17 21:22:16 +01:00
|
|
|
}
|
2006-11-22 03:28:42 +01:00
|
|
|
|
2008-12-17 21:22:16 +01:00
|
|
|
sub getsetup {
|
2008-08-03 22:40:12 +02:00
|
|
|
return
|
|
|
|
plugin => {
|
|
|
|
safe => 1,
|
|
|
|
rebuild => undef,
|
|
|
|
},
|
2008-12-17 21:22:16 +01:00
|
|
|
}
|
2008-08-03 22:40:12 +02:00
|
|
|
|
2006-11-22 03:28:42 +01:00
|
|
|
1
|