From 05349b262859298d6a685488af1c706003c62dee Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=A5=80=E6=A2=A6?= <3501646051@qq.com> Date: Sat, 28 Mar 2026 23:48:12 +0800 Subject: [PATCH] =?UTF-8?q?chore:=20Cursor=20=E8=A7=84=E5=88=99=E8=AF=B4?= =?UTF-8?q?=E6=98=8E=E5=8F=8C=E4=BB=93=E5=BA=93=E4=B8=8E=E6=9C=AC=E5=9C=B0?= =?UTF-8?q?=E6=9E=84=E5=BB=BA=E5=8F=91=E5=B8=83=E6=B5=81=E7=A8=8B=EF=BC=8C?= =?UTF-8?q?=E5=B9=B6=E5=BF=BD=E7=95=A5=E6=9C=AC=E5=9C=B0=20PROJECT=5FBRIEF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Made-with: Cursor --- .../rules/si-meng-repo-and-deploy-context.mdc | 17 +++++++++++++++++ .gitignore | 3 +++ 2 files changed, 20 insertions(+) create mode 100644 .cursor/rules/si-meng-repo-and-deploy-context.mdc diff --git a/.cursor/rules/si-meng-repo-and-deploy-context.mdc b/.cursor/rules/si-meng-repo-and-deploy-context.mdc new file mode 100644 index 0000000..1e9f007 --- /dev/null +++ b/.cursor/rules/si-meng-repo-and-deploy-context.mdc @@ -0,0 +1,17 @@ +--- +description: 双仓库结构、本地构建与发布流程;启动时加载项目上下文 +alwaysApply: true +--- + +# SiMengWebSite_Notes — 仓库与部署上下文 + +在开始涉及 **构建、发布、静态资源路径、`_publish`** 或 **多仓库** 的任务前,请先阅读仓库根目录的 **`PROJECT_BRIEF.local.md`**(若存在)。该文件为本地说明,不进入 Git,含完整背景与命令示例。 + +## 速记(无本地文件时的兜底) + +- **源码仓**:仓库根目录 → 远程示例 `SiMengWebSite_Notes.git`;日常开发与提交 Markdown / VuePress 配置。 +- **构建仓**:**`_publish/`** 内为 **独立 Git 仓库** → 远程示例 `build_notes_simengweb.git`;**只提交** `npm run docs:build` 产出(`docs/.vuepress/dist` 的内容同步至此)。 +- **原因**:业务服务器性能不足,**不在线上构建**;本地构建后推送构建仓,**服务器拉取更新**即可换页。 +- **`_publish/`** 与 **`PROJECT_BRIEF.local.md`** 已被根目录 `.gitignore` 忽略,勿把构建产物或该简介误提交进源码仓。 + +若缺少 `PROJECT_BRIEF.local.md`,可向维护者索取模板或根据上述速记操作,避免在源码仓中提交 `dist` 或误改发布仓历史。 diff --git a/.gitignore b/.gitignore index 6ac00d6..e8e9ea9 100644 --- a/.gitignore +++ b/.gitignore @@ -8,6 +8,9 @@ docs/.vuepress/dist .DS_Store *.log +# Local project brief for agents (do not commit) +PROJECT_BRIEF.local.md + # Build and Publish output _publish/