summaryrefslogtreecommitdiff
path: root/Documentation/source/zh_CN/reference.rst
diff options
context:
space:
mode:
authorBertrand Yuan <189593334+bertyuan@users.noreply.github.com>2026-04-27 20:54:16 +0800
committerGitHub <noreply@github.com>2026-04-27 20:54:16 +0800
commit85b6fb59db5fe1112c58eff9d02ae4f9c9b6456d (patch)
tree8c83fc84bd9547630e6733929dec77e102e055a8 /Documentation/source/zh_CN/reference.rst
parent658798b3a2378bb6df16cfbb16d707c6fb719e1e (diff)
parentdbb5e791f0c228369605d126dd590962ebe1eddc (diff)
Merge pull request #21 from bertyuan/Documentationv1.2
docs: add comprehensive documentation for operations
Diffstat (limited to 'Documentation/source/zh_CN/reference.rst')
-rw-r--r--Documentation/source/zh_CN/reference.rst57
1 files changed, 57 insertions, 0 deletions
diff --git a/Documentation/source/zh_CN/reference.rst b/Documentation/source/zh_CN/reference.rst
new file mode 100644
index 0000000..c295315
--- /dev/null
+++ b/Documentation/source/zh_CN/reference.rst
@@ -0,0 +1,57 @@
+参考
+====
+
+常用命令
+--------
+
+.. list-table::
+ :header-rows: 1
+ :widths: 26 50
+
+ * - 命令
+ - 说明
+ * - ``pnpm dev``
+ - 启动开发服务器。
+ * - ``pnpm build``
+ - 构建生产应用。
+ * - ``pnpm lint``
+ - 运行内容链接校验和 Biome lint。
+ * - ``pnpm test``
+ - 运行测试。
+ * - ``pnpm db:migrate``
+ - 应用 Drizzle 迁移。
+ * - ``pnpm payload:generate``
+ - 生成 Payload TypeScript 类型。
+
+路由
+----
+
+.. code-block:: text
+
+ /
+ /posts
+ /posts/[slug]
+ /tags
+ /tags/[tag]
+ /about
+ /login
+ /admin
+ /api/auth/[...all]
+ /api/comments/[...comment]
+ /api/search
+ /rss.xml
+
+术语
+----
+
+Payload
+ 管理文章、用户、媒体和后台界面的 CMS。
+
+Drizzle
+ 管理应用自有数据库表的 TypeScript ORM。
+
+better-auth
+ 提供 OAuth 和会话能力的认证库。
+
+BlogPost
+ ``src/lib/payload-posts.ts`` 返回的前端规范化文章结构。