From 1ccd910116dfe167e48e5f7c2d661d741fcf1ee4 Mon Sep 17 00:00:00 2001 From: 15972095207 <2484216370@qq.com> Date: Mon, 11 May 2026 16:30:22 +0800 Subject: [PATCH 01/53] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E9=94=99=E5=88=AB?= =?UTF-8?q?=E5=AD=97=EF=BC=8C=E6=96=87=E5=AD=97=E9=87=8D=E5=A4=8D=EF=BC=8C?= =?UTF-8?q?=E6=8C=89=E9=92=AE=E5=90=8D=E7=A7=B0=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/代码库管理/代码提交.md | 4 ++-- docs/代码库管理/分支管理.md | 4 ++-- docs/代码库管理/成员管理.md | 12 ++++++------ docs/快速开始/提交第一行代码.md | 2 +- 4 files changed, 11 insertions(+), 11 deletions(-) diff --git a/docs/代码库管理/代码提交.md b/docs/代码库管理/代码提交.md index 441021c..72f7df7 100644 --- a/docs/代码库管理/代码提交.md +++ b/docs/代码库管理/代码提交.md @@ -5,7 +5,7 @@ sidebar_position: 3 ### **1. 代码提交入口** 用户可以通过项目代码库中间的文件下的“上传文件”按键来上传文件。 ![](../../static/img/代码库管理/代码提交/上传文件入口.png)
- + ### **2. 上传文件** -进入上传文件页面后,如下图所示,拖动文件,选择提交变更的分支的单击”创建项目“按键即可完成创建。 +进入上传文件页面后,如下图所示,拖动文件,选择提交变更的分支的单击”提交变更“按键即可完成提交。 ![](../../static/img/代码库管理/代码提交/上传文件.png)
\ No newline at end of file diff --git a/docs/代码库管理/分支管理.md b/docs/代码库管理/分支管理.md index ff803a5..72efd0b 100644 --- a/docs/代码库管理/分支管理.md +++ b/docs/代码库管理/分支管理.md @@ -5,9 +5,9 @@ sidebar_position: 5 ### **1. 查看分支** 在代码库栏下,如下图所示,用户可以点击代码库分支从而查看当前项目的所有分支,并且选择对其进行操作。 ![](../../static/img/代码库管理/分支管理/分支管理方式1.jpg)
- + ### **2. 合并分支** -在“和并请求(PR)”下点击“新建合并请求”后, +在“合并请求(PR)”下点击“新建合并请求”后, ![](../../static/img/代码库管理/分支管理/分支管理方式3.png)
如下图所示,用户可以选择源分支与目标分支以及填写分支信息后提交分支合并请求。 ![](../../static/img/代码库管理/分支管理/分支管理方式2.png)
\ No newline at end of file diff --git a/docs/代码库管理/成员管理.md b/docs/代码库管理/成员管理.md index cbf6199..d1ba3dc 100644 --- a/docs/代码库管理/成员管理.md +++ b/docs/代码库管理/成员管理.md @@ -5,19 +5,19 @@ sidebar_position: 7 ### **1. 成员管理入口** 在仓库主页,点击“仓库设置”按键,再点击”成员管理“按键,即可进入成员管理模块,如下图所示。 ![](../../static/img/代码库管理/成员管理/成员管理入口.png)
- + ### **2. 筛选、搜索项目成员** 进入成员管理模块后,可以通过”角色筛选“按键来筛选项目成员类型,通过”搜索“按键可以检索具体的项目成员,如下图所示。 ![](../../static/img/代码库管理/成员管理/筛选、搜索项目成员.png)
- -### **3. 筛选、搜索项目成员** + +### **3. 添加项目成员** 进入成员管理模块后,可以通过”添加成员“按键来添加项目成员,左侧搜索框检索到具体用户并选中后,单击”添加成员“按键即可成功添加项目成员。 ![](../../static/img/代码库管理/成员管理/添加成员.png)
- + ### **4. 项目成员权限管理** 进入成员管理模块后,单击项目成员右侧的角色栏,可以选择赋予该名项目成员的权限等级,如下图所示。 ![](../../static/img/代码库管理/成员管理/项目成员权限管理.png)
- + ### **5. 删除项目成员** -进入成员管理模块后,单击项目成员右侧的”删除“按键,可以删除改名项目成员,如下图所示。 +进入成员管理模块后,单击项目成员右侧的”删除“按键,可以删除该名项目成员,如下图所示。 ![](../../static/img/代码库管理/成员管理/删除项目成员.png)
diff --git a/docs/快速开始/提交第一行代码.md b/docs/快速开始/提交第一行代码.md index 1436b02..9222014 100644 --- a/docs/快速开始/提交第一行代码.md +++ b/docs/快速开始/提交第一行代码.md @@ -19,4 +19,4 @@ sidebar_position: 3 ## 3. 代码更新成功 -提交成功后代码代码更新成功。![](/img/quickstart/first_success.png) \ No newline at end of file +提交成功后代码更新成功。![](/img/quickstart/first_success.png) \ No newline at end of file -- 2.34.1 From 4fd120a27fd8a112252e016d597994f1aa826152 Mon Sep 17 00:00:00 2001 From: 15972095207 <2484216370@qq.com> Date: Mon, 11 May 2026 16:36:03 +0800 Subject: [PATCH 02/53] =?UTF-8?q?=E4=BF=AE=E6=94=B9intro.md=E4=B8=AD?= =?UTF-8?q?=E4=BB=A3=E7=A0=81=E5=BA=93=E7=AE=A1=E7=90=86=E6=96=87=E6=A1=A3?= =?UTF-8?q?=E6=95=B0=E9=87=8F=E6=A0=87=E6=B3=A8=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/intro.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/intro.md b/docs/intro.md index f8aec7a..9c93274 100644 --- a/docs/intro.md +++ b/docs/intro.md @@ -32,7 +32,7 @@ GitLink(确实开源)是CCF官方指定的开源创新服务平台,旨在

代码库管理

-

代码库使用及设置[8个文档]

+

代码库使用及设置[9个文档]

