Skip to content

Commit 37a29e6

Browse files
authored
feat: load oxc icon from url (oxc-project#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

Diff for: .vitepress/config/shared.ts

+2-2
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
],

Diff for: .vitepress/oxc-logo.svg

-29
This file was deleted.

Diff for: package.json

+1-1
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": {

Diff for: pnpm-lock.yaml

+5-5
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)