Skip to content

Commit

Permalink
docs: fix registerComponent plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
Mister-Hope committed Jan 15, 2025
1 parent f80d7e2 commit fc98b5e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion docs/.vuepress/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,9 @@ export default defineUserConfig({
],
}),
registerComponentsPlugin({
componentsDir: path.resolve(__dirname, './components'),
components: {
NpmBadge: path.resolve(__dirname, './components/NpmBadge.vue'),
},
}),
// only enable shiki plugin in production mode
IS_PROD
Expand Down

0 comments on commit fc98b5e

Please sign in to comment.