Useful extras for Vitepress.
Install package:
# npm
npm install vitepress-extras
# yarn
yarn add vitepress-extras
# pnpm
pnpm install vitepress-extras
# bun
bun install vitepress-extras
Import:
// ESM
import { generateSidebars } from "vitepress-extras";
// CommonJS
const { generateSidebars } = require("vitepress-extras");
generateSidebars
: will generate the sidebars for your vitepress docs.
- Tests
- Clone this repository
- Install latest LTS version of Node.js
- Enable Corepack using
corepack enable
- Install dependencies using
pnpm install
- Run interactive tests using
pnpm dev
Made with 💛
Published under MIT License.