Examples & Showcase
Learn from real-world VitePress implementations and explore sites built with VitePress.Official Examples
VitePress Documentation
The official VitePress documentation site - the best reference implementation.
Vue.js Documentation
The official Vue.js documentation, built with VitePress.
Vite Documentation
Vite’s official documentation site using VitePress.
Vitest Documentation
Vitest testing framework documentation.
Getting Started Examples
Basic Site Setup
A minimal VitePress site structure:Home Page with Hero
docs/index.md:Custom Theme Example
Extending the default theme: docs/.vitepress/theme/index.ts:Advanced Examples
Multi-language Site
config.ts:Dynamic Routes with Data Loading
docs/.vitepress/config.ts:Content Collections with createContentLoader
docs/.vitepress/theme/posts.data.ts:Algolia DocSearch Integration
config.ts:Local Search Implementation
config.ts:Real-world Sites Built with VitePress
Vue.js
Progressive JavaScript Framework documentation
Vite
Next Generation Frontend Tooling
Vitest
Blazing Fast Unit Test Framework
Rollup
JavaScript module bundler
UnoCSS
Instant On-demand Atomic CSS Engine
Pinia
The Vue Store that you will enjoy using
Code Examples
Using Vue Components in Markdown
docs/.vitepress/theme/components/Counter.vue:Custom Markdown Container
config.ts:Syntax Highlighting with Shiki
config.ts:Project Templates
Minimal Template
Quickly scaffold a new VitePress site:- Installation directory
- Site title
- Description
- Default theme customization
Monorepo Setup
For projects with multiple packages:Tips & Best Practices
Optimize Build Performance
Optimize Build Performance
For large documentation sites:
SEO Optimization
SEO Optimization
Improve SEO with proper meta tags:
Custom 404 Page
Custom 404 Page
Create a branded 404 experience:docs/.vitepress/theme/NotFound.vue:
Learning Resources
- Official Docs: vitepress.dev
- GitHub Repository: vuejs/vitepress
- Examples in the Wild: Browse the sites using VitePress
- Community Discord: chat.vuejs.org
Have a VitePress site you’d like to showcase? Share it in the VitePress discussions!