You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: modules/ROOT/pages/creating-an-icon-pack.adoc
+25-29Lines changed: 25 additions & 29 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -74,31 +74,30 @@ To create a custom icon pack:
74
74
75
75
To use the {productname} icon pack template project:
76
76
77
-
1. Download the link:https://github.com/tinymce/oxide-icon-pack-template[TinyMCE Oxide Icon Pack Template] by either:
78
-
* Downloading the `.zip` file from the link:https://github.com/tinymce/oxide-icon-pack-template[Oxide Icon Pack Template GitHub page] and extract the contents.
79
-
* From a terminal or command prompt, use git to clone the GitHub repository:
77
+
. Download the link:https://github.com/tinymce/oxide-icon-pack-template[TinyMCE Oxide Icon Pack Template] by either:
78
+
* Downloading the `.zip` file from the link:https://github.com/tinymce/oxide-icon-pack-template[Oxide Icon Pack Template GitHub page] and extract the contents.
79
+
* From a terminal or command prompt, use git to clone the GitHub repository:
@@ -155,7 +154,6 @@ For a list of default icon identifiers, see: link:https://www.tiny.cloud/docs/ti
155
154
* *SVG Requirements:* Input SVGs must be shapes, not strokes. SVG files containing strokes will not render correctly. If the input files contain strokes, use a graphics program to convert the strokes into shapes.
156
155
====
157
156
158
-
159
157
==== SVG File Organization
160
158
161
159
Organize your SVG files in the `src/svg/` directory:
@@ -180,9 +178,8 @@ src/svg/
180
178
181
179
To build the icon pack using Gulp:
182
180
183
-
1. Open a terminal or command prompt and navigate to the root directory of the icon pack (such as: `+oxide-icon-pack-template/+`).
184
-
185
-
2. Build the icon pack by executing the `npx gulp` command:
181
+
. Open a terminal or command prompt and navigate to the root directory of the icon pack (such as: `+oxide-icon-pack-template/+`).
182
+
. Build the icon pack by executing the `npx gulp` command:
186
183
+
187
184
[source,bash]
188
185
----
@@ -196,21 +193,21 @@ A `+dist/+` directory containing the icon pack will be automatically created.
3. Using a web browser, open `+dist/html/icons.html+` to preview the icons.
203
+
. Using a web browser, open `+dist/html/icons.html+` to preview the icons.
207
204
208
205
==== Troubleshooting Information for Building Icon Packs
209
206
210
207
The SVG files are optimized during the build process with link:https://github.com/svg/svgo[SVGO]. The optimization can result in distorted graphics due to rounding errors. The graphics may be fixed by providing new SVGO options. To change the SVGO options used:
211
208
212
-
1. Using a text editor, open `+gulpfile.js+`.
213
-
2. Add the `+svgo+` option to the `+iconPackager+` function, such as:
209
+
. Using a text editor, open `+gulpfile.js+`.
210
+
. Add the `+svgo+` option to the `+iconPackager+` function, such as:
0 commit comments