-- 2.34.1 From 2dc1a0cee91b94daaad0cc0d550d8e377a545b39 Mon Sep 17 00:00:00 2001 From: ZxR <3193291180@qq.com> Date: Mon, 11 May 2026 19:05:48 +0800 Subject: [PATCH 03/53] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E4=BA=86sidebar=5Fposi?= =?UTF-8?q?tion=20=E9=A1=BA=E5=BA=8F=20=E7=BB=84=E7=BB=87=E7=AE=80?= =?UTF-8?q?=E4=BB=8B=E6=96=87=E6=A1=A3=E4=B8=AD=E7=9A=84=E8=AF=AD=E7=97=85?= =?UTF-8?q?=20=E8=A1=A5=E5=85=A8=E4=BA=86=E7=96=91=E4=BF=AE=E6=A0=87?= =?UTF-8?q?=E8=AE=B0=E7=B1=BB=E5=9E=8B=E6=95=B0=E6=8D=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/合并请求/代码评审.md | 4 ++-- docs/合并请求/合并模式简介.md | 2 +- docs/疑修/疑修列表.md | 2 +- docs/疑修/疑修创建.md | 3 +-- docs/疑修/疑修状态变更.md | 2 +- docs/疑修/疑修简介.md | 2 +- docs/组织管理/组织简介.md | 2 +- 7 files changed, 8 insertions(+), 9 deletions(-) diff --git a/docs/合并请求/代码评审.md b/docs/合并请求/代码评审.md index 6f99645..e057584 100644 --- a/docs/合并请求/代码评审.md +++ b/docs/合并请求/代码评审.md @@ -1,13 +1,13 @@ --- sidebar_label: '代码评审' -sidebar_position: 3 +sidebar_position: 4 --- # 代码评审 ### **1. 进入代码评审** 如下图所示,点击“代码评审”按钮可以进入代码评审 ![](../../static/img/PR/进入代码评审.png)
- + ### **2. 代码评审界面** 如下图所示,用户可以在该界面下查看该PR操作要合并的新的代码,并对其进行评审。 ![](../../static/img/PR/具体代码评审.png)
diff --git a/docs/合并请求/合并模式简介.md b/docs/合并请求/合并模式简介.md index c8d0750..76ec003 100644 --- a/docs/合并请求/合并模式简介.md +++ b/docs/合并请求/合并模式简介.md @@ -1,6 +1,6 @@ --- sidebar_label: '合并模式简介' -sidebar_position: 4 +sidebar_position: 3 --- # 合并模式简介 diff --git a/docs/疑修/疑修列表.md b/docs/疑修/疑修列表.md index 5ac8734..638b38c 100644 --- a/docs/疑修/疑修列表.md +++ b/docs/疑修/疑修列表.md @@ -1,6 +1,6 @@ --- sidebar_label: '疑修列表' -sidebar_position: 4 +sidebar_position: 2 --- # 疑修列表 diff --git a/docs/疑修/疑修创建.md b/docs/疑修/疑修创建.md index 0c2d9fe..4f351d7 100644 --- a/docs/疑修/疑修创建.md +++ b/docs/疑修/疑修创建.md @@ -1,6 +1,6 @@ --- sidebar_label: '疑修创建' -sidebar_position: 2 +sidebar_position: 3 --- # 疑修创建 @@ -18,4 +18,3 @@ sidebar_position: 2 ![](/img/Issue/imageIssue7.png) - diff --git a/docs/疑修/疑修状态变更.md b/docs/疑修/疑修状态变更.md index 7984618..2ad7d3b 100644 --- a/docs/疑修/疑修状态变更.md +++ b/docs/疑修/疑修状态变更.md @@ -1,6 +1,6 @@ --- sidebar_label: '疑修状态变更' -sidebar_position: 3 +sidebar_position: 4 --- # 疑修状态变更 diff --git a/docs/疑修/疑修简介.md b/docs/疑修/疑修简介.md index fec3dc0..c8911ce 100644 --- a/docs/疑修/疑修简介.md +++ b/docs/疑修/疑修简介.md @@ -12,6 +12,6 @@ sidebar_position: 1 1. **疑修**是一个可以追踪开发任务进度的帖子,因此支持参与者回复与评论等功能,见 ***评论及操作记录*** 一节; -2. **疑修**的默认类型(标记)包括缺陷、功能、任务、支持、周报等,具体见 ***标记管理*** 一节; +2. **疑修**的默认类型(标记)包括缺陷、功能、疑问、支持、任务、协助、搁置、文档、测试、重复等,具体见 ***标记管理*** 一节; 3. 可以为**疑修**设置开始和结束时间,并指定负责解决该任务的负责人,在疑修截止日期的前一天,系统将自动为任务的发布者和被指派人发送提醒消息。 diff --git a/docs/组织管理/组织简介.md b/docs/组织管理/组织简介.md index f12bc3a..64636ae 100644 --- a/docs/组织管理/组织简介.md +++ b/docs/组织管理/组织简介.md @@ -25,4 +25,4 @@ sidebar_position: 1 ## 作为组织成员 -您可以通过组织与无限数量的人在多个项目中协作,与志同道合的人一起,通过分工和写作,参与开发流程,发布或处理问题。 +您可以通过组织与无限数量的人在多个项目中协作,与志同道合的人一起,通过分工和协作,参与开发流程,发布或处理问题。 -- 2.34.1 From 3dc5240be9936b5809c9c3080720932ea70c3826 Mon Sep 17 00:00:00 2001 From: zhangqing <1770666340@qq.com> Date: Mon, 11 May 2026 20:20:24 +0800 Subject: [PATCH 04/53] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E9=94=99=E5=88=AB?= =?UTF-8?q?=E5=AD=97=20=E4=BF=AE=E6=94=B9hexo=E5=B7=A5=E5=85=B7=E9=85=8D?= =?UTF-8?q?=E7=BD=AE=E6=96=87=E4=BB=B6=E5=90=8D=E9=94=99=E8=AF=AF=20?= =?UTF-8?q?=E4=BF=AE=E6=94=B9WeBlDE=E6=96=87=E6=A1=A3=E9=87=8D=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/个人主页建站/建站工具.md | 2 +- docs/个人主页建站/站点创建流程.md | 2 +- docs/代码库管理/WebIDE.md | 6 +++++- docs/第三方服务/WebIDE.md | 6 +++++- docs/维基/模板导入及导出.md | 2 +- docs/维基/维基页面管理.md | 2 +- docs/通知/通知简介.md | 4 ++-- docs/通知/通知设置.md | 2 +- 8 files changed, 17 insertions(+), 9 deletions(-) diff --git a/docs/个人主页建站/建站工具.md b/docs/个人主页建站/建站工具.md index 80604fb..b393c3a 100644 --- a/docs/个人主页建站/建站工具.md +++ b/docs/个人主页建站/建站工具.md @@ -48,7 +48,7 @@ url: "http://KingChan.gitlink.net" 将值改成 个人建站服务中显示的网站地址, 例如: 现在有一个网站地址为 http://KingChan.gitlink.net -那么 _config.toml 中的 url应该为 http://KingChan.gitlink.net +那么 _config.yml 中的 url应该为 http://KingChan.gitlink.net ![img](../../static/img/建站工具9.png) diff --git a/docs/个人主页建站/站点创建流程.md b/docs/个人主页建站/站点创建流程.md index 7a73db6..64bf9a8 100644 --- a/docs/个人主页建站/站点创建流程.md +++ b/docs/个人主页建站/站点创建流程.md @@ -8,7 +8,7 @@ sidebar_position: 1 ![img](../../static/img/建站工具/1.png) -点击左测面板中 个人建站 - 我的站点 +点击左侧面板中 个人建站 - 我的站点 ![img](../../static/img/建站工具/3.png) diff --git a/docs/代码库管理/WebIDE.md b/docs/代码库管理/WebIDE.md index 33b3b06..491108d 100644 --- a/docs/代码库管理/WebIDE.md +++ b/docs/代码库管理/WebIDE.md @@ -38,4 +38,8 @@ sidebar_position: 9 ### **9. 代码在线运行** ● 集成了基于 skypack 的更加轻量的 CodeSwing 插件,可以在极速版去运行前端代码。 ● 集成了基于 Pyodide 的 Code-Runner-For-Web 插件,可以将 Python 的运行搬到浏览器上。 -![](../../static/img/代码库管理/WebIDE/WebIDE代码在线运行.png)
\ No newline at end of file +![](../../static/img/代码库管理/WebIDE/WebIDE代码在线运行.png)
+ +```markdown + > 更多关于 WebIDE 的背景介绍和核心能力说明,请参阅 [第三方服务 - WebIDE](/第三方服务/WebIDE)。 + ``` \ No newline at end of file diff --git a/docs/第三方服务/WebIDE.md b/docs/第三方服务/WebIDE.md index ac974e1..bb76cd6 100644 --- a/docs/第三方服务/WebIDE.md +++ b/docs/第三方服务/WebIDE.md @@ -119,4 +119,8 @@ Gitlink 代码阅读场景虽然接入极速版 IDE 编辑器,但文件树、 随着 Webassembly 技术的发展,一些后端语言也可以运行在浏览器里,在 2021 年 Google IO 大会上,StackBlitz 展示了他们最近做的技术:WebContainer,该能力可以将语言运行时编译为 Webassembly 从而运行在浏览器上。Code-Runner-For-Web 插件结合 Pyodide,已经将 Python 的运行搬到了浏览器上,新版极速版也默认集成了该插件。 ![](/img/di_san_fang/WebIDE/Python代码运行.png) -
Python代码运行
\ No newline at end of file +
Python代码运行
+ +```markdown + > 本文档介绍 WebIDE 的技术背景和核心能力。如需了解 WebIDE 的快速上手操作,请参阅 [代码库管理 - WebIDE](/代码库管理/WebIDE)。 + ``` \ No newline at end of file diff --git a/docs/维基/模板导入及导出.md b/docs/维基/模板导入及导出.md index 8245753..c161183 100644 --- a/docs/维基/模板导入及导出.md +++ b/docs/维基/模板导入及导出.md @@ -3,7 +3,7 @@ sidebar_label: '模板导入及导出' sidebar_position: 2 --- -# 确实开源帮助中心 +# 模板的导入及导出 ## 模板的导入及导出管理 #### 1.模板导入 diff --git a/docs/维基/维基页面管理.md b/docs/维基/维基页面管理.md index 976a092..e364801 100644 --- a/docs/维基/维基页面管理.md +++ b/docs/维基/维基页面管理.md @@ -4,7 +4,7 @@ sidebar_position: 1 --- -# 确实开源帮助中心 +# 维基界面管理 ## 维基界面管理 #### 1.维基界面 diff --git a/docs/通知/通知简介.md b/docs/通知/通知简介.md index 278389b..9f48aeb 100644 --- a/docs/通知/通知简介.md +++ b/docs/通知/通知简介.md @@ -3,7 +3,7 @@ sidebar_label: '通知简介' sidebar_position: 1 --- -# 确实开源帮助中心 +# 通知简介 ## 通知简介 #### 1.通知类型 @@ -25,5 +25,5 @@ GitLink将通知分为“系统通知”和“@我”的两种类型:
-点击通知按钮可以进入消息通知界面,“我的通知”界面可以进行“进查看未读消息”和“所有消息一键已读”的选择。 +点击通知按钮可以进入消息通知界面,“我的通知”界面可以进行“仅查看未读消息”和“所有消息一键已读”的选择。 ![](/img/notice/my_notice2.png) \ No newline at end of file diff --git a/docs/通知/通知设置.md b/docs/通知/通知设置.md index bfde209..e7ea304 100644 --- a/docs/通知/通知设置.md +++ b/docs/通知/通知设置.md @@ -4,7 +4,7 @@ sidebar_position: 2 --- -# 确实开源帮助中心 +# 通知设置 ## 通知设置 #### 1.进入通知设置界面 -- 2.34.1 From 800305b93cb6b315bab898107bddd1780f478694 Mon Sep 17 00:00:00 2001 From: 15972095207 <2484216370@qq.com> Date: Mon, 11 May 2026 20:52:29 +0800 Subject: [PATCH 05/53] =?UTF-8?q?=E9=83=A8=E7=BD=B2=E5=B8=AE=E5=8A=A9?= =?UTF-8?q?=E4=B8=AD=E5=BF=83?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .devops/部署帮助中心.yml | 51 ++++++++++++++++++++++++++++++++++ 1 file changed, 51 insertions(+) create mode 100644 .devops/部署帮助中心.yml diff --git a/.devops/部署帮助中心.yml b/.devops/部署帮助中心.yml new file mode 100644 index 0000000..d1d5858 --- /dev/null +++ b/.devops/部署帮助中心.yml @@ -0,0 +1,51 @@ + version: 2 + name: 部署帮助中心 + description: 自动构建Docker镜像并部署到阿里云ECS + + trigger: + webhook: gitlink@1.0.0 + event: + - ref: push + ruleset-operator: AND + + workflow: + - ref: start + name: 开始 + task: start@1.0.0 + + - ref: git_clone + name: 克隆代码 + task: git_clone@1.0.0 + input: + remote_url: '"https://gitlink.org.cn/ylly/gitlink_help_center.git"' + ref: '"refs/heads/master"' + commit_id: '"master"' + + - ref: docker_image_build + name: 构建Docker镜像 + task: docker_image_build@1.0.0 + input: + docker_username: ((ACR_USERNAME)) + docker_password: ((ACR_PASSWORD)) + image_name: '"crpi-3vrif0lgpchh92c8.cn-hangzhou.personal.cr.aliyuncs.com/ylly/gitlink_help_center"' + image_tag: '"latest"' + docker_file: '"/项目代码/Dockerfile"' + docker_build_path: '"/项目代码"' + + - ref: ssh_cmd + name: 部署到ECS + task: ssh_cmd@1.0.0 + input: + ssh_ip: '"223.6.254.149"' + ssh_port: '"22"' + ssh_user: '"root"' + ssh_key: ((ECS_SSH_KEY)) + ssh_cmd: >- + "docker stop gitlink_help_center || true && docker rm gitlink_help_center || true && docker pull + crpi-3vrif0lgpchh92c8.cn-hangzhou.personal.cr.aliyuncs.com/ylly/gitlink_help_center:latest && docker run -d --name + gitlink_help_center -p 3000:3000 + crpi-3vrif0lgpchh92c8.cn-hangzhou.personal.cr.aliyuncs.com/ylly/gitlink_help_center:latest" + + - ref: end + name: 结束 + task: end@1.0.0 \ No newline at end of file -- 2.34.1 From 0fdc846e3d6a952afafbba4fa0b80a9d13d46d36 Mon Sep 17 00:00:00 2001 From: ylly Date: Mon, 11 May 2026 20:58:45 +0800 Subject: [PATCH 06/53] feat: .devops/deploy_help_center.yml --- .devops/deploy_help_center.yml | 59 ++++++++++++++++++++++++++++++++++ 1 file changed, 59 insertions(+) create mode 100644 .devops/deploy_help_center.yml diff --git a/.devops/deploy_help_center.yml b/.devops/deploy_help_center.yml new file mode 100644 index 0000000..a281fbd --- /dev/null +++ b/.devops/deploy_help_center.yml @@ -0,0 +1,59 @@ + version: 2 + name: deploy_help_center + description: "" + global: + concurrent: 1 + trigger: + webhook: gitlink@1.0.0 + event: + - ref: push + ruleset-operator: AND + workflow: + - ref: start + name: 开始 + task: start + - ref: git_clone_0 + name: git clone + task: git_clone@1.2.9 + input: + remote_url: '"https://gitlink.org.cn/ylly/gitlink_help_center.git"' + ref: '"refs/heads/master"' + commit_id: '""' + depth: 1 + needs: + - start + - ref: docker_image_build_0 + name: docker镜像构建 + task: docker_image_build@1.6.0 + input: + docker_username: ((ACR_USERNAME)) + docker_password: ((ACR_PASSWORD)) + image_name: '"crpi-3vrif0lgpchh92c8.cn-hangzhou.personal.cr.aliyuncs.com/ylly/gitlink_help_center"' + image_tag: '"latest"' + registry_address: '"crpi-3vrif0lgpchh92c8.cn-hangzhou.personal.cr.aliyuncs.com"' + docker_file: '"Dockerfile"' + docker_build_path: '"."' + workspace: git_clone_0.git_path + image_push: true + build_args: '""' + needs: + - git_clone_0 + - ref: ssh_cmd_0 + name: ssh执行命令 + task: ssh_cmd@1.1.1 + input: + ssh_pass: ((ECS_SSH_KEY)) + ssh_ip: '"223.6.254.149"' + ssh_port: '"22"' + ssh_user: '"root"' + ssh_cmd: '"docker stop gitlink_help_center || true && docker rm gitlink_help_center || true && docker pull + crpi-3vrif0lgpchh92c8.cn-hangzhou.personal.cr.aliyuncs.com/ylly/gitlink_help_center:latest && docker run -d -p + 3000:3000 --name gitlink_help_center + crpi-3vrif0lgpchh92c8.cn-hangzhou.personal.cr.aliyuncs.com/ylly/gitlink_help_center:latest"' + needs: + - docker_image_build_0 + - ref: end + name: 结束 + task: end + needs: + - ssh_cmd_0 \ No newline at end of file -- 2.34.1 From 6f8a764e7c8e66599cc28448406a6234c2c23f6d Mon Sep 17 00:00:00 2001 From: 15972095207 <2484216370@qq.com> Date: Mon, 11 May 2026 21:00:51 +0800 Subject: [PATCH 07/53] =?UTF-8?q?=E5=88=A0=E9=99=A4=E9=94=99=E8=AF=AF?= =?UTF-8?q?=E6=96=87=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .devops/部署帮助中心.yml | 51 ---------------------------------- 1 file changed, 51 deletions(-) delete mode 100644 .devops/部署帮助中心.yml diff --git a/.devops/部署帮助中心.yml b/.devops/部署帮助中心.yml deleted file mode 100644 index d1d5858..0000000 --- a/.devops/部署帮助中心.yml +++ /dev/null @@ -1,51 +0,0 @@ - version: 2 - name: 部署帮助中心 - description: 自动构建Docker镜像并部署到阿里云ECS - - trigger: - webhook: gitlink@1.0.0 - event: - - ref: push - ruleset-operator: AND - - workflow: - - ref: start - name: 开始 - task: start@1.0.0 - - - ref: git_clone - name: 克隆代码 - task: git_clone@1.0.0 - input: - remote_url: '"https://gitlink.org.cn/ylly/gitlink_help_center.git"' - ref: '"refs/heads/master"' - commit_id: '"master"' - - - ref: docker_image_build - name: 构建Docker镜像 - task: docker_image_build@1.0.0 - input: - docker_username: ((ACR_USERNAME)) - docker_password: ((ACR_PASSWORD)) - image_name: '"crpi-3vrif0lgpchh92c8.cn-hangzhou.personal.cr.aliyuncs.com/ylly/gitlink_help_center"' - image_tag: '"latest"' - docker_file: '"/项目代码/Dockerfile"' - docker_build_path: '"/项目代码"' - - - ref: ssh_cmd - name: 部署到ECS - task: ssh_cmd@1.0.0 - input: - ssh_ip: '"223.6.254.149"' - ssh_port: '"22"' - ssh_user: '"root"' - ssh_key: ((ECS_SSH_KEY)) - ssh_cmd: >- - "docker stop gitlink_help_center || true && docker rm gitlink_help_center || true && docker pull - crpi-3vrif0lgpchh92c8.cn-hangzhou.personal.cr.aliyuncs.com/ylly/gitlink_help_center:latest && docker run -d --name - gitlink_help_center -p 3000:3000 - crpi-3vrif0lgpchh92c8.cn-hangzhou.personal.cr.aliyuncs.com/ylly/gitlink_help_center:latest" - - - ref: end - name: 结束 - task: end@1.0.0 \ No newline at end of file -- 2.34.1 From 5777b3e196f0194a7bc8daeafa1771b0c1340d13 Mon Sep 17 00:00:00 2001 From: 15972095207 <2484216370@qq.com> Date: Mon, 11 May 2026 22:52:09 +0800 Subject: [PATCH 08/53] 1 --- Dockerfile | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/Dockerfile b/Dockerfile index 09b6efe..bd23088 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,10 +1,10 @@ -FROM node:18-alpine -LABEL maintainer="yuankaifneg <2894340009@qq.com>" - -WORKDIR /gitlink_help_center - -COPY ./ /gitlink_help_center/ - -RUN yarn install -RUN npm run build -- --locale zh-cn -CMD ["npm", "run", "serve"] + 1 FROM node:20-alpine + 2 WORKDIR /gitlink_help_center + 3 COPY ./ /gitlink_help_center/ + 4 -RUN npm install + 4 +RUN npm install --legacy-peer-deps + 5 +RUN mkdir -p node_modules/webpackbar && echo '{"name":"webpackbar","version":"0.0.0","main":"index.js"}' + + > node_modules/webpackbar/package.json && echo 'class WebpackBar{constructor(){}apply(){}}module.export + +s=WebpackBar;' > node_modules/webpackbar/index.js + 6 RUN npm run build -- --locale zh-cn + 7 CMD ["npm", "run", "serve"] -- 2.34.1 From 4238edb12715cf0f20d517a77d88d58b6154bf50 Mon Sep 17 00:00:00 2001 From: ylly Date: Mon, 11 May 2026 23:01:01 +0800 Subject: [PATCH 09/53] refactor: delete .devops/deploy_help_center.yml --- .devops/deploy_help_center.yml | 59 ---------------------------------- 1 file changed, 59 deletions(-) delete mode 100644 .devops/deploy_help_center.yml diff --git a/.devops/deploy_help_center.yml b/.devops/deploy_help_center.yml deleted file mode 100644 index a281fbd..0000000 --- a/.devops/deploy_help_center.yml +++ /dev/null @@ -1,59 +0,0 @@ - version: 2 - name: deploy_help_center - description: "" - global: - concurrent: 1 - trigger: - webhook: gitlink@1.0.0 - event: - - ref: push - ruleset-operator: AND - workflow: - - ref: start - name: 开始 - task: start - - ref: git_clone_0 - name: git clone - task: git_clone@1.2.9 - input: - remote_url: '"https://gitlink.org.cn/ylly/gitlink_help_center.git"' - ref: '"refs/heads/master"' - commit_id: '""' - depth: 1 - needs: - - start - - ref: docker_image_build_0 - name: docker镜像构建 - task: docker_image_build@1.6.0 - input: - docker_username: ((ACR_USERNAME)) - docker_password: ((ACR_PASSWORD)) - image_name: '"crpi-3vrif0lgpchh92c8.cn-hangzhou.personal.cr.aliyuncs.com/ylly/gitlink_help_center"' - image_tag: '"latest"' - registry_address: '"crpi-3vrif0lgpchh92c8.cn-hangzhou.personal.cr.aliyuncs.com"' - docker_file: '"Dockerfile"' - docker_build_path: '"."' - workspace: git_clone_0.git_path - image_push: true - build_args: '""' - needs: - - git_clone_0 - - ref: ssh_cmd_0 - name: ssh执行命令 - task: ssh_cmd@1.1.1 - input: - ssh_pass: ((ECS_SSH_KEY)) - ssh_ip: '"223.6.254.149"' - ssh_port: '"22"' - ssh_user: '"root"' - ssh_cmd: '"docker stop gitlink_help_center || true && docker rm gitlink_help_center || true && docker pull - crpi-3vrif0lgpchh92c8.cn-hangzhou.personal.cr.aliyuncs.com/ylly/gitlink_help_center:latest && docker run -d -p - 3000:3000 --name gitlink_help_center - crpi-3vrif0lgpchh92c8.cn-hangzhou.personal.cr.aliyuncs.com/ylly/gitlink_help_center:latest"' - needs: - - docker_image_build_0 - - ref: end - name: 结束 - task: end - needs: - - ssh_cmd_0 \ No newline at end of file -- 2.34.1 From 06159dae24b1396f7ecdf2237f5ad46677abaf84 Mon Sep 17 00:00:00 2001 From: ylly Date: Mon, 11 May 2026 23:01:03 +0800 Subject: [PATCH 10/53] =?UTF-8?q?feat:=20.devops/=E9=83=A8=E7=BD=B2?= =?UTF-8?q?=E5=B8=AE=E5=8A=A9=E4=B8=AD=E5=BF=83.yml?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .devops/部署帮助中心.yml | 60 ++++++++++++++++++++++++++++++++++ 1 file changed, 60 insertions(+) create mode 100644 .devops/部署帮助中心.yml diff --git a/.devops/部署帮助中心.yml b/.devops/部署帮助中心.yml new file mode 100644 index 0000000..866d6b9 --- /dev/null +++ b/.devops/部署帮助中心.yml @@ -0,0 +1,60 @@ + version: 2 + name: 部署帮助中心 + description: "" + global: + concurrent: 1 + trigger: + webhook: gitlink@1.0.0 + event: + - ref: push + ruleset-operator: AND + workflow: + - ref: start + name: 开始 + task: start + - ref: git_clone_0 + name: git clone + task: git_clone@1.2.9 + input: + username: ((ylly_secrets.ylly_git_user)) + password: ((ylly_secrets.ylly_git_pass)) + remote_url: '"https://gitlink.org.cn/ylly/gitlink_help_center.git"' + ref: '"refs/heads/master"' + commit_id: '""' + depth: 1 + needs: + - start + - ref: docker_image_build_0 + name: docker镜像构建 + task: docker_image_build@1.6.0 + input: + docker_username: ((ylly_secrets.acr_username)) + docker_password: ((ylly_secrets.acr_password)) + image_name: '"crpi-3vrif0lgpchh92c8.cn-hangzhou.personal.cr.aliyuncs.com/ylly/gitlink_help_center"' + image_tag: '"latest"' + registry_address: '"crpi-3vrif0lgpchh92c8.cn-hangzhou.personal.cr.aliyuncs.com"' + docker_file: '"Dockerfile"' + docker_build_path: '"."' + workspace: git_clone_0.git_path + image_push: true + build_args: '""' + needs: + - git_clone_0 + - ref: ssh_cmd_0 + name: ssh执行命令 + task: ssh_cmd@1.1.1 + input: + ssh_pass: ((ylly_secrets.ecs_ssh_key)) + ssh_ip: '"223.6.254.149"' + ssh_port: '"22"' + ssh_user: '"root"' + ssh_cmd: '"docker stop ghc_ylly && docker rm ghc_ylly && docker pull + crpi-3vrif0lgpchh92c8.cn-hangzhou.personal.cr.aliyuncs.com/ylly/gitlink_help_center:latest && docker run -d -p + 3000:3000 --name ghc_ylly crpi-3vrif0lgpchh92c8.cn-hangzhou.personal.cr.aliyuncs.com/ylly/gitlink_help_center:latest"' + needs: + - docker_image_build_0 + - ref: end + name: 结束 + task: end + needs: + - ssh_cmd_0 \ No newline at end of file -- 2.34.1 From 4c45702a8e6fadf1e5c50f88ac36c4f9740d153b Mon Sep 17 00:00:00 2001 From: 15972095207 <2484216370@qq.com> Date: Mon, 11 May 2026 23:02:20 +0800 Subject: [PATCH 11/53] =?UTF-8?q?=E4=BF=AE=E5=A4=8DDockerfile=E5=92=8Cpack?= =?UTF-8?q?age.json=E5=85=BC=E5=AE=B9=E6=80=A7=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Dockerfile | 17 +++++++---------- package.json | 1 - 2 files changed, 7 insertions(+), 11 deletions(-) diff --git a/Dockerfile b/Dockerfile index bd23088..9e2757e 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,10 +1,7 @@ - 1 FROM node:20-alpine - 2 WORKDIR /gitlink_help_center - 3 COPY ./ /gitlink_help_center/ - 4 -RUN npm install - 4 +RUN npm install --legacy-peer-deps - 5 +RUN mkdir -p node_modules/webpackbar && echo '{"name":"webpackbar","version":"0.0.0","main":"index.js"}' - + > node_modules/webpackbar/package.json && echo 'class WebpackBar{constructor(){}apply(){}}module.export - +s=WebpackBar;' > node_modules/webpackbar/index.js - 6 RUN npm run build -- --locale zh-cn - 7 CMD ["npm", "run", "serve"] +FROM node:20-alpine +WORKDIR /gitlink_help_center +COPY ./ /gitlink_help_center/ +RUN npm install --legacy-peer-deps +RUN mkdir -p node_modules/webpackbar && echo '{"name":"webpackbar","version":"0.0.0","main":"index.js"}' > node_modules/webpackbar/package.json && echo 'class WebpackBar{constructor(){}apply(){}}module.exports=WebpackBar;' > node_modules/webpackbar/index.js +RUN npm run build -- --locale zh-cn +CMD ["npm", "run", "serve"] diff --git a/package.json b/package.json index 460521b..857dc72 100644 --- a/package.json +++ b/package.json @@ -14,7 +14,6 @@ "write-heading-ids": "docusaurus write-heading-ids" }, "dependencies": { - "@cmfcmf/docusaurus-search-local": "1.1.0", "@docusaurus/core": "3.9.2", "@docusaurus/plugin-client-redirects": "3.9.2", "@docusaurus/preset-classic": "3.9.2", -- 2.34.1 From b7fca62d86518df9c8ad431b61b7eaaf29834c96 Mon Sep 17 00:00:00 2001 From: 15972095207 <2484216370@qq.com> Date: Mon, 11 May 2026 23:36:11 +0800 Subject: [PATCH 12/53] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E6=B5=81=E6=B0=B4?= =?UTF-8?q?=E7=BA=BFYAML=E5=92=8C=E6=B8=85=E7=90=86=E5=A4=9A=E4=BD=99?= =?UTF-8?q?=E6=96=87=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .devops/实验一.yml | 62 ---------------------------------- .devops/未命名项目.yml | 62 ---------------------------------- .devops/部署帮助中心.yml | 4 +-- 3 files changed, 1 insertion(+), 127 deletions(-) delete mode 100644 .devops/实验一.yml delete mode 100644 .devops/未命名项目.yml diff --git a/.devops/实验一.yml b/.devops/实验一.yml deleted file mode 100644 index 233e38e..0000000 --- a/.devops/实验一.yml +++ /dev/null @@ -1,62 +0,0 @@ -version: 2 -name: 实验一 -description: "" -global: - concurrent: 1 -trigger: - webhook: gitlink@1.0.0 - event: - - ref: push - ruleset-operator: AND -workflow: - - ref: start - name: 开始 - task: start - - ref: docker_image_build_0 - name: docker镜像构建 - task: docker_image_build@1.6.0 - input: - docker_username: ((nudt_devops.nudt_devops)) - docker_password: ((nudt_devops.nudt_devops)) - image_name: '"registry.cn-guangzhou.aliyuncs.com/nudt_devops/gitlink_help_center_group5"' - image_tag: '"latest"' - registry_address: '"registry.cn-guangzhou.aliyuncs.com"' - docker_file: '"Dockerfile"' - docker_build_path: '"."' - workspace: git_clone_0.git_path - image_push: true - build_args: '""' - needs: - - git_clone_0 - - ref: git_clone_0 - name: git clone - task: git_clone@1.2.9 - input: - username: ((ganshihao21.ganshihao21_user)) - password: ((ganshihao21.ganshihao21)) - remote_url: '"https://gitlink.org.cn/shuaihao/gitlink_help_center.git"' - ref: '"refs/heads/master"' - commit_id: '""' - depth: 1 - needs: - - start - - ref: ssh_cmd_0 - name: ssh执行命令 - task: ssh_cmd@1.1.1 - input: - ssh_pass: ((ssh_key.ssh_key)) - ssh_ip: '"47.96.164.145"' - ssh_port: '"22"' - ssh_user: '"root"' - ssh_cmd: '"docker stop ghc_group5 && docker rm ghc_group5 && docker pull - registry.cn-guangzhou.aliyuncs.com/nudt_devops/gitlink_help_center_group5:latest - && docker run -d -p 3000:3000 --name ghc_group5 - registry.cn-guangzhou.aliyuncs.com/nudt_devops/gitlink_help_center_group5:latest"' - needs: - - docker_image_build_0 - - ref: end - name: 结束 - task: end - needs: - - ssh_cmd_0 - diff --git a/.devops/未命名项目.yml b/.devops/未命名项目.yml deleted file mode 100644 index 540e9f7..0000000 --- a/.devops/未命名项目.yml +++ /dev/null @@ -1,62 +0,0 @@ -version: 2 -name: 未命名项目 -description: "" -global: - concurrent: 1 -trigger: - webhook: gitlink@1.0.0 - event: - - ref: push - ruleset-operator: AND -workflow: - - ref: start - name: 开始 - task: start - - ref: git_clone_0 - name: git clone - task: git_clone@1.2.9 - input: - username: ((ganshihao21.ganshihao21_user)) - password: ((ganshihao21.ganshihao21)) - remote_url: '"https://gitlink.org.cn/ganshihao21/reposync.git"' - ref: '"refs/heads/master"' - commit_id: '""' - depth: 1 - needs: - - start - - ref: docker_image_build_0 - name: docker镜像构建 - task: docker_image_build@1.6.0 - input: - docker_username: ((nudt_devops.nudt_devops)) - docker_password: ((nudt_devops.nudt_devops)) - image_name: '"registry.cn-guangzhou.aliyuncs.com/nudt_devops/reposync_group5"' - image_tag: '"latest"' - registry_address: '"registry.cn-guangzhou.aliyuncs.com"' - docker_file: '"Dockerfile"' - docker_build_path: '"."' - workspace: git_clone_0.git_path - image_push: true - build_args: '""' - needs: - - git_clone_0 - - ref: ssh_cmd_0 - name: ssh执行命令 - task: ssh_cmd@1.1.1 - input: - ssh_pass: ((ssh_key.ssh_key)) - ssh_ip: '"47.96.164.145"' - ssh_port: '"22"' - ssh_user: '"root"' - ssh_cmd: '"docker stop abc_group5 && docker rm abc_group5 && docker pull - registry.cn-guangzhou.aliyuncs.com/nudt_devops/reposync_group5:latest && - docker run -d -p 3000:3000 --name abc_group5 - registry.cn-guangzhou.aliyuncs.com/nudt_devops/reposync_group5:latest"' - needs: - - docker_image_build_0 - - ref: end - name: 结束 - task: end - needs: - - ssh_cmd_0 - diff --git a/.devops/部署帮助中心.yml b/.devops/部署帮助中心.yml index 866d6b9..b2cf283 100644 --- a/.devops/部署帮助中心.yml +++ b/.devops/部署帮助中心.yml @@ -48,9 +48,7 @@ ssh_ip: '"223.6.254.149"' ssh_port: '"22"' ssh_user: '"root"' - ssh_cmd: '"docker stop ghc_ylly && docker rm ghc_ylly && docker pull - crpi-3vrif0lgpchh92c8.cn-hangzhou.personal.cr.aliyuncs.com/ylly/gitlink_help_center:latest && docker run -d -p - 3000:3000 --name ghc_ylly crpi-3vrif0lgpchh92c8.cn-hangzhou.personal.cr.aliyuncs.com/ylly/gitlink_help_center:latest"' + ssh_cmd: '"docker stop ghc_ylly;docker rm ghc_ylly;docker pull crpi-3vrif0lgpchh92c8.cn-hangzhou.personal.cr.aliyuncs.com/ylly/gitlink_help_center:latest;docker run -d -p 3000:3000 --name ghc_ylly crpi-3vrif0lgpchh92c8.cn-hangzhou.personal.cr.aliyuncs.com/ylly/gitlink_help_center:latest"' needs: - docker_image_build_0 - ref: end -- 2.34.1 From 770476a5df9bd98216b2d71d66246ccd102e8193 Mon Sep 17 00:00:00 2001 From: ylly Date: Tue, 12 May 2026 12:36:34 +0800 Subject: [PATCH 13/53] =?UTF-8?q?refactor:=20.devops/=E9=83=A8=E7=BD=B2?= =?UTF-8?q?=E5=B8=AE=E5=8A=A9=E4=B8=AD=E5=BF=83.yml?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .devops/部署帮助中心.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.devops/部署帮助中心.yml b/.devops/部署帮助中心.yml index b2cf283..c9edf68 100644 --- a/.devops/部署帮助中心.yml +++ b/.devops/部署帮助中心.yml @@ -48,7 +48,9 @@ ssh_ip: '"223.6.254.149"' ssh_port: '"22"' ssh_user: '"root"' - ssh_cmd: '"docker stop ghc_ylly;docker rm ghc_ylly;docker pull crpi-3vrif0lgpchh92c8.cn-hangzhou.personal.cr.aliyuncs.com/ylly/gitlink_help_center:latest;docker run -d -p 3000:3000 --name ghc_ylly crpi-3vrif0lgpchh92c8.cn-hangzhou.personal.cr.aliyuncs.com/ylly/gitlink_help_center:latest"' + ssh_cmd: '"docker stop ghc_ylly;docker rm ghc_ylly;docker pull + crpi-3vrif0lgpchh92c8.cn-hangzhou.personal.cr.aliyuncs.com/ylly/gitlink_help_center:latest;docker run -d -p 3000:3000 + --name ghc_ylly crpi-3vrif0lgpchh92c8.cn-hangzhou.personal.cr.aliyuncs.com/ylly/gitlink_help_center:latest"' needs: - docker_image_build_0 - ref: end -- 2.34.1 From 8eb98f8ddc84a285ec3c14e194d241285b2dfdc0 Mon Sep 17 00:00:00 2001 From: ylly Date: Tue, 12 May 2026 12:42:20 +0800 Subject: [PATCH 14/53] =?UTF-8?q?refactor:=20.devops/=E9=83=A8=E7=BD=B2?= =?UTF-8?q?=E5=B8=AE=E5=8A=A9=E4=B8=AD=E5=BF=83.yml?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .devops/部署帮助中心.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.devops/部署帮助中心.yml b/.devops/部署帮助中心.yml index c9edf68..a8fd589 100644 --- a/.devops/部署帮助中心.yml +++ b/.devops/部署帮助中心.yml @@ -16,8 +16,8 @@ name: git clone task: git_clone@1.2.9 input: - username: ((ylly_secrets.ylly_git_user)) - password: ((ylly_secrets.ylly_git_pass)) + username: ((gitlink_help_center.ylly_git_user)) + password: ((gitlink_help_center.ylly_git_pass)) remote_url: '"https://gitlink.org.cn/ylly/gitlink_help_center.git"' ref: '"refs/heads/master"' commit_id: '""' @@ -28,8 +28,8 @@ name: docker镜像构建 task: docker_image_build@1.6.0 input: - docker_username: ((ylly_secrets.acr_username)) - docker_password: ((ylly_secrets.acr_password)) + docker_username: ((gitlink_help_center.acr_username)) + docker_password: ((gitlink_help_center.acr_password)) image_name: '"crpi-3vrif0lgpchh92c8.cn-hangzhou.personal.cr.aliyuncs.com/ylly/gitlink_help_center"' image_tag: '"latest"' registry_address: '"crpi-3vrif0lgpchh92c8.cn-hangzhou.personal.cr.aliyuncs.com"' @@ -44,7 +44,7 @@ name: ssh执行命令 task: ssh_cmd@1.1.1 input: - ssh_pass: ((ylly_secrets.ecs_ssh_key)) + ssh_pass: ((gitlink_help_center.ecs_ssh_key)) ssh_ip: '"223.6.254.149"' ssh_port: '"22"' ssh_user: '"root"' -- 2.34.1 From 02d91b26f511a61dbc46b08d624ce46f64ca1849 Mon Sep 17 00:00:00 2001 From: 15972095207 <2484216370@qq.com> Date: Tue, 12 May 2026 12:50:23 +0800 Subject: [PATCH 15/53] =?UTF-8?q?rename:=20=E9=87=8D=E5=91=BD=E5=90=8D?= =?UTF-8?q?=E6=B5=81=E6=B0=B4=E7=BA=BF=E6=96=87=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .devops/{部署帮助中心.yml => 自动部署.yml} | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename .devops/{部署帮助中心.yml => 自动部署.yml} (100%) diff --git a/.devops/部署帮助中心.yml b/.devops/自动部署.yml similarity index 100% rename from .devops/部署帮助中心.yml rename to .devops/自动部署.yml -- 2.34.1 From a5650aee949ffe9df525b62d1a7bcd5ca14dde38 Mon Sep 17 00:00:00 2001 From: ylly Date: Tue, 12 May 2026 12:58:59 +0800 Subject: [PATCH 16/53] =?UTF-8?q?refactor:=20.devops/=E8=87=AA=E5=8A=A8?= =?UTF-8?q?=E9=83=A8=E7=BD=B2.yml?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .devops/自动部署.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.devops/自动部署.yml b/.devops/自动部署.yml index a8fd589..6d58f6f 100644 --- a/.devops/自动部署.yml +++ b/.devops/自动部署.yml @@ -1,5 +1,5 @@ version: 2 - name: 部署帮助中心 + name: 自动部署 description: "" global: concurrent: 1 @@ -57,4 +57,4 @@ name: 结束 task: end needs: - - ssh_cmd_0 \ No newline at end of file + - ssh_cmd_0 -- 2.34.1 From 465060c9960debc07528bf05b42c41825dc7ce2b Mon Sep 17 00:00:00 2001 From: ylly Date: Tue, 12 May 2026 13:00:23 +0800 Subject: [PATCH 17/53] =?UTF-8?q?refactor:=20.devops/=E8=87=AA=E5=8A=A8?= =?UTF-8?q?=E9=83=A8=E7=BD=B2.yml?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .devops/自动部署.yml | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/.devops/自动部署.yml b/.devops/自动部署.yml index 6d58f6f..daa790e 100644 --- a/.devops/自动部署.yml +++ b/.devops/自动部署.yml @@ -48,9 +48,7 @@ ssh_ip: '"223.6.254.149"' ssh_port: '"22"' ssh_user: '"root"' - ssh_cmd: '"docker stop ghc_ylly;docker rm ghc_ylly;docker pull - crpi-3vrif0lgpchh92c8.cn-hangzhou.personal.cr.aliyuncs.com/ylly/gitlink_help_center:latest;docker run -d -p 3000:3000 - --name ghc_ylly crpi-3vrif0lgpchh92c8.cn-hangzhou.personal.cr.aliyuncs.com/ylly/gitlink_help_center:latest"' + ssh_cmd: '"docker stop ghc_ylly;docker rm ghc_ylly;docker pull crpi-3vrif0lgpchh92c8.cn-hangzhou.personal.cr.aliyuncs.com/ylly/gitlink_help_center:latest;docker run -d -p 3000:3000 --name ghc_ylly crpi-3vrif0lgpchh92c8.cn-hangzhou.personal.cr.aliyuncs.com/ylly/gitlink_help_center:latest"' needs: - docker_image_build_0 - ref: end -- 2.34.1 From ba324585cbc60d9394965f9aabea4b1ddb8a1e03 Mon Sep 17 00:00:00 2001 From: 15972095207 <2484216370@qq.com> Date: Tue, 12 May 2026 14:28:07 +0800 Subject: [PATCH 18/53] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=8A=A0=E9=80=9F?= =?UTF-8?q?=E5=99=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .devops/自动部署.yml | 118 +++++++++++++++++++-------------------- Dockerfile | 2 +- 2 files changed, 59 insertions(+), 61 deletions(-) diff --git a/.devops/自动部署.yml b/.devops/自动部署.yml index a8fd589..bfc0c30 100644 --- a/.devops/自动部署.yml +++ b/.devops/自动部署.yml @@ -1,60 +1,58 @@ - version: 2 - name: 部署帮助中心 - description: "" - global: - concurrent: 1 - trigger: - webhook: gitlink@1.0.0 - event: - - ref: push - ruleset-operator: AND - workflow: - - ref: start - name: 开始 - task: start - - ref: git_clone_0 - name: git clone - task: git_clone@1.2.9 - input: - username: ((gitlink_help_center.ylly_git_user)) - password: ((gitlink_help_center.ylly_git_pass)) - remote_url: '"https://gitlink.org.cn/ylly/gitlink_help_center.git"' - ref: '"refs/heads/master"' - commit_id: '""' - depth: 1 - needs: - - start - - ref: docker_image_build_0 - name: docker镜像构建 - task: docker_image_build@1.6.0 - input: - docker_username: ((gitlink_help_center.acr_username)) - docker_password: ((gitlink_help_center.acr_password)) - image_name: '"crpi-3vrif0lgpchh92c8.cn-hangzhou.personal.cr.aliyuncs.com/ylly/gitlink_help_center"' - image_tag: '"latest"' - registry_address: '"crpi-3vrif0lgpchh92c8.cn-hangzhou.personal.cr.aliyuncs.com"' - docker_file: '"Dockerfile"' - docker_build_path: '"."' - workspace: git_clone_0.git_path - image_push: true - build_args: '""' - needs: - - git_clone_0 - - ref: ssh_cmd_0 - name: ssh执行命令 - task: ssh_cmd@1.1.1 - input: - ssh_pass: ((gitlink_help_center.ecs_ssh_key)) - ssh_ip: '"223.6.254.149"' - ssh_port: '"22"' - ssh_user: '"root"' - ssh_cmd: '"docker stop ghc_ylly;docker rm ghc_ylly;docker pull - crpi-3vrif0lgpchh92c8.cn-hangzhou.personal.cr.aliyuncs.com/ylly/gitlink_help_center:latest;docker run -d -p 3000:3000 - --name ghc_ylly crpi-3vrif0lgpchh92c8.cn-hangzhou.personal.cr.aliyuncs.com/ylly/gitlink_help_center:latest"' - needs: - - docker_image_build_0 - - ref: end - name: 结束 - task: end - needs: - - ssh_cmd_0 \ No newline at end of file +version: 2 +name: 自动部署 +description: "" +global: + concurrent: 1 +trigger: + webhook: gitlink@1.0.0 + event: + - ref: push + ruleset-operator: AND +workflow: + - ref: start + name: 开始 + task: start + - ref: git_clone_0 + name: git clone + task: git_clone@1.2.9 + input: + username: ((gitlink_help_center.ylly_git_user)) + password: ((gitlink_help_center.ylly_git_pass)) + remote_url: '"https://gitlink.org.cn/ylly/gitlink_help_center.git"' + ref: '"refs/heads/master"' + commit_id: '""' + depth: 1 + needs: + - start + - ref: docker_image_build_0 + name: docker镜像构建 + task: docker_image_build@1.6.0 + input: + docker_username: ((gitlink_help_center.acr_username)) + docker_password: ((gitlink_help_center.acr_password)) + image_name: '"crpi-3vrif0lgpchh92c8.cn-hangzhou.personal.cr.aliyuncs.com/ylly/gitlink_help_center"' + image_tag: '"latest"' + registry_address: '"crpi-3vrif0lgpchh92c8.cn-hangzhou.personal.cr.aliyuncs.com"' + docker_file: '"Dockerfile"' + docker_build_path: '"."' + workspace: git_clone_0.git_path + image_push: true + build_args: '""' + needs: + - git_clone_0 + - ref: ssh_cmd_0 + name: ssh执行命令 + task: ssh_cmd@1.1.1 + input: + ssh_pass: ((gitlink_help_center.ecs_ssh_key)) + ssh_ip: '"223.6.254.149"' + ssh_port: '"22"' + ssh_user: '"root"' + ssh_cmd: '"docker stop ghc_ylly;docker rm ghc_ylly;docker pull crpi-3vrif0lgpchh92c8.cn-hangzhou.personal.cr.aliyuncs.com/ylly/gitlink_help_center:latest;docker run -d -p 3000:3000 --name ghc_ylly crpi-3vrif0lgpchh92c8.cn-hangzhou.personal.cr.aliyuncs.com/ylly/gitlink_help_center:latest"' + needs: + - docker_image_build_0 + - ref: end + name: 结束 + task: end + needs: + - ssh_cmd_0 diff --git a/Dockerfile b/Dockerfile index 9e2757e..4ab3b35 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM node:20-alpine +FROM registry.cn-hangzhou.aliyuncs.com/library/node:20-alpine WORKDIR /gitlink_help_center COPY ./ /gitlink_help_center/ RUN npm install --legacy-peer-deps -- 2.34.1 From 026623c3584f4debe87ad4d6fab56304295888a5 Mon Sep 17 00:00:00 2001 From: 15972095207 <2484216370@qq.com> Date: Tue, 12 May 2026 14:38:56 +0800 Subject: [PATCH 19/53] =?UTF-8?q?fix:=20=E4=BD=BF=E7=94=A8ACR=E7=A7=81?= =?UTF-8?q?=E6=9C=89=E4=BB=93=E5=BA=93=E7=9A=84node=E5=9F=BA=E7=A1=80?= =?UTF-8?q?=E9=95=9C=E5=83=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 4ab3b35..1486f33 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM registry.cn-hangzhou.aliyuncs.com/library/node:20-alpine +FROM crpi-3vrif0lgpchh92c8.cn-hangzhou.personal.cr.aliyuncs.com/ylly/node:20-alpine WORKDIR /gitlink_help_center COPY ./ /gitlink_help_center/ RUN npm install --legacy-peer-deps -- 2.34.1 From 5399d9945ef8d7a02e0db1cf26bb832a638046b3 Mon Sep 17 00:00:00 2001 From: 15972095207 <2484216370@qq.com> Date: Tue, 12 May 2026 14:46:20 +0800 Subject: [PATCH 20/53] =?UTF-8?q?fix:=20=E6=98=BE=E5=BC=8F=E6=B7=BB?= =?UTF-8?q?=E5=8A=A0cheerio=E4=BE=9D=E8=B5=96=E8=A7=A3=E5=86=B3=E6=90=9C?= =?UTF-8?q?=E7=B4=A2=E6=8F=92=E4=BB=B6=E6=9E=84=E5=BB=BA=E6=8A=A5=E9=94=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package.json | 1 + 1 file changed, 1 insertion(+) diff --git a/package.json b/package.json index 857dc72..58015ff 100644 --- a/package.json +++ b/package.json @@ -17,6 +17,7 @@ "@docusaurus/core": "3.9.2", "@docusaurus/plugin-client-redirects": "3.9.2", "@docusaurus/preset-classic": "3.9.2", + "cheerio": "1.0.0-rc.12", "@easyops-cn/docusaurus-search-local": "^0.35.0", "@mdx-js/react": "^3.1.1", "@node-rs/jieba": "^1.7.0", -- 2.34.1 From c11d909c5822e1877a024cb30fa879f486bd6d28 Mon Sep 17 00:00:00 2001 From: ZxR <3193291180@qq.com> Date: Tue, 12 May 2026 19:55:29 +0800 Subject: [PATCH 21/53] =?UTF-8?q?=E5=AF=B9=E4=BA=8E=E7=94=A8=E6=88=B7?= =?UTF-8?q?=E4=BD=BF=E7=94=A8=E4=B8=AD=E4=BA=A7=E7=94=9F=E4=BA=86=E7=96=91?= =?UTF-8?q?=E9=97=AE=E6=88=96=E8=80=85=E4=B8=8D=E4=BC=9A=E6=93=8D=E4=BD=9C?= =?UTF-8?q?=E5=8F=AF=E4=BB=A5:=E8=B7=B3=E8=BD=AC=E8=87=B3=E8=AE=BA?= =?UTF-8?q?=E5=9D=9B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- i18n/en/code.json | 11 +++ i18n/zh-CN/code.json | 9 +++ src/components/HelpFeedback/index.jsx | 36 +++++++++ src/components/HelpFeedback/index.module.css | 79 ++++++++++++++++++++ src/theme/DocItem/Footer/index.js | 12 +++ 5 files changed, 147 insertions(+) create mode 100644 i18n/en/code.json create mode 100644 src/components/HelpFeedback/index.jsx create mode 100644 src/components/HelpFeedback/index.module.css create mode 100644 src/theme/DocItem/Footer/index.js diff --git a/i18n/en/code.json b/i18n/en/code.json new file mode 100644 index 0000000..31e60a1 --- /dev/null +++ b/i18n/en/code.json @@ -0,0 +1,11 @@ +{ + "helpFeedback.title": { + "message": "Have questions about this doc?" + }, + "helpFeedback.description": { + "message": "Post your question on the GitLink forum, and our community and official team will help you out." + }, + "helpFeedback.forumButton": { + "message": "Ask on Forum" + } +} diff --git a/i18n/zh-CN/code.json b/i18n/zh-CN/code.json index c753757..550d9a8 100644 --- a/i18n/zh-CN/code.json +++ b/i18n/zh-CN/code.json @@ -836,5 +836,14 @@ "theme.unlistedContent.message": { "message": "此页面未列出。搜索引擎不会索引它,只有拥有直链的用户才能访问它。", "description": "The unlisted content banner message" + }, + "helpFeedback.title": { + "message": "对这篇文档有疑问?" + }, + "helpFeedback.description": { + "message": "欢迎到 GitLink 论坛发帖提问,社区成员和官方团队会协助解答。" + }, + "helpFeedback.forumButton": { + "message": "去论坛提问" } } diff --git a/src/components/HelpFeedback/index.jsx b/src/components/HelpFeedback/index.jsx new file mode 100644 index 0000000..06d6338 --- /dev/null +++ b/src/components/HelpFeedback/index.jsx @@ -0,0 +1,36 @@ +import React from 'react'; +import Translate from '@docusaurus/Translate'; +import styles from './index.module.css'; + +const FORUM_URL = 'https://forum.gitlink.org.cn'; + +export default function HelpFeedback() { + return ( +
+
+
+

