Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions .vitepress/config/shared.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { dirname, resolve } from "node:path";
import { fileURLToPath } from "node:url";
import { HeadConfig, defineConfig } from "vitepress";
import { groupIconMdPlugin, groupIconVitePlugin, localIconLoader } from "vitepress-plugin-group-icons";

const head: HeadConfig[] = [
[
Expand Down Expand Up @@ -75,7 +76,19 @@ export const sharedConfig = defineConfig({
copyright: "Copyright © 2023-present Boshen & Oxc Contributors",
},
},
markdown: {
config(md) {
md.use(groupIconMdPlugin);
},
},
vite: {
plugins: [
groupIconVitePlugin({
customIcon: {
".oxlintrc": localIconLoader(import.meta.url, "../oxc-logo.svg"),
},
}),
],
resolve: {
alias: [
{
Expand Down
29 changes: 29 additions & 0 deletions .vitepress/oxc-logo.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions .vitepress/theme/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import DefaultTheme from "vitepress/theme";
import AppBadgeList from "./components/AppBadgeList.vue";
import AppBlogPostHeader from "./components/AppBlogPostHeader.vue";
import Alert from "./components/Alert.vue";
import "virtual:group-icons.css";

export default {
extends: DefaultTheme,
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
"tsx": "^4.19.1",
"typescript": "~5.6.0",
"vitepress": "1.3.4",
"vitepress-plugin-group-icons": "^1.2.4",
"vue": "^3.5.8"
},
"lint-staged": {
Expand Down
Loading