Skip to content

Commit

Permalink
Release 6 new icons and 2 updated icons (v11.8.0)
Browse files Browse the repository at this point in the history
# New Icons

- Akiflow (#10558) (@durgeshgowdac)
- boAt (#10395) (@yashsongara101)
- IGN (#10557) (@Mvlprem)
- Li-Ning (#10544) (@Mvlprem)
- NameSilo (#10566) (@Rahul-NITD)
- Pixelfed (#10526) (@adamrusted)

# Updated Icons

- Eleventy (#10562) (@uncenter)
- Tubi (#10560) (@durgeshgowdac)
  • Loading branch information
mondeja committed Mar 10, 2024
2 parents f06f3d2 + fad808a commit f4ad164
Show file tree
Hide file tree
Showing 22 changed files with 193 additions and 137 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/add-labels-priority.yml
Expand Up @@ -8,7 +8,7 @@ jobs:
runs-on: ubuntu-latest
if: github.event.action == 'opened'
steps:
- uses: ericcornelissen/labeler@label-based-on-status
- uses: simple-icons/labeler@master
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/autoclose-issues.yml
Expand Up @@ -35,7 +35,7 @@ jobs:
if: |
steps.match-java.outputs.match == 'true' &&
contains(steps.get-labels.outputs.labels, 'new icon')
uses: actions/github-script@v6
uses: actions/github-script@v7
with:
script: |
github.rest.issues.createComment({
Expand Down
15 changes: 5 additions & 10 deletions .github/workflows/create-release.yml
Expand Up @@ -42,16 +42,11 @@ jobs:
# Ensure we are checked out on the develop branch
ref: develop
- name: Use Node.js 20.x
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: 20.x
- name: Cache dependencies
uses: actions/cache@v3
with:
path: ~/.npm
key: ${{ runner.os }}-node-${{ hashFiles('**/package.json') }}
restore-keys: |
${{ runner.os }}-node-
node-version: 20
cache: npm
cache-dependency-path: '**/package.json'
- name: Bump version
run: |
npm version --no-commit-hooks --no-git-tag-version \
Expand All @@ -67,7 +62,7 @@ jobs:
- name: Update SDK Typescript definitions
run: node ./scripts/release/update-sdk-ts-defs.js
- name: Commit version bump
uses: stefanzweifel/git-auto-commit-action@v5.0.0
uses: stefanzweifel/git-auto-commit-action@v5
with:
commit_message: version bump
commit_user_name: 'github-actions[bot]'
Expand Down
34 changes: 12 additions & 22 deletions .github/workflows/publish.yml
Expand Up @@ -12,16 +12,11 @@ jobs:
- name: Checkout
uses: actions/checkout@v4
- name: Use Node.js 20.x
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: 20.x
- name: Cache dependencies
uses: actions/cache@v3
with:
path: ~/.npm
key: ${{ runner.os }}-node-${{ hashFiles('**/package.json') }}
restore-keys: |
${{ runner.os }}-node-
node-version: 20
cache: npm
cache-dependency-path: '**/package.json'
- name: Install dependencies
run: npm i
- name: Run linters
Expand All @@ -38,16 +33,11 @@ jobs:
- name: Checkout
uses: actions/checkout@v4
- name: Use Node.js 20.x
uses: actions/setup-node@v3
with:
node-version: 20.x
- name: Cache dependencies
uses: actions/cache@v3
uses: actions/setup-node@v4
with:
path: ~/.npm
key: ${{ runner.os }}-node-${{ hashFiles('**/package.json') }}
restore-keys: |
${{ runner.os }}-node-
node-version: 20
cache: npm
cache-dependency-path: '**/package.json'
- id: get-version
uses: ./.github/actions/get-version
- name: Install dependencies
Expand All @@ -59,7 +49,7 @@ jobs:
- name: Build NodeJS package
run: npm run build
- name: Deploy to NPM
uses: JS-DevTools/npm-publish@v2
uses: JS-DevTools/npm-publish@v3
with:
token: ${{ secrets.NPM_TOKEN }}
github:
Expand All @@ -71,7 +61,7 @@ jobs:
uses: actions/checkout@v4
- name: Get commit message (for release title and body)
id: commit
uses: kceb/git-message-action@v2
uses: kceb/git-message-action@v3
- id: get-version
uses: ./.github/actions/get-version
- name: Reformat to regular markdown
Expand All @@ -92,12 +82,12 @@ jobs:
git tag -a "${tag}" -m "${{ steps.commit.outputs.git-message }}"
git push origin "${tag}"
- name: Create release
uses: actions/create-release@v1
uses: softprops/action-gh-release@v2
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ steps.get-version.outputs.version }}
release_name: ${{ steps.commit.outputs.title }}
name: ${{ steps.commit.outputs.title }}
body: ${{ steps.commit.outputs.body }}
font:
name: Trigger simple-icons-font release
Expand Down
62 changes: 25 additions & 37 deletions .github/workflows/verify.yml
Expand Up @@ -9,16 +9,11 @@ jobs:
- name: Checkout
uses: actions/checkout@v4
- name: Use Node.js 20.x
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: 20.x
- name: Cache dependencies
uses: actions/cache@v3
with:
path: ~/.npm
key: ${{ runner.os }}-node-${{ hashFiles('**/package.json') }}
restore-keys: |
${{ runner.os }}-node-
node-version: 20
cache: npm
cache-dependency-path: '**/package.json'
- name: Install dependencies
run: npm i
- name: Build NodeJS package
Expand All @@ -30,34 +25,32 @@ jobs:
- name: Checkout
uses: actions/checkout@v4
- name: Use Node.js 20.x
uses: actions/setup-node@v3
with:
node-version: 20.x
- name: Cache dependencies
uses: actions/cache@v3
uses: actions/setup-node@v4
with:
path: ~/.npm
key: ${{ runner.os }}-node-${{ hashFiles('**/package.json') }}
restore-keys: |
${{ runner.os }}-node-
- name: Install dependencies
run: npm i
- name: Run linter
run: npm run lint
env:
# Authorise GitHub API requests for editorconfig-checker
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Detect changed documentation files
uses: dorny/paths-filter@v2
node-version: 20
cache: npm
cache-dependency-path: '**/package.json'
- name: Detect changed files
uses: dorny/paths-filter@v3
id: changes
with:
list-files: shell
filters: |
docs:
- '*.md'
- '.github/**.md'
icons:
- 'icons/*.svg'
token: ${{ secrets.GITHUB_TOKEN }}
- name: Install dependencies
run: npm i
- name: Run linter
run: npm run lint --icons='${{ steps.changes.outputs.icons_files }}'
env:
# Authorise GitHub API requests for editorconfig-checker
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Check documentation links
if: steps.changes.outputs.docs == 'true'
if: steps.changes.outputs.docs == true
run: |
npx markdown-link-check --retry \
--config .github/markdown-link-check.json \
Expand Down Expand Up @@ -88,16 +81,11 @@ jobs:
- name: Checkout
uses: actions/checkout@v4
- name: Use Node.js 20.x
uses: actions/setup-node@v3
with:
node-version: 20.x
- name: Cache dependencies
uses: actions/cache@v3
uses: actions/setup-node@v4
with:
path: ~/.npm
key: ${{ runner.os }}-node-${{ hashFiles('**/package.json') }}
restore-keys: |
${{ runner.os }}-node-
node-version: 20
cache: npm
cache-dependency-path: '**/package.json'
- name: Install dependencies
run: npm i
- name: Run tests
Expand Down
3 changes: 3 additions & 0 deletions .npmrc
@@ -1,2 +1,5 @@
package-lock=false
save-exact=true

# Icons to lint with SVGLint (see `npm run svglint`)
icons=icons/*.svg
5 changes: 5 additions & 0 deletions .svglint-ignored.json

Large diffs are not rendered by default.

92 changes: 52 additions & 40 deletions .svglintrc.mjs
Expand Up @@ -649,7 +649,7 @@ export default {
}
}
},
(reporter, $, ast, filepath) => {
(reporter, $, ast, { filepath }) => {
reporter.name = 'collinear-segments';

/**
Expand All @@ -669,104 +669,112 @@ export default {
_resetStartPoint = false;

for (let s = 0; s < segments.length; s++) {
let seg = segments[s].params,
cmd = seg[0],
const seg = segments[s],
parms = seg.params,
cmd = parms[0],
nextCmd = s + 1 < segments.length ? segments[s + 1][0] : null;

switch (cmd) {
// Next switch cases have been ordered by frequency
// of occurrence in the SVG paths of the icons
case 'M':
currAbsCoord[0] = seg[1];
currAbsCoord[1] = seg[2];
startPoint = undefined;
currAbsCoord[0] = parms[1];
currAbsCoord[1] = parms[2];
// SVG 1.1:
// If a moveto is followed by multiple pairs of coordinates,
// the subsequent pairs are treated as implicit lineto commands.
if (!seg.chained || seg.chainStart === seg.start) {
startPoint = undefined;
}
break;
case 'm':
currAbsCoord[0] =
(!currAbsCoord[0] ? 0 : currAbsCoord[0]) + seg[1];
(!currAbsCoord[0] ? 0 : currAbsCoord[0]) + parms[1];
currAbsCoord[1] =
(!currAbsCoord[1] ? 0 : currAbsCoord[1]) + seg[2];
startPoint = undefined;
(!currAbsCoord[1] ? 0 : currAbsCoord[1]) + parms[2];
if (!seg.chained || seg.chainStart === seg.start) {
startPoint = undefined;
}
break;
case 'H':
currAbsCoord[0] = seg[1];
currAbsCoord[0] = parms[1];
break;
case 'h':
currAbsCoord[0] =
(!currAbsCoord[0] ? 0 : currAbsCoord[0]) + seg[1];
(!currAbsCoord[0] ? 0 : currAbsCoord[0]) + parms[1];
break;
case 'V':
currAbsCoord[1] = seg[1];
currAbsCoord[1] = parms[1];
break;
case 'v':
currAbsCoord[1] =
(!currAbsCoord[1] ? 0 : currAbsCoord[1]) + seg[1];
(!currAbsCoord[1] ? 0 : currAbsCoord[1]) + parms[1];
break;
case 'L':
currAbsCoord[0] = seg[1];
currAbsCoord[1] = seg[2];
currAbsCoord[0] = parms[1];
currAbsCoord[1] = parms[2];
break;
case 'l':
currAbsCoord[0] =
(!currAbsCoord[0] ? 0 : currAbsCoord[0]) + seg[1];
(!currAbsCoord[0] ? 0 : currAbsCoord[0]) + parms[1];
currAbsCoord[1] =
(!currAbsCoord[1] ? 0 : currAbsCoord[1]) + seg[2];
(!currAbsCoord[1] ? 0 : currAbsCoord[1]) + parms[2];
break;
case 'Z':
case 'z':
// Overlapping in Z should be handled in another rule
// TODO: Overlapping in Z should be handled in another rule
currAbsCoord = [startPoint[0], startPoint[1]];
_resetStartPoint = true;
break;
case 'C':
currAbsCoord[0] = seg[5];
currAbsCoord[1] = seg[6];
currAbsCoord[0] = parms[5];
currAbsCoord[1] = parms[6];
break;
case 'c':
currAbsCoord[0] =
(!currAbsCoord[0] ? 0 : currAbsCoord[0]) + seg[5];
(!currAbsCoord[0] ? 0 : currAbsCoord[0]) + parms[5];
currAbsCoord[1] =
(!currAbsCoord[1] ? 0 : currAbsCoord[1]) + seg[6];
(!currAbsCoord[1] ? 0 : currAbsCoord[1]) + parms[6];
break;
case 'A':
currAbsCoord[0] = seg[6];
currAbsCoord[1] = seg[7];
currAbsCoord[0] = parms[6];
currAbsCoord[1] = parms[7];
break;
case 'a':
currAbsCoord[0] =
(!currAbsCoord[0] ? 0 : currAbsCoord[0]) + seg[6];
(!currAbsCoord[0] ? 0 : currAbsCoord[0]) + parms[6];
currAbsCoord[1] =
(!currAbsCoord[1] ? 0 : currAbsCoord[1]) + seg[7];
(!currAbsCoord[1] ? 0 : currAbsCoord[1]) + parms[7];
break;
case 's':
currAbsCoord[0] =
(!currAbsCoord[0] ? 0 : currAbsCoord[0]) + seg[1];
(!currAbsCoord[0] ? 0 : currAbsCoord[0]) + parms[1];
currAbsCoord[1] =
(!currAbsCoord[1] ? 0 : currAbsCoord[1]) + seg[2];
(!currAbsCoord[1] ? 0 : currAbsCoord[1]) + parms[2];
break;
case 'S':
currAbsCoord[0] = seg[1];
currAbsCoord[1] = seg[2];
currAbsCoord[0] = parms[1];
currAbsCoord[1] = parms[2];
break;
case 't':
currAbsCoord[0] =
(!currAbsCoord[0] ? 0 : currAbsCoord[0]) + seg[1];
(!currAbsCoord[0] ? 0 : currAbsCoord[0]) + parms[1];
currAbsCoord[1] =
(!currAbsCoord[1] ? 0 : currAbsCoord[1]) + seg[2];
(!currAbsCoord[1] ? 0 : currAbsCoord[1]) + parms[2];
break;
case 'T':
currAbsCoord[0] = seg[1];
currAbsCoord[1] = seg[2];
currAbsCoord[0] = parms[1];
currAbsCoord[1] = parms[2];
break;
case 'Q':
currAbsCoord[0] = seg[3];
currAbsCoord[1] = seg[4];
currAbsCoord[0] = parms[3];
currAbsCoord[1] = parms[4];
break;
case 'q':
currAbsCoord[0] =
(!currAbsCoord[0] ? 0 : currAbsCoord[0]) + seg[3];
(!currAbsCoord[0] ? 0 : currAbsCoord[0]) + parms[3];
currAbsCoord[1] =
(!currAbsCoord[1] ? 0 : currAbsCoord[1]) + seg[4];
(!currAbsCoord[1] ? 0 : currAbsCoord[1]) + parms[4];
break;
default:
throw new Error(`"${cmd}" command not handled`);
Expand Down Expand Up @@ -814,8 +822,12 @@ export default {
return collinearSegments;
};

const iconPath = getIconPath($, filepath),
collinearSegments = getCollinearSegments(iconPath);
const iconPath = getIconPath($, filepath);
if (!updateIgnoreFile && isIgnored(reporter.name, iconPath)) {
return;
}

const collinearSegments = getCollinearSegments(iconPath);
if (collinearSegments.length === 0) {
return;
}
Expand Down

0 comments on commit f4ad164

Please sign in to comment.