Xaviw / vite-plugin-vitepress-auto-nav

自动生成vitepress的nav与sidebar
MIT License
17 stars 1 forks source link

vite-plugin-vitepress-auto-nav

中文文档

Auto-generate VitePress nav and sidebar configurations.

✨ Features

🕯️ Usage

  1. Install
# Installing vite is recommended when using ts, otherwise you will get type errors.
pnpm i vite-plugin-vitepress-auto-nav vite -D
  1. Add the plugin
// .vitepress/config.ts
import AutoNav from “vite-plugin-vitepress-auto-nav”;

export default defineConfig({
  vite: {
    plugins: [
      AutoNav({
        // Custom configurations
      })
    ]
  }
});
  1. Start the project normally and it's ready to use

Configuration

Please refer to the TypeScript type hints

License

MIT License © 2023 Xaviw