summaryrefslogtreecommitdiff
path: root/docwiki.setup
blob: 8b898f61928bb5af36c501586caf4596c0a896ce (plain)
  1. #!/usr/bin/perl
  2. # Configuration file for ikiwiki to build its documentation wiki.
  3. # Use git during the build, if it's available and if we're building
  4. # from a git checkout. This ensures ikiwiki gets the right mtimes and
  5. # ctimes for files in the doc wiki.
  6. our $rcs="norcs";
  7. BEGIN {
  8. my $git=`which git 2>&1`;
  9. chomp $git;
  10. if (-x $git && -d ".git") {
  11. $rcs="git";
  12. }
  13. }
  14. use IkiWiki::Setup::Standard {
  15. wikiname => "ikiwiki",
  16. srcdir => "doc",
  17. destdir => "html",
  18. templatedir => "templates",
  19. underlaydirbase => "underlays",
  20. underlaydir => "underlays/basewiki",
  21. discussion => 0,
  22. exclude => qr/\/discussion|bugs\/*|todo\/*|forum\/*/, # save space
  23. locale => '',
  24. verbose => 1,
  25. syslog => 0,
  26. userdir => "users",
  27. usedirs => 0,
  28. prefix_directives => 1,
  29. add_plugins => [qw{goodstuff version haiku polygen fortune table}],
  30. # not appropriate for doc dir
  31. disable_plugins => [qw{recentchanges openid}],
  32. rcs => $rcs,
  33. gitorigin_branch => '', # don't pull during build
  34. }