Skip to content

Commit

Permalink
Release 32 new icons and 5 updated icons (v4.13.0)
Browse files Browse the repository at this point in the history
# New Icons

- AirAsia (#4892)
- AMP (#4962)
- Amul (#4955)
- Apostrophe (#4977)
- Apple Arcade (#4944)
- AssemblyScript (#4997)
- AutoHotkey (#4911)
- Baremetrics (#5118)
- Bitwig (#4958)
- CBS (#5122)
- Etihad Airways (#4957)
- Grammarly (#5045)
- KakaoTalk (#5016)
- Kasa Smart (#5114)
- KnowledgeBase (#4922)
- Max (#4981)
- MyAnimeList (#4718)
- Namebase (#5074)
- Nano (#5063)
- Nx (#4860)
- PlayCanvas (#5103)
- Plotly (#5111)
- Ram (#5014)
- reveal.js (#5127)
- Rezgo (#5100)
- S7 Airlines (#4888)
- Supabase (#4858)
- SurveyMonkey (#4790)
- SUSE (#4905)
- Swiggy (#4875)
- ts-node (#5105)
- Vaadin (#5007)

# Updated Icons

- Chrysler (#4991)
- Fiat (#5008)
- Jeep (#5011)
- Peugeot (#5119)
- Vauxhall (#5015)
  • Loading branch information
ericcornelissen committed Feb 28, 2021
2 parents 612c336 + a769301 commit 6f61865
Show file tree
Hide file tree
Showing 50 changed files with 468 additions and 404 deletions.
34 changes: 34 additions & 0 deletions .svglintrc.js
Expand Up @@ -473,6 +473,40 @@ module.exports = {
ignoreIcon(reporter.name, iconPath, $);
}
}
},
function(reporter, $, ast) {
reporter.name = "path-format";

const iconPath = $.find("path").attr("d");

const validPathFormatRegex = /^[Mm][MmZzLlHhVvCcSsQqTtAaEe0-9-,.\s]+$/;
if (!validPathFormatRegex.test(iconPath)) {
let errorMsg = "Invalid path format", reason;

if (!(/^[Mm]/.test(iconPath))) {
// doesn't start with moveto
reason = `should start with \"moveto\" command (\"M\" or \"m\"), but starts with \"${iconPath[0]}\"`;
reporter.error(`${errorMsg}: ${reason}`);
}

const validPathCharacters = "MmZzLlHhVvCcSsQqTtAaEe0123456789-,. ",
invalidCharactersMsgs = [],
pathDStart = '<path d="',
pathDIndex = $.html().indexOf(pathDStart) + pathDStart.length;

for (let [i, char] of Object.entries(iconPath)) {
if (validPathCharacters.indexOf(char) === -1) {
invalidCharactersMsgs.push(`"${char}" at index ${pathDIndex + parseInt(i)}`);
}
}

// contains invalid characters
if (invalidCharactersMsgs.length > 0) {
reason = `unexpected character${invalidCharactersMsgs.length > 1 ? 's' : ''} found`;
reason += ` (${invalidCharactersMsgs.join(", ")})`;
reporter.error(`${errorMsg}: ${reason}`);
}
}
}
]
}
Expand Down
85 changes: 0 additions & 85 deletions .svgo.yml

This file was deleted.

8 changes: 5 additions & 3 deletions CONTRIBUTING.md
@@ -1,6 +1,6 @@
# Contributing to Simple Icons

Simple Icons welcomes contributions and corrections. Before contributing, please make sure you have read the guidelines below. If you decide to contribute anything, please do the following:
Simple Icons welcomes contributions and corrections. Before contributing, please make sure you have read the guidelines below. If you decide to contribute anything, please follow the steps below. If you're new to _git_ and/or _GitHub_, we suggest you go through [the GitHub Guides](https://guides.github.com/introduction/flow/).

1. Fork this repository
1. (Optional) Clone the fork
Expand All @@ -16,7 +16,7 @@ Simple Icons welcomes contributions and corrections. Before contributing, please
gh repo clone simple-icons/simple-icons -- --filter=tree:0
```

1. Create a new branch from the latest `develop` (read more [here](https://guides.github.com/introduction/flow/))
1. Create a new branch from the latest `develop`
1. Start hacking on the new branch
1. Commit and push to the new branch
1. Make a pull request
Expand Down Expand Up @@ -117,9 +117,11 @@ Using your preferred tool you should:

Some icons can't be easily converted to a monochromatic version due to colour changes, shadows, or other effects. For such cases the addition of gaps is the recommended approach, with a preferred width of 0.5px. In some situations a different gap may be required, but that will be determined on a per-case basis.

If you have any problems or questions while creating the SVG, check out [the GitHub Discussions](https://github.com/simple-icons/simple-icons/discussions/categories/help-with-svgs). You may find an answer to your question there or you can ask your question if you did not find an answer.

### 3. Optimize the Icon

All icons in Simple Icons have been optimized with the [SVGO tool](https://github.com/svg/svgo). This can be done in one of two ways:
All icons in Simple Icons have been optimized with the [SVGO tool](https://github.com/svg/svgo). This can be done in one of three ways:

* The [SVGO Command Line Tool](https://github.com/svg/svgo)
* Install dependencies
Expand Down

0 comments on commit 6f61865

Please sign in to comment.