VitePress is a static site generator built for documentation. It takes Markdown files and turns them into a fast, good-looking docs site — with search, navigation, and dark mode included. If you can write Markdown, you can build a docs site with VitePress.

Why VitePress exists

Good documentation needs three things: it must be easy to write, easy to navigate, and fast to load. VitePress delivers all three. You write in Markdown, it handles the rest — the sidebar, the table of contents, the search box, and the theme. And because it is built on Vite, the development server starts instantly and rebuilds in milliseconds.

Your first docs site

Install it and create your first page:

npm add -D vitepress 
# Getting Started  Welcome to my project. This page is written in Markdown. ## Installation  Run the command below to install it. 


bash
npm install my-project


javascript

That is already a complete page. Add a config file for the sidebar and navigation:

// .vitepress/config.js export default { title: "My Project", themeConfig: { nav: [{ text: "Guide", link: "/guide" }], sidebar: [{ text: "Guide", items: [{ text: "Getting Started", link: "/guide" }] }], }, }; 

What you get for free

VitePress includes local search, so visitors can find pages without any extra service. It supports code blocks with syntax highlighting and line numbers, custom containers for tips and warnings, and Vue components inside Markdown when you need something interactive.

::: tip This is a tip box. Use it for helpful advice. ::: 

When to choose VitePress

Pick VitePress for project documentation, a knowledge base, or a technical blog. It is the tool behind the official Vue.js documentation, which is a good sign of how far it scales. For a marketing site or a store, a more general framework is a better fit.

What to try next

Convert the README of one of your projects into a three-page VitePress site with a sidebar and search. It takes less than an hour, and you will have documentation people actually enjoy reading.