From ec6a00abf71a2478c3dad5e13eea0a13ff52ce5c Mon Sep 17 00:00:00 2001 From: Thomas Bui <43018778+Thomas-Boi@users.noreply.github.com> Date: Sat, 10 Apr 2021 14:26:47 -0700 Subject: [PATCH] Added a section for common bugs in the CONTRIBUTING (#563) --- CONTRIBUTING.md | 68 ++++++++++++++++++++++++++++++++++++++++--------- 1 file changed, 56 insertions(+), 12 deletions(-) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index bab00640..2f825964 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -14,7 +14,7 @@ First of all, thanks for taking the time to contribute! This project can only gr
{
- "name": string, // the official name of the technology. Must be lower case, no space and don't have the dash '-' character.
- "tags": string[], // list of tags relating to the technology for search purpose
+ // the official name of the technology. Must be lower case, no space and don't have the dash '-' character.
+ "name": string,
+
+ // list of tags relating to the technology for search purpose
+ "tags": string[],
+
+ // keep tracks of the different versions that you have.
"versions": {
- "svg": VersionString[], // list the svgs that you have
- "font": VersionString[] // list the fonts acceptable versions that you have
+ // list the svgs that you have
+ "svg": VersionString[],
+
+ // list the fonts acceptable versions that you have
+ "font": VersionString[]
},
- "color": string, // the main color of the logo. Only track 1 color
- "aliases": AliasObj[] // keeps track of the aliases for the font versions ONLY
+
+ // the main color of the logo. Only track 1 color
+ "color": string,
+
+ // keeps track of the aliases for the font versions ONLY
+ // see the Example section for more details
+ // NOTE: this attribute is not required from now on (see this)
+ // it is only being kept for backward compatibility
+ "aliases": AliasObj[]
}
@@ -294,21 +309,50 @@ As an example, let's assume you have created the svgs for Redhat and Amazon Web
To make adding icons easier for repo maintainers, we rely on GitHub Actions, Python, Selenium, and Gulp to automate our tasks.
So far, the tasks in the build script are:
There are also other tasks that we are automating, such as:
-There are some quirks and bugs that the build scripts might run into. Listed below are the common ones and their solution
+package-lock.json
. Most likely the result of a dependabot update but not 100% sure.package-lock.json
and run `npm install` to generate a new file. Commit and push.bot-peek
script relies on the PR title to find the icon that was added in the PR. If the format doesn't match what is specified in Overview on Submitting Icon, the bot will fail.bot-peek
script compares the devicon.json
and icomoon.json
to limit the icon uploading process. An update in the repo won't change anything in the devicon.json
and icomoon.json
so the script would report that nothing is found.We are running a Discord server. You can go here to talk, discuss, and more with the maintainers and other people, too. Here's the invitation: https://discord.gg/hScy8KWACQ. If you don't have a GitHub account but want to suggest ideas or new icons, you can do that here in our Discord channel.