From 1fa10346a24b2b45e469ccc5de6b76d3e5158a09 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=81lvaro=20Mond=C3=A9jar?= Date: Sun, 27 Nov 2022 12:46:23 +0100 Subject: [PATCH] Use `` blocks for GH theme images in README (#7983) * Visual manual test on Github * Replace all images * Fix error * Merge with develop * Upgrade strip-gh-theme-links action --- .github/workflows/publish.yml | 6 ++-- README.md | 56 +++++++++++++++++------------------ scripts/utils.js | 2 +- 3 files changed, 33 insertions(+), 31 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index ec8a6dee..b2d0f4eb 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -49,9 +49,10 @@ jobs: restore-keys: | ${{ runner.os }}-node- - name: Remove dark theme images from README - uses: mondeja/strip-gh-theme-links@v3 + uses: mondeja/strip-gh-theme-links@v4 with: files: README.md + keep: light strict: true - name: Install dependencies run: npm i @@ -75,9 +76,10 @@ jobs: export PACKAGE_VERSION=$(cat package.json | grep 'version' | sed 's/[ \",:]//g' | sed 's/version//') echo "::set-output name=version::$PACKAGE_VERSION" - name: Remove dark theme images from README - uses: mondeja/strip-gh-theme-links@v3 + uses: mondeja/strip-gh-theme-links@v4 with: files: README.md + keep: light strict: true - name: Configure GIT credentials run: | diff --git a/README.md b/README.md index a3aabb54..0182345b 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,5 @@

-Simple IconsSimple Icons +Simple Icons

Simple Icons

Over 2400 Free SVG icons for popular brands. See them all on one page at SimpleIcons.org. Contributions, corrections & requests can be made on GitHub.

@@ -46,8 +46,8 @@ These examples use the latest major version. This means you won't receive any up We also provide a CDN service which allows you to use colors. ```html - - + + ``` Where `[COLOR]` is optional, and can be replaced by the [hex colors](https://developer.mozilla.org/en-US/docs/Web/CSS/hex-color) or [CSS keywords](https://www.w3.org/wiki/CSS/Properties/color/keywords) of the icon you want to you use. The color is defaulted to the HEX color of the icon shown in [simpleicons.org website](https://simpleicons.org). For example: @@ -62,7 +62,7 @@ Where `[COLOR]` is optional, and can be replaced by the [hex colors](https://dev ``` -### Node Usage NodeNode +### Node Usage Node The icons are also available through our npm package. To install, simply run: @@ -107,11 +107,11 @@ NOTE: the `license` entry will be `undefined` if we do not yet have license data */ ``` -#### TypeScript Usage TypescriptTypescript +#### TypeScript Usage Typescript Type definitions are bundled with the package. -### PHP Usage PhpPhp +### PHP Usage Php The icons are also available through our Packagist package. To install, simply run: @@ -137,28 +137,28 @@ echo file_get_contents('path/to/package/icons/simpleicons.svg'); | Extension | Author | | :-- | :-- | -| AngularAngular [Angular Module](https://github.com/avmaisak/ngx-simple-icons) | [@avmaisak](https://github.com/avmaisak) | -| BlazorBlazor [Blazor Nuget](https://github.com/TimeWarpEngineering/timewarp-simple-icons) | [@TimeWarpEngineering](https://github.com/TimeWarpEngineering) | -| BlenderBlender [Blender add-on](https://github.com/mondeja/simple-icons-blender) | [@mondeja](https://github.com/mondeja) | -| DrawioDrawio [Drawio library](https://github.com/mondeja/simple-icons-drawio) | [@mondeja](https://github.com/mondeja) | -| DrupalDrupal [Drupal module](https://www.drupal.org/project/simple_icons) | [Phil Wolstenholme](https://www.drupal.org/u/phil-wolstenholme) | -| FigmaFigma [Figma plugin](https://www.figma.com/community/plugin/1149614463603005908/Simple-Icons) | [@LitoMore](https://github.com/LitoMore) | -| FlutterFlutter [Flutter package](https://pub.dev/packages/simple_icons) | [@jlnrrg](https://jlnrrg.github.io/) | -| HexoHexo [Hexo plugin](https://github.com/nidbCN/hexo-simpleIcons) | [@nidbCN](https://github.com/nidbCN/) | -| Home AssistantHome Assistant [Home Assistant plugin](https://github.com/vigonotion/hass-simpleicons) | [@vigonotion](https://github.com/vigonotion/) | -| HugoHugo [Hugo module](https://github.com/foo-dogsquared/hugo-mod-simple-icons) | [@foo-dogsquared](https://github.com/foo-dogsquared) | -| OpenJDKOpenJDK [Java library](https://github.com/silentsoft/simpleicons4j) | [@silentsoft](https://github.com/silentsoft) | -| Jetpack ComposeJetpack Compose [Jetpack Compose library](https://github.com/DevSrSouza/compose-icons) | [@devsrsouza](https://github.com/devsrsouza/) | -| KirbyKirby [Kirby plugin](https://github.com/runxel/kirby3-simpleicons) | [@runxel](https://github.com/runxel) | -| LaTeXLaTeX [LaTeX package](https://github.com/ineshbose/simple-icons-latex) | [@ineshbose](https://github.com/ineshbose) | -| LaravelLaravel [Laravel Package](https://github.com/ublabs/blade-simple-icons) | [@adrian-ub](https://github.com/adrian-ub) | -| PythonPython [Python package](https://github.com/sachinraja/simple-icons-py) | [@sachinraja](https://github.com/sachinraja) | -| ReactReact [React package](https://github.com/icons-pack/react-simple-icons) | [@wootsbot](https://github.com/wootsbot) | -| Simple IconsSimple Icons [Stream Deck icon pack](https://github.com/mackenly/simple-icons-stream-deck) | [@mackenly](https://github.com/mackenly) | -| SvelteSvelte [Svelte package](https://github.com/icons-pack/svelte-simple-icons) | [@wootsbot](https://github.com/wootsbot) | -| VueVue [Vue 3 package](https://github.com/wyatt-herkamp/vue3-simple-icons) | [@wyatt-herkamp](https://github.com/wyatt-herkamp) | -| VueVue [Vue package](https://github.com/mainvest/vue-simple-icons) | [@noahlitvin](https://github.com/noahlitvin) | -| WordpressWordpress [WordPress plugin](https://wordpress.org/plugins/simple-icons/) | [@tjtaylo](https://github.com/tjtaylo) | +| Angular [Angular Module](https://github.com/avmaisak/ngx-simple-icons) | [@avmaisak](https://github.com/avmaisak) | +| Blazor [Blazor Nuget](https://github.com/TimeWarpEngineering/timewarp-simple-icons) | [@TimeWarpEngineering](https://github.com/TimeWarpEngineering) | +| Blender [Blender add-on](https://github.com/mondeja/simple-icons-blender) | [@mondeja](https://github.com/mondeja) | +| Drawio [Drawio library](https://github.com/mondeja/simple-icons-drawio) | [@mondeja](https://github.com/mondeja) | +| Drupal [Drupal module](https://www.drupal.org/project/simple_icons) | [Phil Wolstenholme](https://www.drupal.org/u/phil-wolstenholme) | +| Figma [Figma plugin](https://www.figma.com/community/plugin/1149614463603005908/Simple-Icons) | [@LitoMore](https://github.com/LitoMore) | +| Flutter [Flutter package](https://pub.dev/packages/simple_icons) | [@jlnrrg](https://jlnrrg.github.io/) | +| Hexo [Hexo plugin](https://github.com/nidbCN/hexo-simpleIcons) | [@nidbCN](https://github.com/nidbCN/) | +| Home Assistant [Home Assistant plugin](https://github.com/vigonotion/hass-simpleicons) | [@vigonotion](https://github.com/vigonotion/) | +| Hugo [Hugo module](https://github.com/foo-dogsquared/hugo-mod-simple-icons) | [@foo-dogsquared](https://github.com/foo-dogsquared) | +| OpenJDK [Java library](https://github.com/silentsoft/simpleicons4j) | [@silentsoft](https://github.com/silentsoft) | +| Jetpack Compose [Jetpack Compose library](https://github.com/DevSrSouza/compose-icons) | [@devsrsouza](https://github.com/devsrsouza/) | +| Kirby [Kirby plugin](https://github.com/runxel/kirby3-simpleicons) | [@runxel](https://github.com/runxel) | +| LaTeX [LaTeX package](https://github.com/ineshbose/simple-icons-latex) | [@ineshbose](https://github.com/ineshbose) | +| Laravel [Laravel Package](https://github.com/ublabs/blade-simple-icons) | [@adrian-ub](https://github.com/adrian-ub) | +| Python [Python package](https://github.com/sachinraja/simple-icons-py) | [@sachinraja](https://github.com/sachinraja) | +| React [React package](https://github.com/icons-pack/react-simple-icons) | [@wootsbot](https://github.com/wootsbot) | +| Stream Deck [Stream Deck icon pack](https://github.com/mackenly/simple-icons-stream-deck) | [@mackenly](https://github.com/mackenly) | +| Svelte [Svelte package](https://github.com/icons-pack/svelte-simple-icons) | [@wootsbot](https://github.com/wootsbot) | +| Vue [Vue 3 package](https://github.com/wyatt-herkamp/vue3-simple-icons) | [@wyatt-herkamp](https://github.com/wyatt-herkamp) | +| Vue [Vue package](https://github.com/mainvest/vue-simple-icons) | [@noahlitvin](https://github.com/noahlitvin) | +| Wordpress [WordPress plugin](https://wordpress.org/plugins/simple-icons/) | [@tjtaylo](https://github.com/tjtaylo) | ## Contribute diff --git a/scripts/utils.js b/scripts/utils.js index 0d5252de..8f5fd15e 100644 --- a/scripts/utils.js +++ b/scripts/utils.js @@ -195,7 +195,7 @@ export const getThirdPartyExtensions = async (readmePath) => return { module: { name: /\[(.+)\]/.exec(module)[1], - url: /\((.+)\)/.exec(module)[1], + url: /\((.+)\)/.exec(module.split('
')[1])[1], }, author: { name: /\[(.+)\]/.exec(author)[1],