mirror of
https://github.com/Mic92/nixos-wiki-infra.git
synced 2025-06-27 05:01:53 +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
|
Thanks = null; # Adds a "thank" button
|
||||||
Linter = null; # Dependency of DiscussionTools
|
Linter = null; # Dependency of DiscussionTools
|
||||||
Echo = 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 { };
|
} // pkgs.callPackages ./extensions.nix { };
|
||||||
extraConfig = ''
|
extraConfig = ''
|
||||||
# docs https://www.mediawiki.org/wiki/Extension:QuestyCaptcha
|
# docs https://www.mediawiki.org/wiki/Extension:QuestyCaptcha
|
||||||
@ -74,6 +83,12 @@ in
|
|||||||
];
|
];
|
||||||
wfLoadExtensions([ 'ConfirmEdit/QuestyCaptcha' ]);
|
wfLoadExtensions([ 'ConfirmEdit/QuestyCaptcha' ]);
|
||||||
|
|
||||||
|
wfLoadExtension( 'Mermaid' );
|
||||||
|
|
||||||
|
# Enable automatic meta description tags on all pages
|
||||||
|
wfLoadExtension( 'Description2' );
|
||||||
|
$wgEnableMetaDescriptionFunctions = true;
|
||||||
|
|
||||||
#$wgDebugLogFile = "/var/log/mediawiki/debug.log";
|
#$wgDebugLogFile = "/var/log/mediawiki/debug.log";
|
||||||
#$wgShowExceptionDetails = true;
|
#$wgShowExceptionDetails = true;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user