diff --git a/README.mbt.md b/README.mbt.md index 5190a21..325dc43 100644 --- a/README.mbt.md +++ b/README.mbt.md @@ -8,6 +8,17 @@ A runtime JSON schema validation library for MoonBit, inspired by [Zod](https:// --- +## Documents + +| Document | Description | +|---|---| +| [API Reference](./docs/en/API.md) | Detailed API documentation | +| [CLI Reference](./docs/en/CLI.md) | Command-line usage | +| [Benchmark](./docs/en/BENCHMARK.md) | Performance comparison with other validation libraries | +| [Examples](./docs/en/EXAMPLES.md) | Practical usage examples | + +--- + ## ✨ Why MoonZod? (AI-First) | Feature | moon_zod | Typical Validation | @@ -206,12 +217,7 @@ moon run examples/json2schema # JSON → moon_zod schema --- -| Document | Description | -|---|---| -| [API Reference](./docs/en/API.md) | Detailed API documentation | -| [CLI Reference](./docs/en/CLI.md) | Command-line usage | -| [Benchmark](./docs/en/BENCHMARK.md) | Performance comparison with other validation libraries | -| [Examples](./docs/en/EXAMPLES.md) | Practical usage examples | +--- ## Learn More diff --git a/README_zh.mbt.md b/README_zh.mbt.md index 12094d4..677bb3f 100644 --- a/README_zh.mbt.md +++ b/README_zh.mbt.md @@ -8,6 +8,17 @@ MoonBit 运行时 JSON Schema 校验库,受 [Zod](https://zod.dev) 和 [Pydant --- +## 文档 + +| 文档 | 说明 | +|---|---| +| [API 参考](./docs/zh/API.md) | 详细的 API 文档 | +| [CLI 参考](./docs/zh/CLI.md) | 命令行使用说明 | +| [性能基准](./docs/zh/BENCHMARK.md) | 与其他校验库的性能对比 | +| [使用示例](./docs/zh/EXAMPLES.md) | 实际使用示例 | + +--- + ## ✨ 为什么选择 MoonZod?(AI 优先) | 特性 | moon_zod | 典型校验库 | @@ -201,12 +212,7 @@ moon run examples/json2schema # JSON → moon_zod Schema - `schema_to_moonbit_struct(schema)` —— 为每个对象/枚举 schema 生成 MoonBit struct/enum 定义 - `schema_to_moonbit_struct_full(schema)` —— 生成定义并附加静态 `Type::to_schema()` 函数 -| 文档 | 说明 | -|---|---| -| [API 参考](./docs/zh/API.md) | 详细的 API 文档 | -| [CLI 参考](./docs/zh/CLI.md) | 命令行使用说明 | -| [性能基准](./docs/zh/BENCHMARK.md) | 与其他校验库的性能对比 | -| [使用示例](./docs/zh/EXAMPLES.md) | 实际使用示例 | +--- ## 了解更多 diff --git a/docs/en/README_TEMPLATE.md b/docs/en/README_TEMPLATE.md index 47e135d..c2d87d9 100644 --- a/docs/en/README_TEMPLATE.md +++ b/docs/en/README_TEMPLATE.md @@ -8,7 +8,7 @@ A runtime JSON schema validation library for MoonBit, inspired by [Zod](https:// --- -@include "INFO.md" +## Documents | Document | Description | |---|---| @@ -17,6 +17,12 @@ A runtime JSON schema validation library for MoonBit, inspired by [Zod](https:// | [Benchmark](./docs/en/BENCHMARK.md) | Performance comparison with other validation libraries | | [Examples](./docs/en/EXAMPLES.md) | Practical usage examples | +--- + +@include "INFO.md" + +--- + ## Learn More - [DESIGN.md](./DESIGN.md) for architecture, design decisions, and future directions. diff --git a/docs/zh/README_TEMPLATE.md b/docs/zh/README_TEMPLATE.md index 4646dcb..d1103ed 100644 --- a/docs/zh/README_TEMPLATE.md +++ b/docs/zh/README_TEMPLATE.md @@ -8,7 +8,7 @@ MoonBit 运行时 JSON Schema 校验库,受 [Zod](https://zod.dev) 和 [Pydant --- -@include "INFO.md" +## 文档 | 文档 | 说明 | |---|---| @@ -17,6 +17,12 @@ MoonBit 运行时 JSON Schema 校验库,受 [Zod](https://zod.dev) 和 [Pydant | [性能基准](./docs/zh/BENCHMARK.md) | 与其他校验库的性能对比 | | [使用示例](./docs/zh/EXAMPLES.md) | 实际使用示例 | +--- + +@include "INFO.md" + +--- + ## 了解更多 - [架构设计文档](./DESIGN.md) — 核心架构、设计决策与未来方向