Add some genealogy-related extensions

This commit is contained in:
3wc 2023-06-25 20:49:51 +01:00
parent 260dd4d7f3
commit 92a206ad4f
4 changed files with 67 additions and 2 deletions

View File

@ -67,6 +67,18 @@ SECRET_MEDIAWIKI_SECRET_KEY_VERSION=v1 # length=64
## WikiMarkdown
#MARKDOWN_ENABLED=1
## Scribunto Lua scripting
#SCRIBUNTO_ENABLED=1
## TemplateStyles
#TEMPLATESTYLES_ENABLED=1
## Mermaid
#MERMAID_ENABLED=1
## Genealogy
#GENEALOGY_ENABLED=1
## Tweeki skin
#TWEEKI_ENABLED=0

View File

@ -232,6 +232,23 @@ $wgAllowMarkdownExtra = true; // allows usage of Parsedown Extra
$wgAllowMarkdownExtended = true; // allows usage of Parsedown Extended
{{ end }}
{{ if eq (env "SCRIBUNTO_ENABLED") "1" }}
wfLoadExtension( 'Scribunto' );
$wgScribuntoDefaultEngine = 'luastandalone';
{{ end }}
{{ if eq (env "TEMPLATESTYLES_ENABLED") "1" }}
wfLoadExtension( 'TemplateStyles' );
{{ end }}
{{ if eq (env "MERMAID_ENABLED") "1" }}
wfLoadExtension( 'Mermaid' );
{{ end }}
{{ if eq (env "GENEALOGY_ENABLED") "1" }}
wfLoadExtension( 'Genealogy' );
{{ end }}
$wgFileExtensions = array(
'png', 'gif', 'jpg', 'jpeg', 'doc', 'xls', 'mpp', 'pdf', 'ppt', 'tiff',
'bmp', 'docx', 'xlsx', 'pptx', 'ps', 'odt', 'ods', 'odp', 'odg'

View File

@ -1,6 +1,6 @@
export LOCAL_SETTINGS_CONF_VERSION=v20
export LOCAL_SETTINGS_CONF_VERSION=v21
export HTACCESS_CONF_VERSION=v1
export ENTRYPOINT_CONF_VERSION=v19
export ENTRYPOINT_CONF_VERSION=v20
export COMPOSER_LOCAL_CONF_VERSION=v5
export PHP_INI_VERSION=v4

View File

@ -20,6 +20,11 @@ composer_install() {
# SMW needs this; some other extensions brought in by composer might as well.
php /var/www/html/maintenance/update.php --quick
{{ if eq (env "TEMPLATESTYLES_ENABLED") "1" }}
cd /var/www/html/extensions/TemplateStyles && \
composer install --no-dev
{{ end }}
}
init_db() {
@ -116,6 +121,37 @@ init_extensions() {
fi
fi
if [ -n "${SCRIBUNTO_ENABLED-}" ]; then
if [ ! -d /var/www/html/extensions/Scribunto ]; then
git clone --depth 1 \
https://github.com/wikimedia/mediawiki-extensions-Scribunto \
/var/www/html/extensions/Scribunto
fi
fi
if [ -n "${TEMPLATESTYLES_ENABLED-}" ]; then
if [ ! -d /var/www/html/extensions/TemplateStyles ]; then
git clone --depth 1 \
https://github.com/wikimedia/mediawiki-extensions-TemplateStyles \
/var/www/html/extensions/TemplateStyles
fi
fi
if [ -n "${MERMAID_ENABLED-}" ]; then
if [ ! -d /var/www/html/extensions/Mermaid ]; then
git clone --depth 1 \
https://github.com/SemanticMediaWiki/Mermaid \
/var/www/html/extensions/Mermaid
fi
fi
if [ -n "${GENEALOGY_ENABLED-}" ]; then
if [ ! -d /var/www/html/extensions/Genealogy ]; then
git clone --depth 1 \
https://github.com/wikimedia/mediawiki-extensions-Genealogy \
/var/www/html/extensions/Genealogy
fi
fi
}
init_skins() {