@jxpeng98/vitepress-outline-plus
v1.0.1
Published
Enhanced outline components for VitePress supporting mixed Markdown/HTML headings across breakpoints.
Readme
vitepress-outline-plus
Custom outline composable and components for VitePress that gather both Markdown and raw HTML headings, keep the active marker in sync on desktop/mobile, and share a consistent visual style.
Local development
# keep a local type-checker running
pnpm --filter vitepress-outline-plus dev
# compile runtime JS + d.ts output into dist/
pnpm --filter vitepress-outline-plus buildUsage
// .vitepress/config.ts
import { defineConfig } from 'vitepress'
import { outlinePlus } from 'vitepress-outline-plus'
export default defineConfig({
vite: {
plugins: [outlinePlus()]
}
})Exports
outlinePlusfrom the package rootOutlinePlusPluginOptionstypes from the package rootOutlineItemtypes fromvitepress-outline-plus/useOutlineuseOutline,useActiveAnchorfromvitepress-outline-plus/useOutline- Vue SFCs from their explicit entry points:
vitepress-outline-plus/CustomAsideOutline.vuevitepress-outline-plus/CustomOutlineItem.vuevitepress-outline-plus/CustomLocalNavOutlineDropdown.vue
Publishing
- Make sure dependencies are installed (
pnpm install). - Run
pnpm --filter vitepress-outline-plus buildto refresh thedist/folder. - Inspect
dist/to confirm the generated.js,.d.ts, and copied.vuefiles look correct. - Publish from the package directory with your preferred client, for example:
(Usecd packages/outline-plus npm publish --access publicpnpm publish --filter vitepress-outline-plusif you prefer pnpm’s workflow.)
The published tarball only exposes the compiled dist/ artefacts, so consumers never touch the TypeScript sources inside your monorepo.
