From aec98b984f74cf0bc426b8ff0f1f4d6053f2e00b Mon Sep 17 00:00:00 2001 From: Wuchuyuan <1917507415@qq.com> Date: Wed, 19 Aug 2026 17:58:14 +0800 Subject: [PATCH] =?UTF-8?q?docs:=20=E5=85=8B=E9=9A=86=E5=9C=B0=E5=9D=80?= =?UTF-8?q?=E6=94=B9=E4=B8=BA=E7=A0=81=E4=BA=91=E9=95=9C=E5=83=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Cursor --- README.md | 14 +++++++++----- docs/branch-index.md | 11 ++++++----- 2 files changed, 15 insertions(+), 10 deletions(-) diff --git a/README.md b/README.md index 134fbda..2676934 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,8 @@ 见宝科技 **MCU 代码生成模板仓库**。见宝工具箱生成/分发 MCU 工程时,从此仓库按分支拉取对应芯片模板。 -**远程地址:** https://git.jianbao-tech.com/pets-device/mcu-codegen-template.git +**主仓库(见宝 Git):** +**码云镜像(推荐下载):** --- @@ -24,8 +25,8 @@ ## 快速使用 ```bash -# 克隆并切换到 PY32F040 模板 -git clone https://git.jianbao-tech.com/pets-device/mcu-codegen-template.git +# 推荐:从码云镜像克隆并切换到 PY32F040 模板 +git clone https://gitee.com/wu-chuyuan/mcu-codegen-template.git cd mcu-codegen-template git checkout Puya-PY32F040 ``` @@ -36,7 +37,7 @@ git checkout Puya-PY32F040 ## 仓库结构(MCU 分支通用) -``` +```text / ├── App/ APP Keil 工程 ├── Bootloader/ Bootloader Keil 工程 @@ -52,10 +53,13 @@ git checkout Puya-PY32F040 - 新增 MCU:新建 `厂商-型号` 分支,更新 `docs/branch-index.md` 与本 README 表格 - 模板发版:在对应 MCU 分支打 tag,如 `Puya-PY32F040/v1.0.0` +- 推送:本地 `origin` 已配置双写,`git push origin` 会同时推到见宝 Git 与码云镜像 --- ## 相关链接 - [分支索引详情](docs/branch-index.md) -- [Gitea 仓库](https://git.jianbao-tech.com/pets-device/mcu-codegen-template) +- [码云镜像(推荐下载)](https://gitee.com/wu-chuyuan/mcu-codegen-template) +- [见宝 Git 主仓库](https://git.jianbao-tech.com/pets-device/mcu-codegen-template) +- [SOC 模板仓库](https://git.jianbao-tech.com/pets-device/soc-codegen-template) diff --git a/docs/branch-index.md b/docs/branch-index.md index f7460a6..809c5c6 100644 --- a/docs/branch-index.md +++ b/docs/branch-index.md @@ -2,7 +2,8 @@ 本仓库按 **「厂商-型号」** 组织分支,每个分支是一套完整的 MCU 工程模板(默认含 OTA + Bootloader)。 -远程仓库:[mcu-codegen-template](https://git.jianbao-tech.com/pets-device/mcu-codegen-template) +- 主仓库:[见宝 Git](https://git.jianbao-tech.com/pets-device/mcu-codegen-template) +- 码云镜像(推荐下载):[gitee.com/wu-chuyuan/mcu-codegen-template](https://gitee.com/wu-chuyuan/mcu-codegen-template) --- @@ -10,7 +11,7 @@ | 分支 | 厂商 | 型号 | Flash | 默认能力 | 状态 | |------|------|------|-------|----------|------| -| [`Puya-PY32F040`](https://git.jianbao-tech.com/pets-device/mcu-codegen-template/src/branch/Puya-PY32F040) | 普冉 Puya | PY32F040 | 128KB | OTA 三模式 + Bootloader + jb_protocol | ✅ 可用 | +| [`Puya-PY32F040`](https://gitee.com/wu-chuyuan/mcu-codegen-template/tree/Puya-PY32F040) | 普冉 Puya | PY32F040 | 128KB | OTA 三模式 + Bootloader + jb_protocol | ✅ 可用 | > 新模板上线后在此表追加一行即可。 @@ -21,7 +22,7 @@ ### 见宝工具箱 / 自动化脚本 ```bash -git clone https://git.jianbao-tech.com/pets-device/mcu-codegen-template.git +git clone https://gitee.com/wu-chuyuan/mcu-codegen-template.git cd mcu-codegen-template git checkout Puya-PY32F040 ``` @@ -30,7 +31,7 @@ git checkout Puya-PY32F040 ```bash git clone --branch Puya-PY32F040 --single-branch \ - https://git.jianbao-tech.com/pets-device/mcu-codegen-template.git py32f040-template + https://gitee.com/wu-chuyuan/mcu-codegen-template.git py32f040-template ``` --- @@ -53,7 +54,7 @@ git clone --branch Puya-PY32F040 --single-branch \ 1. 从 `main` 拉新分支:`git checkout -b <厂商>-<型号> main` 2. 合入该 MCU 完整工程(App + Bootloader + Shared + Drivers + tools) 3. 更新本文件分支表 + `main/README.md` 快速索引 -4. 推送分支并在 Gitea 设为受保护分支(可选) +4. `git push origin` 会同时推到见宝 Git 与码云镜像 ---