]> git.openstreetmap.org Git - chef.git/blob - cookbooks/wiki/templates/default/mw-ext-Linter.inc.php.erb
Drop testing on ubuntu for recipes no longer used there
[chef.git] / cookbooks / wiki / templates / default / mw-ext-Linter.inc.php.erb
1 <?php
2 // Load Parsoid
3 wfLoadExtension(
4     'Parsoid',
5     "$IP/vendor/wikimedia/parsoid/extension.json"
6 );
7
8 $wgParsoidSettings = [
9     'useSelser' => true,
10     'linting' => true
11 ];
12
13 $wgVisualEditorParsoidAutoConfig = false; // to make linting work
14
15 $wgVirtualRestConfig = [
16         'paths' => [],
17         'modules' => [
18                 'parsoid' => [
19                         'url' => 'https://<%= @site %>/w/rest.php',
20                         'domain' => '<%= @site %>',
21                         'forwardCookies' => true,
22                         'restbaseCompat' => false,
23                         'timeout' => 30
24                 ],
25         ],
26         'global' => [
27                 'timeout' => 360,
28                 'forwardCookies' => false,
29                 'HTTPProxy' => null
30         ]
31 ];
32
33 wfLoadExtension( 'Linter' );