Skip to content

Configuration

Config File

VitePress configuration file is located at .vitepress/config.mts.

Site Config

Basic Config

ts
export default defineConfig({
  title: "Site Title",
  description: "Site Description",
  lang: 'en-US',
})

Theme Config

ts
themeConfig: {
  nav: [
    { text: 'Home', link: '/' },
    { text: 'Guide', link: '/guide/' }
  ]
}
ts
themeConfig: {
  sidebar: [
    {
      text: 'Guide',
      items: [
        { text: 'Getting Started', link: '/guide/getting-started' }
      ]
    }
  ]
}
ts
themeConfig: {
  socialLinks: [
    { icon: 'github', link: 'https://github.com/' }
  ]
}

Page Config

Configure pages using frontmatter at the top of Markdown files:

yaml
---
layout: doc
title: Page Title
---

More Config

Visit VitePress Documentation for more configuration options.

Exploring AI-Driven Development Workflow