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
Get the svgs added and modified from the files_changed_json_path.
214
214
:param: files_added_json_path, the path to the files_added.json created by the [email protected]
215
215
:param: files_modified_json_path, the path to the files_modified.json created by the [email protected]
216
-
:return: a list of the svg file paths that were added/modified in this pr as Path.
216
+
:return: a list of the svg file paths that were added/modified in this pr as Path. It will only return icons in /icons path (see https://github.com/devicons/devicon/issues/505)
Copy file name to clipboardExpand all lines: CONTRIBUTING.md
+2
Original file line number
Diff line number
Diff line change
@@ -81,6 +81,7 @@ First of all, thanks for taking the time to contribute! This project can only gr
81
81
<li>Each <code>.svg</code> file contains one version of an icon in a <code>0 0 128 128</code> viewbox. You can use a service like <ahref="https://www.iloveimg.com/resize-image/resize-svg">resize-image</a> for scaling the svg.</li>
82
82
<li>The <code>svg</code> element does not need the <code>height</code> and <code>width</code> attributes. However, if you do use it, ensure their values are either <code>"128"</code> or <code>"128px"</code>. Ex: <code>height="128"</code></li>
83
83
<li>Each <code>.svg</code> must use the <code>fill</code> attribute instead of using <code>classes</code> for colors. See <ahref="https://github.com/devicons/devicon/issues/407">here</a> for more details.</li>
84
+
<li>The naming convention for the svg file is the following: <code>(Icon name)-(original|plain|line)(-wordmark?).</code></li>
84
85
</ul>
85
86
86
87
<hr>
@@ -259,4 +260,5 @@ As an example, let's assume you have created the svgs for Redhat and Amazon Web
259
260
<li>Ensure code quality is up to standard</li>
260
261
<li>Upload svgs to <ahref="https://icomoon.io/app/#/select">icomoon.io</a> and take a screenshot to check that it looks good.
261
262
<li>Comment on the PR so maintainers don't have to manually upload icon result.</li>
263
+
<li>Publishing a new release to <ahref="https://www.npmjs.com/package/devicon">npm</a>; See <ahref="https://github.com/devicons/devicon/issues/288">#288</a></li>
0 commit comments