mirror of
https://github.com/Mic92/nixos-wiki-infra.git
synced 2025-06-26 20:51:56 +02:00
Add extension Description2 and Mermaid
This commit is contained in:
parent
fbbdaaf458
commit
18f4ae6456
@ -65,7 +65,16 @@ in
|
||||
Thanks = null; # Adds a "thank" button
|
||||
Linter = null; # Dependency of DiscussionTools
|
||||
Echo = null; # Dependency of DiscussionTools
|
||||
TemplateData = null; # Allows documenting template fields
|
||||
TemplateData = null;
|
||||
Description2 = pkgs.fetchzip {
|
||||
url = "https://extdist.wmflabs.org/dist/extensions/Description2-REL1_43-50e2aef.tar.gz";
|
||||
hash = "sha256-ciUEUcg4tsgpvohuLYztFaGNBowR7p1dIKnNp4ooKtA=";
|
||||
};
|
||||
# Adds meta description tag
|
||||
Mermaid = pkgs.fetchzip {
|
||||
url = "https://github.com/SemanticMediaWiki/Mermaid/archive/refs/tags/3.1.0.zip";
|
||||
hash = "sha256-tLOdAsXsaP/URvKcl5QWQiyhMy70qn8Fi8g3+ecNOWQ=";
|
||||
}; # Adds diagram generation
|
||||
} // pkgs.callPackages ./extensions.nix { };
|
||||
extraConfig = ''
|
||||
# docs https://www.mediawiki.org/wiki/Extension:QuestyCaptcha
|
||||
@ -74,6 +83,12 @@ in
|
||||
];
|
||||
wfLoadExtensions([ 'ConfirmEdit/QuestyCaptcha' ]);
|
||||
|
||||
wfLoadExtension( 'Mermaid' );
|
||||
|
||||
# Enable automatic meta description tags on all pages
|
||||
wfLoadExtension( 'Description2' );
|
||||
$wgEnableMetaDescriptionFunctions = true;
|
||||
|
||||
#$wgDebugLogFile = "/var/log/mediawiki/debug.log";
|
||||
#$wgShowExceptionDetails = true;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user