Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

new icon: testicon (original, plain) #41

Closed
wants to merge 4 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/optimize_svg.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ jobs:

- name: Run the update_id.py
env:
ADDED_FILES: ${{ toJSON(steps.get_added_and_modified_files.outputs.added) }}
MODIFIED_FILES: ${{ toJSON(steps.get_added_and_modified_files.outputs.modified) }}
ADDED_FILES: ${{ steps.get_added_and_modified_files.outputs.added }}
MODIFIED_FILES: ${{ steps.get_added_and_modified_files.outputs.modified }}
run: npm run optimize-svg -- --filesAddedJson=$ADDED_FILES --filesModifiedJson=$MODIFIED_FILES

- name: Commit the changes
Expand Down
20 changes: 20 additions & 0 deletions devicon.json
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,26 @@
"color": "#16358C",
"aliases": []
},
{
"name": "testicon",
"tags": [
"architecture",
"programming",
"language",
"ARM"
],
"versions": {
"svg": [
"original",
"plain"
],
"font": [
"plain"
]
},
"color": "#16358C",
"aliases": []
},
{
"name": "angularjs",
"tags": [
Expand Down
5 changes: 5 additions & 0 deletions gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -178,9 +178,14 @@ function optimizeSvg() {
* It will only return icons in '/icons' path (see https://github.com/devicons/devicon/issues/505)
*/
function getAddedModifiedSvg(filesAddedJson, filesModifiedJson) {
console.log(filesAddedJson)
console.log(filesModifiedJson)
const filesAdded = JSON.parse(filesAddedJson),
filesModified = JSON.parse(filesModifiedJson)

console.log(filesAdded)
console.log(filesModified)

files = filesAdded.concat(filesModified)
return files.filter(filename => {
if (path.extname(filename) == ".svg"
Expand Down
1 change: 1 addition & 0 deletions icons/testicon/testicon-original.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading