Compare commits

...

9 Commits

Author SHA1 Message Date
3f5be02ff6 Add release step 2022-03-29 16:02:42 -07:00
519fe5cad7 More debugging 2022-03-29 15:58:01 -07:00
dad92cb4a6 Debug release 2022-03-29 15:53:07 -07:00
0999a0d46a Only use Node 16.x in CI 2022-03-29 15:40:42 -07:00
a1c03cb57a Create ci.yml 2022-03-29 15:35:23 -07:00
734f3f5114 Fix return tag on processSvg (#946)
The `@returns` line for the `processSvg` function was using `@param`
2021-09-21 22:58:00 -07:00
a08d064842 Add tags (#985) 2021-09-21 22:57:09 -07:00
14ee355852 add gulp-feather (#1010) 2021-09-21 22:55:53 -07:00
4d61ba72bf Replace "xlink:href" with "href" (#1070) 2021-09-21 22:53:39 -07:00
4 changed files with 25 additions and 3 deletions

19
.github/workflows/ci.yml vendored Normal file
View File

@ -0,0 +1,19 @@
name: CI
on: push
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Use Node.js 16.x
uses: actions/setup-node@v3
with:
node-version: 16.x
cache: 'npm'
- run: npm ci
- run: npm run all
- name: Release
if: github.ref_name == 'master'
run: npx semantic-release

View File

@ -194,7 +194,7 @@ Include an icon on your page with the following markup:
stroke-linecap="round"
stroke-linejoin="round"
>
<use xlink:href="path/to/feather-sprite.svg#circle"/>
<use href="path/to/feather-sprite.svg#circle"/>
</svg>
```
@ -216,7 +216,7 @@ However, this markup can be simplified using a simple CSS class to avoid repetit
```html
<svg class="feather">
<use xlink:href="path/to/dist/feather-sprite.svg#circle"/>
<use href="path/to/dist/feather-sprite.svg#circle"/>
</svg>
```
### Figma
@ -399,6 +399,7 @@ Caught a mistake or want to contribute to the documentation? [Edit this page on
- [wp-php-feather](https://github.com/reatlat/wp-php-feather) - Feather icons as a WordPress template tag
- [django-feather](https://pypi.org/project/django-feather/) - Feather icons as Django Template Tag
- [svelte-feather-icons](https://github.com/dylanblokhuis/svelte-feather-icons) - Feather icons as Svelte components
- [gulp-feather](https://github.com/oToToT/gulp-feather) - Feather icons renderng using gulp
## License

View File

@ -7,7 +7,7 @@ import DEFAULT_ATTRS from '../src/default-attrs.json';
/**
* Process SVG string.
* @param {string} svg - An SVG string.
* @param {Promise<string>}
* @returns {Promise<string>}
*/
function processSvg(svg) {
return (

View File

@ -28,6 +28,8 @@
"calendar": ["date"],
"camera": ["photo"],
"cast": ["chromecast", "airplay"],
"chevron-down": ["expand"],
"chevron-up": ["collapse"],
"circle": ["off", "zero", "record"],
"clipboard": ["copy"],
"clock": ["time", "watch", "alarm"],