mirror of
https://github.com/testthedocs/awesome-docs.git
synced 2026-07-16 14:31:25 -05:00
Move topic pages to section index routes, standardize card-based content presentation, and simplify metadata typing while improving local search indexing for EnhancedLink entries. Refresh theme styling and replace unstable external links to keep metadata builds reliable.
2.5 KiB
2.5 KiB
VitePress Documentation Setup
This branch contains a complete VitePress documentation setup for the Awesome Docs project.
Structure
docs/
├── .vitepress/
│ ├── config.mjs # VitePress config and local search setup
│ ├── plugins/ # Build-time link metadata fetch/cache
│ └── theme/ # EnhancedLink components and theme overrides
├── index.md # Landing page
├── guide.md # Getting started guide
├── generators/index.md # Static site generators
├── api/index.md # API documentation tools
├── quality/index.md # QA and linting tools
├── writing/index.md # Writing and editing tools
├── style-guides/index.md # Style guide collections
├── reading/index.md # Reading and learning resources
├── tools/index.md # Additional utilities
└── ai/ # AI-focused docs pages
Quick Start
-
Install dependencies
pnpm install -
Start development server
pnpm docs:devThe site will be available at
http://localhost:5173/ -
Build for production
pnpm docs:build -
Preview production build
pnpm docs:preview
Features Included
- ✅ Modern VitePress setup with ES modules
- ✅ Navigation and sidebar configuration
- ✅ Example pages with proper structure
- ✅ GitHub social link integration
- ✅ Responsive design
- ✅ Built-in search functionality
- ✅ Search indexing for
EnhancedLinkcards - ✅ Hot reload during development
- ✅ Build-time metadata cache for rich link cards
Configuration
The main configuration is in docs/.vitepress/config.mjs. You can customize:
- Site title and description
- Navigation menu
- Sidebar structure
- Theme settings
- Social links
Adding Content
To add new pages:
- Create a new
.mdfile in thedocs/directory or subdirectories - Update the sidebar configuration in
config.mjsif needed - The page will be automatically available at the corresponding route
Deployment
This setup is ready for deployment to platforms like:
- Netlify
- Vercel
- GitHub Pages
- Azure Static Web Apps
The build output will be in docs/.vitepress/dist/ after running pnpm docs:build.