Skip to content

Commit

Permalink
docs: update
Browse files Browse the repository at this point in the history
  • Loading branch information
yuyinws committed Sep 2, 2024
1 parent e7d14b8 commit dcf9880
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 20 deletions.
10 changes: 5 additions & 5 deletions docs/.vitepress/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,11 @@ export default defineConfig({
plugins: [
groupIconVitePlugin({
customIcon: {
ae: 'logos:adobe-after-effects',
ai: 'logos:adobe-illustrator',
ps: 'logos:adobe-photoshop',
rspack: localIconLoader(import.meta.url, '../assets/rspack.svg'),
farm: localIconLoader(import.meta.url, '../assets/farm.svg'),
'.mdx': 'vscode-icons:file-type-light-mdx',
'babel': 'vscode-icons:file-type-light-babel2',
'.go': 'vscode-icons:file-type-go',
'rspack': localIconLoader(import.meta.url, '../assets/rspack.svg'),
'farm': localIconLoader(import.meta.url, '../assets/farm.svg'),
},
}),
Inspect(),
Expand Down
24 changes: 11 additions & 13 deletions docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -202,6 +202,9 @@ bun add vitepress-plugin-group-icons
``` [foo.yml]
```

``` [foo.html]
```

``` [foo.ico]
```

Expand Down Expand Up @@ -232,11 +235,11 @@ export default defineConfig({
plugins: [
groupIconVitePlugin({
customIcon: {
ae: 'logos:adobe-after-effects',
ai: 'logos:adobe-illustrator',
ps: 'logos:adobe-photoshop',
rspack: localIconLoader(import.meta.url, '../assets/rspack.svg'),
farm: localIconLoader(import.meta.url, '../assets/farm.svg'),
'.mdx': 'vscode-icons:file-type-light-mdx',
'babel': 'vscode-icons:file-type-babel',
'.go': 'vscode-icons:file-type-go',
'rspack': localIconLoader(import.meta.url, '../assets/rspack.svg'),
'farm': localIconLoader(import.meta.url, '../assets/farm.svg'),
},
})
],
Expand All @@ -246,24 +249,19 @@ export default defineConfig({

::: code-group

``` [AE]
AE
``` [foo.mdx]
```

``` [AI]
AI
``` [Babel]
```

``` [PS]
PS
``` [foo.go]
```

``` [Rspack]
Rspack
```

``` [Farm]
Farm
```

:::
5 changes: 3 additions & 2 deletions src/builtin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ export const builtinIcons = {
'.md': 'vscode-icons:file-type-markdown',
'.py': 'vscode-icons:file-type-python',
'.ico': 'vscode-icons:file-type-favicon',
'yml': 'vscode-icons:file-type-light-yaml',
'yaml': 'vscode-icons:file-type-light-yaml',
'.html': 'vscode-icons:file-type-html',
'.yml': 'vscode-icons:file-type-light-yaml',
'.yaml': 'vscode-icons:file-type-light-yaml',
}

0 comments on commit dcf9880

Please sign in to comment.