Skip to content

Commit

Permalink
mediawiki: do not collapse sections by default
Browse files Browse the repository at this point in the history
  • Loading branch information
eugulixes committed Jul 13, 2024
1 parent 31ce713 commit 7a9fbdb
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 0 deletions.
8 changes: 8 additions & 0 deletions mediawiki/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,14 @@ MediaWiki is one of the most famous wiki engines. It's best known for being used
<td>Allows users to edit wiki anonymously (<code>true</code> and <code>false</code>)</td>
<td><code>true</code></td>
</tr>
<tr>
<th colspan="3">MobileFrontend</th>
</tr>
<tr>
<td>COLLAPSE_SECTIONS_BY_DEFAULT</td>
<td>Controls whether to collapse sections by default (<code>true</code> and <code>false</code>)</td>
<td><code>false</code></td>
</tr>
</table>

## How to create an administrator
Expand Down
2 changes: 2 additions & 0 deletions mediawiki/config/LocalSettings.php
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down
3 changes: 3 additions & 0 deletions mediawiki/docker-entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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:=""}
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 7a9fbdb

Please sign in to comment.