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

# 开发

> 参与 Rust 分析器开发，以及本地预览本 Mintlify 文档站。

## Rust 项目（分析器）

在 **`polymarket-account-analyzer/`** 目录：

```bash theme={null}
cargo test
cargo clippy
cargo build --release
```

回归与合并相关测试见 `tests/`。配置、子图与 PG 迁移说明以仓库根目录 **README** 为准。

## 本文档站（Mintlify）

编辑 **`documents/`** 下的 MDX 与 **`docs.json`** 后，本地预览：

<Steps>
  <Step title="安装 CLI">
    ```bash theme={null}
    npm i -g mint
    ```
  </Step>

  <Step title="在 documents 目录启动预览">
    ```bash theme={null}
    cd documents
    mint dev
    ```

    默认 \*\*[http://localhost:3000\*\*（若端口占用会自动递增）。](http://localhost:3000**（若端口占用会自动递增）。)
  </Step>
</Steps>

可选：`mint dev --port 3333`、`mint broken-links` 检查死链。

<Tip>
  分析器 API 默认也使用 **3000** 端口；同时跑 **`serve`** 与 **`mint dev`** 时请为其中之一换端口，避免冲突。
</Tip>

## 部署文档

将 **`documents`** 推送到已连接 [Mintlify](https://mintlify.com) 的仓库后，由 Mintlify 托管构建与发布；具体以你方组织在 Mintlify Dashboard 中的项目设置为准。
