Add some genealogy-related extensions
This commit is contained in:
parent
260dd4d7f3
commit
92a206ad4f
12
.env.sample
12
.env.sample
|
@ -67,6 +67,18 @@ SECRET_MEDIAWIKI_SECRET_KEY_VERSION=v1 # length=64
|
||||||
## WikiMarkdown
|
## WikiMarkdown
|
||||||
#MARKDOWN_ENABLED=1
|
#MARKDOWN_ENABLED=1
|
||||||
|
|
||||||
|
## Scribunto Lua scripting
|
||||||
|
#SCRIBUNTO_ENABLED=1
|
||||||
|
|
||||||
|
## TemplateStyles
|
||||||
|
#TEMPLATESTYLES_ENABLED=1
|
||||||
|
|
||||||
|
## Mermaid
|
||||||
|
#MERMAID_ENABLED=1
|
||||||
|
|
||||||
|
## Genealogy
|
||||||
|
#GENEALOGY_ENABLED=1
|
||||||
|
|
||||||
## Tweeki skin
|
## Tweeki skin
|
||||||
#TWEEKI_ENABLED=0
|
#TWEEKI_ENABLED=0
|
||||||
|
|
||||||
|
|
|
@ -232,6 +232,23 @@ $wgAllowMarkdownExtra = true; // allows usage of Parsedown Extra
|
||||||
$wgAllowMarkdownExtended = true; // allows usage of Parsedown Extended
|
$wgAllowMarkdownExtended = true; // allows usage of Parsedown Extended
|
||||||
{{ end }}
|
{{ 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(
|
$wgFileExtensions = array(
|
||||||
'png', 'gif', 'jpg', 'jpeg', 'doc', 'xls', 'mpp', 'pdf', 'ppt', 'tiff',
|
'png', 'gif', 'jpg', 'jpeg', 'doc', 'xls', 'mpp', 'pdf', 'ppt', 'tiff',
|
||||||
'bmp', 'docx', 'xlsx', 'pptx', 'ps', 'odt', 'ods', 'odp', 'odg'
|
'bmp', 'docx', 'xlsx', 'pptx', 'ps', 'odt', 'ods', 'odp', 'odg'
|
||||||
|
|
4
abra.sh
4
abra.sh
|
@ -1,6 +1,6 @@
|
||||||
export LOCAL_SETTINGS_CONF_VERSION=v20
|
export LOCAL_SETTINGS_CONF_VERSION=v21
|
||||||
export HTACCESS_CONF_VERSION=v1
|
export HTACCESS_CONF_VERSION=v1
|
||||||
export ENTRYPOINT_CONF_VERSION=v19
|
export ENTRYPOINT_CONF_VERSION=v20
|
||||||
export COMPOSER_LOCAL_CONF_VERSION=v5
|
export COMPOSER_LOCAL_CONF_VERSION=v5
|
||||||
export PHP_INI_VERSION=v4
|
export PHP_INI_VERSION=v4
|
||||||
|
|
||||||
|
|
|
@ -20,6 +20,11 @@ composer_install() {
|
||||||
|
|
||||||
# SMW needs this; some other extensions brought in by composer might as well.
|
# SMW needs this; some other extensions brought in by composer might as well.
|
||||||
php /var/www/html/maintenance/update.php --quick
|
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() {
|
init_db() {
|
||||||
|
@ -116,6 +121,37 @@ init_extensions() {
|
||||||
fi
|
fi
|
||||||
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() {
|
init_skins() {
|
||||||
|
|
Loading…
Reference in New Issue