Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update MezaCoreExtensions.yml #42

Merged
merged 4 commits into from
Feb 8, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
37 changes: 16 additions & 21 deletions config/MezaCoreExtensions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -224,12 +224,12 @@ list:
repo: https://github.com/wikimedia/mediawiki-extensions-YouTube.git
version: "{{ mediawiki_default_branch }}"

# ULS - Allows users to select a language and configure its support in an easy way.
- name: UniversalLanguageSelector
repo: https://github.com/wikimedia/mediawiki-extensions-UniversalLanguageSelector
version: "{{ mediawiki_default_branch }}"
config: |
$wgULSIMEEnabled = false;
# # ULS - Allows users to select a language and configure its support in an easy way.
# - name: UniversalLanguageSelector
# repo: https://github.com/wikimedia/mediawiki-extensions-UniversalLanguageSelector
# version: "{{ mediawiki_default_branch }}"
# config: |
# $wgULSIMEEnabled = false;

# VE - Allows for editing pages as rich content
- name: VisualEditor
Expand All @@ -247,11 +247,6 @@ list:
"Help" => true,
"_merge_strategy" => "array_plus"
];
$wgVirtualRestConfig['modules']['parsoid'] = array(
'url' => "http://127.0.0.1:8080/$wikiId/rest.php",
);
// Because we're manually setting the Virtual Rest Config above, need to load Parsoid manually
wfLoadExtension( 'Parsoid', '{{ m_mediawiki }}/vendor/wikimedia/parsoid/extension.json' );

# TemplateData - Adds a templatedata tag and an API which together allow editors to specify how templates should be invoked
- name: TemplateData
Expand Down Expand Up @@ -299,11 +294,11 @@ list:
# version: "{{ mediawiki_default_branch }}"
# legacy_load: true

# SemanticDrilldown - Provides a page for "drilling down" through a site's data, using categories and filters on semantic properties
- name: SemanticDrilldown
repo: https://github.com/SemanticMediaWiki/SemanticDrilldown.git
version: master
legacy_load: true
# # SemanticDrilldown - Provides a page for "drilling down" through a site's data, using categories and filters on semantic properties
# - name: SemanticDrilldown
# repo: https://github.com/SemanticMediaWiki/SemanticDrilldown.git
# version: master
# legacy_load: true

# Arrays - Creates an additional set of parser functions that operate on arrays.
- name: Arrays
Expand Down Expand Up @@ -507,11 +502,11 @@ list:
# -----------------------------------------------------------------------------------------------------
# -----------------------------------------------------------------------------------------------------

# SimpleMathJax - Enables MathJax, a JavaScript library, for typesetting TeX formula in MediaWiki inside math environments
- name: SimpleMathJax
repo: https://github.com/jamesmontalvo3/SimpleMathJax.git
version: e94afaffcdde8d926b166fdd166162f9519beaa1
legacy_load: True
# # SimpleMathJax - Enables MathJax, a JavaScript library, for typesetting TeX formula in MediaWiki inside math environments
# - name: SimpleMathJax
# repo: https://github.com/jamesmontalvo3/SimpleMathJax.git
# version: e94afaffcdde8d926b166fdd166162f9519beaa1
# legacy_load: True

# TalkRight - Adds the 'talk' right making a permission for editing talk pages distinct from the editing of articles
- name: TalkRight
Expand Down
13 changes: 13 additions & 0 deletions src/roles/mediawiki/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -305,6 +305,19 @@
- local-skins
- latest

- name: Check if the compiled_templates directory exists per the widgets extension
stat:
path: "{{ m_mediawiki }}/extensions/Widgets/compiled_templates/"
register: mw_ext_widgets_compiled_templates_folder

- name: "Ensure compiled templates folder for widget extension is ownwed by apache"
file:
path: "{{ m_mediawiki }}/extensions/Widgets/compiled_templates/"
owner: apache
group: apache
mode: "0755"
when: mw_ext_widgets_compiled_templates_folder.stat.exists

#
# LocalSettings.php
#
Expand Down
Loading