3.0.0 • Published 1 year ago
vite-plugin-vitepress-auto-nav v3.0.0
vite-plugin-vitepress-auto-nav
Auto-generate VitePress nav and sidebar configurations.
✨ Features
- Use primary folder as
navand secondary folder and files assidebar - Automatic refresh after changing plugin configuration or
frontmatter. - Support for customizing read ranges (based on
srcDirandsrcExcludeconfigurations). - Support to customize whether the
index.mdunder the sub-folder is displayed separately or by clicking the folder name. - Support for customizing the display name, articles also support the first level of the title as the name.
- Support for customizing the sorting method
- Support for customizing hidden files or folders
- Supports both plugin options and article
frontmatterconfigurations to customize article configurations (configured attribute names also support adding prefixes). - Support for using the same
GitbookSUMMARY.mdfile as thesidebarconfiguration.
🕯️ Usage
- Install
# Installing vite is recommended when using ts, otherwise you will get type errors.
pnpm i vite-plugin-vitepress-auto-nav vite -D- Add the plugin
// .vitepress/config.ts
import AutoNav from “vite-plugin-vitepress-auto-nav”;
export default defineConfig({
vite: {
plugins: [
AutoNav({
// Custom configurations
})
]
}
});- Start the project normally and it's ready to use
Configuration
Please refer to the TypeScript type hints
License
2.3.2
1 year ago
2.3.3
1 year ago
3.0.0
1 year ago
2.3.1
1 year ago
2.3.0
1 year ago
2.2.2
2 years ago
2.2.1
2 years ago
2.2.0
2 years ago
2.1.3
2 years ago
2.1.2
2 years ago
2.1.0
2 years ago
2.0.0
2 years ago
1.3.3
2 years ago
1.3.0
2 years ago
1.2.3
2 years ago
1.2.2
2 years ago
1.2.1
2 years ago
1.2.0
2 years ago
1.1.0
2 years ago
1.0.4
2 years ago
1.0.3
2 years ago
1.0.2
2 years ago
1.0.1
2 years ago
1.0.0
2 years ago