Dokuwiki: Difference between revisions

imported>Onny
mNo edit summary
imported>Onny
Plugin usage
Line 49: Line 49:


Please note that you'll have to manually update the tempalte source and checksum in case there's a new version.
Please note that you'll have to manually update the tempalte source and checksum in case there's a new version.
=== Plugins ===
The following example packages the [https://www.dokuwiki.org/plugin:edittable edittable plugin]
{{file|/etc/nixos/configuration.nix|nix|<nowiki>
let
  dokuwiki-plugin-edittable = pkgs.stdenv.mkDerivation {
    name = "edittable";
    src = pkgs.fetchurl {
      url = "https://github.com/cosmocode/edittable/archive/master.zip";
      sha256 = "sha256-l+GZdFGp6wyNuCbAZB9IbwpY5c/S4vSW12VP0mJHKXs=";
    };
    sourceRoot = ".";
    buildInputs = [ pkgs.unzip ];
    installPhase = "mkdir -p $out; cp -R edittable-master/* $out/";
  };
in {
  services.dokuwiki.sites."localhost" = {
    plugins = [ dokuwiki-plugin-edittable ];
  };
};
</nowiki>}}
Note that in case of this plugin, we strip the root directory called ''edittable-master'' and only copy the plugin files to the ''out''-folder. Please note that you'll have to manually update the plugin source and checksum in case there's a new version.


=== Clean URLs ===
=== Clean URLs ===