Skip to content

Commit

Permalink
EDIT mediawiki new logo config for mw1.39
Browse files Browse the repository at this point in the history
The old $wgLogo config is deprecated. The new $wgLogos config allows you
define many logo variations. Most of it is for backward compatibility.
The new mediawikiLogo.icon value is required as it is the only one used
by new themes from now on, all the other values will be deprecated in
the future.

Since we still have the old theme available as an option for users to
pick, we'll still use some of the backward compat logo values:

mediawikiLogo.legacy1x: for the old 1x versions of the logo
mediawikiLogo.legacy2x: for the old 2x versions of the logo

I'm not sure if both is required, but I got odd results when only one or
the other is present, so putting both in to be safe. We only have the 2x
version of the logo previously, so will have to upload a 1x version.
  • Loading branch information
ionparticle committed Sep 7, 2023
1 parent 367baf4 commit 1e7b6b0
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 5 deletions.
4 changes: 2 additions & 2 deletions mediawiki/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
apiVersion: v2
name: mediawiki
version: 0.6.7
appVersion: 1.35.7
version: 0.6.8
appVersion: 1.39.4
description: Extremely powerful, scalable software and a feature-rich wiki implementation
that uses PHP to process and display data stored in a database.
keywords:
Expand Down
12 changes: 10 additions & 2 deletions mediawiki/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -104,8 +104,16 @@ env:
- name: MEDIAWIKI_SITE_LANG
value: {{ .Values.mediawikiLang | quote }}
{{- if .Values.mediawikiLogo }}
- name: MEDIAWIKI_LOGO
value: {{ .Values.mediawikiLogo | quote }}
- name: MEDIAWIKI_LOGO_ICON
value: {{ .Values.mediawikiLogo.icon | quote }}
{{- if .Values.mediawikiLogo.legacy1x }}
- name: MEDIAWIKI_LOGO_LEGACY1X
value: {{ .Values.mediawikiLogo.legacy1x | quote }}
{{- end }}
{{- if .Values.mediawikiLogo.legacy2x }}
- name: MEDIAWIKI_LOGO_LEGACY2X
value: {{ .Values.mediawikiLogo.legacy2x | quote }}
{{- end }}
{{- end }}
{{- if .Values.mediawikiUploadPath }}
- name: MEDIAWIKI_UPLOAD_PATH
Expand Down
9 changes: 8 additions & 1 deletion mediawiki/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,14 @@ mediawikiName: My Wiki
mediawikiLang: en

# Top right corner logo
# mediawikiLogo:
#mediawikiLogo:
# # used by new themes (e.g. 2022's Vector theme), should be a square, ideally
# # 50x50 pixels for SVGs, 100x100 pixels for regular images. Required.
# icon: '/path/to/img.svg'
# # for old themes(e.g. pre-2022's Vector legacy theme). Required if still
# # using old themes, but might be deprecated in the future.
# legacy1x: '/path/to/img2.svg'
# legacy2x: '/images/d/d5/Ubcwiki_logo_2x.png'

# Comma separated extension list
mediawikiExts: ""
Expand Down

0 comments on commit 1e7b6b0

Please sign in to comment.