mirror of
https://github.com/StarCitizenTools/mediawiki-skins-Citizen.git
synced 2024-11-24 22:35:45 +00:00
f72af5e76d
* Replace existing grunt linter * Fix stylesheet issues picked up by stylelint * Update the git workflow * Fix incorrect slash in workflow file * Github CI lint - eslint/stylelint * Clean up composer * Fix phpcb error * MediaWiki CI * Change commit message * Update status badge * Add JSDoc * Add SVGO * Make a dinner reservation - MediaWiki CI I clean up code to MediaWiki standards * Optimize SVG files with SVGO Co-authored-by: github-actions <github-actions@users.noreply.github.com>
28 lines
1.1 KiB
YAML
28 lines
1.1 KiB
YAML
# Recommended options from:
|
|
# https://www.mediawiki.org/wiki/Manual:Coding_conventions/SVG#Exemplified_safe_configuration
|
|
#
|
|
multipass: true
|
|
plugins:
|
|
- cleanupIDs: false
|
|
- removeDesc: false
|
|
- removeRasterImages: true
|
|
- removeTitle: false
|
|
- removeViewBox: false
|
|
# If the SVG doesn't start with an XML declaration, then its MIME type will
|
|
# be detected as "text/plain" rather than "image/svg+xml" by libmagic and,
|
|
# consequently, MediaWiki's CSSMin CSS minifier. libmagic's default database
|
|
# currently requires that SVGs contain an XML declaration:
|
|
# https://github.com/threatstack/libmagic/blob/master/magic/Magdir/sgml#L5
|
|
- removeXMLProcInst: false
|
|
- sortAttrs: true
|
|
|
|
# Configure the indent (default 4 spaces) used by `--pretty` here:
|
|
# @see https://github.com/svg/svgo/blob/master/lib/svgo/js2svg.js#L6 for more config options
|
|
#
|
|
# Unfortunately EOL cannot be configured, svgo uses the platform's EOL marker.
|
|
# On non-unix systems the linebreaks will be normalized to LF (unix) only at git commit, assuming `core.autocrlf` is 'true' (default) or 'input'.
|
|
#
|
|
js2svg:
|
|
pretty: true
|
|
indent: "\t"
|