Skip to content

Commit 65eaadd

Browse files
committed
Updates on docs
1 parent 7de696d commit 65eaadd

File tree

3 files changed

+79
-0
lines changed

3 files changed

+79
-0
lines changed

package.json

+2
Original file line numberDiff line numberDiff line change
@@ -284,6 +284,8 @@
284284
"sort-package-json": "sort-package-json",
285285
"stylelint": "stylelint --color --disable-default-ignores --allow-empty-input verbose **/*.{css,scss,sass}",
286286
"svgo": "svgo --config svgo.config.cjs -i docs/overrides/.icons -o docs/overrides/.icons -q",
287+
"svgo:base64": "svgo --config svgo.base64.config.cjs -i docs/overrides/.icons -o docs/overrides/.icons -q",
288+
"svgo:lint": "svgo --config svgo.general.config.js -i docs/overrides/.icons -o docs/overrides/.icons -q",
287289
"syncpack": "syncpack list-mismatches --source \"packages/*/package.json\"",
288290
"syncpack:fix": "syncpack fix-mismatches",
289291
"syncpack:list": "syncpack list-mismatches",
File renamed without changes.

svgo.general.config.js

+77
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,77 @@
1+
/*
2+
* Copyright (C) 2022 SensibleMetrics, Inc. (http://sensiblemetrics.io/)
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
*
8+
* http://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
15+
*/
16+
'use strict';
17+
18+
module.exports = {
19+
20+
plugins: [
21+
'removeDoctype',
22+
'removeXMLProcInst',
23+
'removeComments',
24+
'removeMetadata',
25+
'removeEditorsNSData',
26+
'cleanupAttrs',
27+
'mergeStyles',
28+
'inlineStyles',
29+
'minifyStyles',
30+
'cleanupIDs',
31+
'removeUselessDefs',
32+
'cleanupNumericValues',
33+
'convertColors',
34+
'removeUnknownsAndDefaults',
35+
'removeNonInheritableGroupAttrs',
36+
'removeUselessStrokeAndFill',
37+
'removeViewBox',
38+
'cleanupEnableBackground',
39+
'removeHiddenElems',
40+
'removeEmptyText',
41+
'convertShapeToPath',
42+
'convertEllipseToCircle',
43+
'moveElemsAttrsToGroup',
44+
'moveGroupAttrsToElems',
45+
'collapseGroups',
46+
'convertPathData',
47+
'convertTransform',
48+
'removeEmptyAttrs',
49+
'removeEmptyContainers',
50+
'mergePaths',
51+
'removeUnusedNS',
52+
'sortDefsChildren',
53+
'removeTitle',
54+
'removeDesc',
55+
{
56+
name: 'addAttributesToSVGElement',
57+
params: {
58+
attributes: [
59+
{
60+
viewBox: '0 0 24 24'
61+
},
62+
{
63+
width: '24'
64+
},
65+
{
66+
height: '24'
67+
},
68+
{
69+
xmlns: 'http://www.w3.org/2000/svg'
70+
}
71+
72+
]
73+
}
74+
},
75+
{name: 'removeAttrs', params: {attrs: '(stroke|fill)'}},
76+
]
77+
};

0 commit comments

Comments
 (0)