+ + 对这篇文档有疑问? + +

+

+ + 欢迎到 GitLink 论坛发帖提问,社区成员和官方团队会协助解答。 + +

+
+
+ + 去论坛提问 + + +
+
+ ); +} diff --git a/src/components/HelpFeedback/index.module.css b/src/components/HelpFeedback/index.module.css new file mode 100644 index 0000000..0be6343 --- /dev/null +++ b/src/components/HelpFeedback/index.module.css @@ -0,0 +1,79 @@ +.wrapper { + margin: 2rem 0 1rem; +} + +.card { + display: flex; + align-items: center; + justify-content: space-between; + gap: 1.5rem; + padding: 1.25rem 1.5rem; + border: 1px solid #e2e5ea; + border-radius: 8px; + background: #f7f8fa; +} + +html[data-theme='dark'] .card { + background: rgba(255, 255, 255, 0.05); + border-color: rgba(255, 255, 255, 0.1); +} + +.content { + flex: 1; + min-width: 0; +} + +.title { + font-size: 0.95rem; + font-weight: 600; + margin: 0 0 0.25rem; + color: #1b2440; +} + +html[data-theme='dark'] .title { + color: #e3e5e8; +} + +.desc { + font-size: 0.875rem; + margin: 0; + color: #6b7280; + line-height: 1.5; +} + +html[data-theme='dark'] .desc { + color: #9ca3af; +} + +.button { + display: inline-flex; + align-items: center; + flex-shrink: 0; + padding: 0.5rem 1.25rem; + background: #466aff; + color: #fff; + border-radius: 6px; + font-size: 0.875rem; + font-weight: 500; + text-decoration: none; + white-space: nowrap; + transition: background 0.2s; +} + +.button:hover { + background: #3651d9; + color: #fff; + text-decoration: none; +} + +@media (max-width: 640px) { + .card { + flex-direction: column; + align-items: flex-start; + } + + .button { + width: 100%; + justify-content: center; + } +} diff --git a/src/theme/DocItem/Footer/index.js b/src/theme/DocItem/Footer/index.js new file mode 100644 index 0000000..b2f2a56 --- /dev/null +++ b/src/theme/DocItem/Footer/index.js @@ -0,0 +1,12 @@ +import React from 'react'; +import Footer from '@theme-original/DocItem/Footer'; +import HelpFeedback from '@site/src/components/HelpFeedback'; + +export default function FooterWrapper(props) { + return ( + <> +