You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
vitepress/docs/zh/guide/configuration.md

963 B

配置

当没有任何配置的时候,页面将非常轻量,但用户也无法通过导航去访问站点。要自定义站点,首先在 docs 目录里创建一个 .vitepress 目录。 这是放置所有 VitePress 特定文件的地方。 这时候你的项目结构大概是这样的:

.
├─ docs
│  ├─ .vitepress
│  │  └─ config.js
│  └─ index.md
└─ package.json

配置 VitePress 站点的基本文件是 .vitepress/config.js,它应该导出一个 JavaScript 对象:

export default {
  title: 'VitePress',
  description: 'Just playing around.'
}

在上面的示例中,该站点使用 VitePress 作为标题,Just play around. 作为站点的描述。

主题:介绍里了解有关 VitePress 功能特性,以了解如何在此配置文件中配置特定功能。

你还可以在配置中找到所有配置项。