import{_ as s,c as e,o as t,a}from"./app.54944ef9.js";const h='{"title":"Getting Started","description":"","frontmatter":{},"headers":[],"relativePath":"guide/getting-started.md","lastUpdated":1652768268000}',n={},o=a(`
This section will help you build a basic VitePress documentation site from ground up. If you already have an existing project and would like to keep documentation inside the project, start from Step 3.
Step. 1: Create and change into a new directory.
$ mkdir vitepress-starter && cd vitepress-starter
Step. 2: Initialize with your preferred package manager.
$ yarn init
Step. 3: Install VitePress locally.
$ yarn add --dev vitepress
Step. 4: Create your first document.
$ mkdir docs && echo '# Hello VitePress' > docs/index.md
Step. 5: Add some scripts to package.json
.
{
"scripts": {
"docs:dev": "vitepress dev docs",
"docs:build": "vitepress build docs",
"docs:serve": "vitepress serve docs"
}
}
Step. 6: Serve the documentation site in the local server.
$ yarn docs:dev
VitePress will start a hot-reloading development server at http://localhost:3000
.
By now, you should have a basic but functional VitePress documentation site.
When your documentation site starts to take shape, be sure to read the deployment guide.
`,5),p=[o];function r(i,c,d,l,u,g){return t(),e("div",null,p)}var v=s(n,[["render",r]]);export{h as __pageData,v as default};