Getting started
Installation
- Node.js version 18 or higher
- A VitePress project
- A package manager: e.g. npm, pnpm, ...
sh
$ npm install -D @ogs-gmbh/vitepress-plugin-sidebarsh
$ pnpm add -D @ogs-gmbh/vitepress-plugin-sidebarsh
$ yarn add -D @ogs-gmbh/vitepress-plugin-sidebarsh
$ bun add -D @ogs-gmbh/vitepress-plugin-sidebarUsage
Now, just import and use the sidebarPlugin inside your VitePress Site Config.
You can use the reference of Config to get a better understanding of the configuration.
index.ts
ts
import { sidebarPlugin } from "@ogs-gmbh/vitepress-plugin-sidebar";
export default {
themeConfig: {
sidebar: sidebarPlugin({
path: "./dist/vitepress-content"
})
}
}