A personal knowledge base built with VitePress, inspired by fe-docs.
- 📝 Markdown-based - Write content in Markdown
- 🔍 Full-text Search - Built-in local search
- 🎨 Clean Design - Minimal and fast
- 📱 Responsive - Works on all devices
- 🌐 Bilingual - English and Chinese language support
- 📚 Organized Structure - Components, Hooks, Utils, Standards, Incidents
# Install dependencies
pnpm install# Start development server (port 8888)
pnpm dev
# Or use the explicit command
pnpm docs:devThe documentation site will be available at http://localhost:8888.
# Build for production
pnpm docs:build# Preview production build locally
pnpm docs:previewvitepress-notes/
├── docs/
│ ├── .vitepress/
│ │ ├── config.mts # VitePress configuration
│ │ └── sidebar/ # Sidebar configurations
│ │ ├── index.ts
│ │ ├── enSidebar.ts
│ │ └── zhSidebar.ts
│ ├── public/ # Static assets
│ │ └── favicon.svg
│ ├── posts/ # Documentation posts (English)
│ │ ├── components/ # React components
│ │ ├── hooks/ # Custom React hooks
│ │ ├── utils/ # Utility functions
│ │ ├── standard/ # Development standards
│ │ └── incidents/ # Incident postmortem
│ ├── zh/ # Chinese version
│ │ └── posts/ # Same structure as /posts
│ └── index.md # Home page
├── package.json
└── README.md
- Create a new
.mdfile in the appropriate directory underdocs/posts/ordocs/zh/posts/ - Add your content in Markdown format
- Update the sidebar in
docs/.vitepress/sidebar/enSidebar.tsorzhSidebar.ts
- Create
docs/posts/hooks/use-custom-hook.md - Add to
docs/.vitepress/sidebar/enSidebar.ts:'/posts/hooks/': [ { text: 'Hooks', items: [ { text: 'Introduction', link: '/posts/hooks/index.md' }, { text: 'useCustomHook', link: '/posts/hooks/use-custom-hook.md' } ] } ]
Edit docs/.vitepress/config.mts to customize:
- Site title and description
- Navigation menu
- Theme settings
- Social links
Edit sidebar files to customize:
docs/.vitepress/sidebar/enSidebar.ts- English sidebardocs/.vitepress/sidebar/zhSidebar.ts- Chinese sidebar
MIT