---
title: "快速开始"
description: "在本地启动 Micro Docs，修改首页并预览生产构建。"
---

> Documentation Index
> Fetch the complete documentation index at: https://docs.microcharon.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# 快速开始

## 安装与启动 {#setup}

使用 Node.js 24 和 pnpm。在项目目录运行下面的命令，打开终端给出的本地地址。

```sh
pnpm install
pnpm dev
```

## 修改首页 {#edit}

打开 `src/content/docs/index.mdx`，修改正文后保存。开发服务器会自动刷新页面。要添加一篇独立的文档，请参阅[编写文档](https://docs.microcharon.dev/guides/writing/)。

## 预览生产构建 {#preview}

```sh
pnpm build
pnpm preview
```

> **什么时候可以全文搜索？**
>
> Pagefind 在生产构建时生成索引。请在生产预览里按 `Ctrl+K`（macOS 为 `⌘K`），搜索“部署”或 “Pagefind”。

通过生产预览后，可以[部署到 Vercel](https://docs.microcharon.dev/guides/deploy/)。

Source: https://docs.microcharon.dev/guides/index.mdx
