Plugin markdown pour le wiki
This commit is contained in:
parent
5eab094b2e
commit
7038f3a5cf
1 changed files with 17 additions and 0 deletions
|
@ -34,6 +34,8 @@ in
|
|||
$conf['userewrite'] = 1; // Important, sinon on casse tout avec les règles nginx définies par le module nixos
|
||||
$conf['useslash'] = 1;
|
||||
$conf['plugin']['tokenbucketauth']['tba_send_mail'] = 'hackens@clipper.ens.fr'; // Ban auto des IPs qui brute-forcent
|
||||
$conf['tpl']['bootstrap3']['showAddNewPage'] = 'logged';
|
||||
$conf['tpl']['bootstrap3']['fluidContainer'] = 0;
|
||||
$conf['htmlmail'] = 0; // On envoie les mails en plain text
|
||||
'';
|
||||
|
||||
|
@ -87,6 +89,21 @@ in
|
|||
dokuwikiPath = "${config.services.dokuwiki.sites."${hostname}".finalPackage}/share/dokuwiki";
|
||||
})
|
||||
];
|
||||
plugins = [
|
||||
(pkgs.stdenv.mkDerivation {
|
||||
name = "commonmark";
|
||||
# Download the theme from the dokuwiki site
|
||||
src = pkgs.fetchzip {
|
||||
url = "https://github.com/clockoon/dokuwiki-plugin-commonmark/releases/download/v1.2.0/release.tar.gz";
|
||||
sha256 = "10SVyqkbkwzF/m4aTHB/ssXJK5rjQbLxYOAFDKYOxTY=";
|
||||
};
|
||||
# Installing simply means copying all files to the output directory
|
||||
installPhase = ''
|
||||
mkdir -p $out
|
||||
cp -R * $out/
|
||||
'';
|
||||
})
|
||||
];
|
||||
};
|
||||
# On veut php-xml
|
||||
services.phpfpm.pools."dokuwiki-${hostname}".phpPackage = pkgs.lib.mkForce ( pkgs.php74.withExtensions (
|
||||
|
|
Loading…
Reference in a new issue