Skip to content

Commit 37a29e6

Browse files
authored
feat: load oxc icon from url (#226)
* feat: load oxc icon from url * chore: eslint error fix
1 parent c2d6327 commit 37a29e6

File tree

4 files changed

+8
-37
lines changed

4 files changed

+8
-37
lines changed

.vitepress/config/shared.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { dirname, resolve } from "node:path";
22
import { fileURLToPath } from "node:url";
33
import { HeadConfig, defineConfig } from "vitepress";
4-
import { groupIconMdPlugin, groupIconVitePlugin, localIconLoader } from "vitepress-plugin-group-icons";
4+
import { groupIconMdPlugin, groupIconVitePlugin } from "vitepress-plugin-group-icons";
55

66
const head: HeadConfig[] = [
77
[
@@ -85,7 +85,7 @@ export const sharedConfig = defineConfig({
8585
plugins: [
8686
groupIconVitePlugin({
8787
customIcon: {
88-
".oxlintrc": localIconLoader(import.meta.url, "../oxc-logo.svg"),
88+
".oxlintrc": "https://cdn.jsdelivr.net/gh/oxc-project/oxc-assets/round.svg",
8989
},
9090
}),
9191
],

.vitepress/oxc-logo.svg

Lines changed: 0 additions & 29 deletions
This file was deleted.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
"tsx": "^4.19.1",
3030
"typescript": "~5.6.0",
3131
"vitepress": "1.3.4",
32-
"vitepress-plugin-group-icons": "^1.2.4",
32+
"vitepress-plugin-group-icons": "^1.3.0",
3333
"vue": "^3.5.8"
3434
},
3535
"lint-staged": {

pnpm-lock.yaml

Lines changed: 5 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)