diff --git a/mediawiki/README.md b/mediawiki/README.md index 25ffd27..f134e4c 100644 --- a/mediawiki/README.md +++ b/mediawiki/README.md @@ -130,6 +130,14 @@ MediaWiki is one of the most famous wiki engines. It's best known for being used Allows users to edit wiki anonymously (true and false) true + + MobileFrontend + + + COLLAPSE_SECTIONS_BY_DEFAULT + Controls whether to collapse sections by default (true and false) + false + ## How to create an administrator diff --git a/mediawiki/config/LocalSettings.php b/mediawiki/config/LocalSettings.php index 29bd515..0646197 100644 --- a/mediawiki/config/LocalSettings.php +++ b/mediawiki/config/LocalSettings.php @@ -154,6 +154,8 @@ // that $wgVirtualRestConfig['modules']['parsoid']['url'] be pointed to localhost if this setting is enabled. $wgVirtualRestConfig['modules']['parsoid']['forwardCookies'] = true; +$wgMFCollapseSectionsByDefault = COLLAPSE_SECTIONS_BY_DEFAULT; + $wgMFDefaultSkinClass = 'SkinVector'; $wgCollectionFormats = array( diff --git a/mediawiki/docker-entrypoint.sh b/mediawiki/docker-entrypoint.sh index d76e080..09359f8 100755 --- a/mediawiki/docker-entrypoint.sh +++ b/mediawiki/docker-entrypoint.sh @@ -31,6 +31,8 @@ ALLOW_ANONYMOUS_READING=${ALLOW_ANONYMOUS_READING:=false} ALLOW_ANONYMOUS_EDITING=${ALLOW_ANONYMOUS_EDITING:=true} +COLLAPSE_SECTIONS_BY_DEFAULT=${COLLAPSE_SECTIONS_BY_DEFAULT:=false} + METRIC_COUNTER=${METRIC_COUNTER:=""} CREDENTIALS=${CREDENTIALS:=""} @@ -95,6 +97,7 @@ substitute ALLOW_ACCOUNT_CREATION substitute ALLOW_ACCOUNT_EDITING substitute ALLOW_ANONYMOUS_READING substitute ALLOW_ANONYMOUS_EDITING +substitute COLLAPSE_SECTIONS_BY_DEFAULT substitute RENDER_SERVER substitute CREDENTIALS substitute METRIC_COUNTER