Compare commits

..

No commits in common. "master" and "master" have entirely different histories.

23 changed files with 271 additions and 725 deletions

View File

@ -1,71 +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:
remote_url: '"https://www.gitlink.org.cn/luoyi21a/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: ((docker.nudt_devops))
docker_password: ((docker.nudt_devops))
image_name: '"registry.cn-guangzhou.aliyuncs.com/nudt_devops/gitlink_reposync_group3"'
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: gitlink_ssh_cmd_0
name: ssh执行命令支持跳板机
task: yystopf/gitlink_ssh_cmd@0.0.7
input:
ssh_private_key: ((ssh_key.a))
remote_host: '"47.97.179.90"'
remote_port: '"22"'
remote_user: '"root"'
gateway_host: '""'
gateway_port: '"22"'
gateway_user: '"root"'
ssh_cmd: >-
"docker stop reposyncer_app;docker rm reposyncer_app;docker pull
registry.cn-guangzhou.aliyuncs.com/nudt_devops/gitlink_reposync_group3:latest;docker
run -it -d \
-e CEROBOT_MYSQL_HOST='MYSQL_HOST' -e CEROBOT_MYSQL_PORT=3306 \
-e CEROBOT_MYSQL_USER=root \
-e CEROBOT_MYSQL_PWD='MYSQL_PASSWORD' \
-e CEROBOT_MYSQL_DB='reposyncer' \
-e BOOT_MODE='app' \
-p 8089:8000 \
--name reposyncer_app \
reposync:v2.0"
needs:
- docker_image_build_0
- ref: end
name: 结束
task: end
needs:
- gitlink_ssh_cmd_0

View File

@ -1,68 +0,0 @@
version: 2
name: 流水线demo
description: ""
global:
concurrent: 10
param:
- ref: number
name: ""
value: '"3"'
required: false
type: NUMBER
hidden: true
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/luoyi21a/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: ((docker.nudt_devops))
docker_password: ((docker.nudt_devops))
image_name: '"registry.cn-guangzhou.aliyuncs.com/nudt_devops/gitlink_help_center_group3"'
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.a))
ssh_private_key: ((ssh_key.nudt_devops))
ssh_ip: '"47.97.179.90"'
ssh_port: '"22"'
ssh_user: '"root"'
ssh_cmd: '"docker stop ghc_group3; docker rm ghc_group3; docker pull
registry.cn-guangzhou.aliyuncs.com/nudt_devops/gitlink_help_center_group3:latest;
docker run -d -p 3000:3000 --name ghc_group3
registry.cn-guangzhou.aliyuncs.com/nudt_devops/gitlink_help_center_group3:latest"'
needs:
- docker_image_build_0
- ref: end
name: 结束
task: end
needs:
- ssh_cmd_0

View File

@ -1,10 +0,0 @@
FROM node:18-alpine
LABEL maintainer="hejiayu <hejy47@nudt.edu.cn>"
WORKDIR /gitlink_help_center
COPY ./ /gitlink_help_center/
RUN npm install
RUN npm run build -- --locale zh-cn
CMD ["npm", "run", "serve"]

View File

@ -88,7 +88,6 @@ GitLink确实开源是CCF官方指定的开源创新服务平台旨在
<h2 class="text--truncate cardTitle" title="服务协议">服务协议</h2>
<p>GitLink服务协议[1个文档]</p>
</a></article>
</section>
</div>
</div>

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.3 MiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.1 MiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.4 MiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.9 MiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 934 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.7 MiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.8 MiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.4 MiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.8 MiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 870 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 796 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.9 MiB

View File

@ -1,53 +1,4 @@
---
sidebar_label: '代码提交'
sidebar_position: 3
---
# 代码提交
## 在创建完仓库之后用户可以通过如下方式可以向仓库提交代码。此处我们以用户账号下命名为 HelloGitee 的仓库为例。对应的仓库地址为https://gitlink.org.cn/用户个性地址/HelloGitee.git在实际实践中你可以将用户个性地址替换为自己的地址。
## 方法1、先将仓库clone到本地修改后再push到 Gitee 的仓库
$ git clone https://gitlink.org.cn/用户个性地址/HelloGitee.git #将远程仓库克隆到本地
在克隆过程中,如果仓库是一个私有仓库,将会要求用户输入 Gitee 的账号和密码。按照提示输入即可。
当然用户也可以通过配置本地的git配置信息执行git config命令预先配置好相关的用户信息配置执行如下
$ git config --global user.name "你的名字或昵称"
$ git config --global user.email "你的邮箱"
在 Gitlink 平台中,强烈建议您在【设置-多邮箱管理】中的“提交邮箱”与上面配置信息中的邮箱地址保持一致,这样平台就能及时地统计您在平台中提交代码的贡献了。
修改代码后,在仓库目录下执行下面命令
$ git add . #将当前目录所有文件添加到git暂存区
$ git commit -m "my first commit" #提交并备注提交信息
$ git push origin master #将本地提交推送到远程仓库
## 方法2、本地初始化一个仓库设置远程仓库地址后再做push
和方法1的差别在于先创建仓库。
$ git init $ git remote add origin https://gitlink.org.cn/用户个性地址/HelloGitee.git
这样就完成了版本的一次初始化。
接下去,进入你已经初始化好的或者克隆仓库的目录,然后执行:
$ git pull origin master
修改/添加文件,否则与原文件相比就没有变动。
$ git add .
$ git commit -m "第一次提交"
$ git push origin master
然后如果需要账号密码的话就输入账号密码,这样就完成了一次提交。此时,你可以在你的个人面板、仓库主页查看到你的提交记录。
在新建仓库时,如果在 Giteelink 平台仓库上已经存在 readme 或其他文件,在提交时可能会存在冲突,这时用户需要选择的是保留线上的文件或者舍弃线上的文件,如果您舍弃线上的文件,则在推送时选择强制推送,强制推送需要执行下面的命令(默认不推荐该行为)
$ git push origin master -f
如果您选择保留线上的 readme 文件,则需要先执行:
$ git pull origin master
---

View File

@ -1,50 +1,4 @@
---
sidebar_label: '分支管理'
sidebar_position: 5
---
# 分支管理
## 1.创建新分支:
在仓库页面上,可以点击页面上方的 "分支" 按钮,然后选择 "新建分支" 来创建新的分支。你需要指定新分支的名称和基于哪个分支创建。
![alt text](image-3.png)
## 2.切换分支:
点击创建项目,创建成功后进入项目主页。对于已存在的文件,你可以点击文件名进入文件内容页面,然后点击 "编辑" 按钮来编辑文件内容。在仓库页面上,可以点击页面上方的 "分支" 按钮,然后选择要切换到的分支来查看该分支的内容。
![alt text](image-4.png)
## 3.合并分支:
首先在目标分支上点击“合并请求”,然后将待合并的分支指定为源分支,经过代码审查等操作后进行合并。
![alt text](image-5.png)
![alt text](image-6.png)
## 4.删除分支:
在 仓库页面上,可以点击页面上方的 "分支" 按钮,然后选择要删除的分支,点击旁边的 "删除" 按钮来删除该分支。
![alt text](image-7.png)
![alt text](image-8.png)
## 5.保护分支:
可以对重要的分支进行保护,以防止未经授权的修改。在仓库的设置页面中,可以配置分支保护规则,限制谁可以对分支进行合并、删除等操作。
![alt text](image-9.png)
![alt text](image-10.png)
## 6.查看分支历史:
在分支列表中可以查看每个分支的提交记录,以及各分支之间的差异。
![alt text](image-11.png)
---

View File

@ -1,33 +1,4 @@
---
sidebar_label: '文件管理'
sidebar_position: 4
---
# 文件管理
## 1.创建新文件:
在仓库中创建新文件,可以通过点击页面上的 "新建文件" 按钮或者直接在指定的文件夹下创建新文件。
![alt text](image.png)
## 2.编辑文件:
点击创建项目,创建成功后进入项目主页。对于已存在的文件,你可以点击文件名进入文件内容页面,然后点击 "编辑" 按钮来编辑文件内容。
![alt text](image-1.png)
## 3.移动文件:
可以通过拖拽文件到新的文件夹来实现文件的移动操作。
## 4.上传文件:
在仓库中上传新的文件,可以直接拖拽文件到页面上进行上传,或者通过 "上传文件" 功能。
![alt text](image-2.png)
## 5.查看文件历史记录:
可以查看文件的修改历史,包括每次提交的修改内容以及提交者信息。
---

View File

@ -1,24 +1,4 @@
---
sidebar_label: '平台公告'
sidebar_position: 1
---
# 创建第一个开源项目
## 1. 新建项目
平台提供了“新建”按钮,用户可以通过点击快速从零开始创建新的公开或者私有项目。
![创建首页](/img/quickstart/create_homepage.png)
## 2. 填写项目信息
填写项目基本信息。
![](/img/quickstart/create_info.png)
## 3. 创建成功
点击创建项目,创建成功后进入项目主页。
![](/img/quickstart/create_success.png)
---

View File

@ -4,6 +4,7 @@ sidebar_position: 2
---
# 创建第一个开源项目
## 1. 新建项目
平台提供了“新建”按钮,用户可以通过点击快速从零开始创建新的公开或者私有项目。

109
package-lock.json generated
View File

@ -12,7 +12,6 @@
"@docusaurus/core": "2.4.1",
"@docusaurus/plugin-client-redirects": "2.4.1",
"@docusaurus/preset-classic": "2.4.1",
"@easyops-cn/docusaurus-search-local": "^0.35.0",
"@mdx-js/react": "1.6.22",
"@node-rs/jieba": "^1.7.0",
"clsx": "1.2.1",
@ -2642,46 +2641,6 @@
"node": ">=16.14"
}
},
"node_modules/@easyops-cn/autocomplete.js": {
"version": "0.38.1",
"resolved": "https://registry.npmjs.org/@easyops-cn/autocomplete.js/-/autocomplete.js-0.38.1.tgz",
"integrity": "sha512-drg76jS6syilOUmVNkyo1c7ZEBPcPuK+aJA7AksM5ZIIbV57DMHCywiCr+uHyv8BE5jUTU98j/H7gVrkHrWW3Q==",
"dependencies": {
"cssesc": "^3.0.0",
"immediate": "^3.2.3"
}
},
"node_modules/@easyops-cn/docusaurus-search-local": {
"version": "0.35.0",
"resolved": "https://registry.npmjs.org/@easyops-cn/docusaurus-search-local/-/docusaurus-search-local-0.35.0.tgz",
"integrity": "sha512-sHQ8jxsVgHH8MNXJlj20nZZfP/Q0peNTAJwKCN2aPuBwfRIoO0i7LmZFaYKenZmVAW/BD2MtfVd65SREmm3zxg==",
"dependencies": {
"@docusaurus/plugin-content-docs": "^2.0.0-rc.1",
"@docusaurus/theme-translations": "^2.0.0-rc.1",
"@docusaurus/utils": "^2.0.0-rc.1",
"@docusaurus/utils-common": "^2.0.0-rc.1",
"@docusaurus/utils-validation": "^2.0.0-rc.1",
"@easyops-cn/autocomplete.js": "^0.38.1",
"@node-rs/jieba": "^1.6.0",
"cheerio": "^1.0.0-rc.3",
"clsx": "^1.1.1",
"debug": "^4.2.0",
"fs-extra": "^10.0.0",
"klaw-sync": "^6.0.0",
"lunr": "^2.3.9",
"lunr-languages": "^1.4.0",
"mark.js": "^8.11.1",
"tslib": "^2.4.0"
},
"engines": {
"node": ">=12"
},
"peerDependencies": {
"@docusaurus/theme-common": "^2.0.0-rc.1",
"react": "^16.14.0 || ^17.0.0 || ^18.0.0",
"react-dom": "^16.14.0 || ^17.0.0 || ^18.0.0"
}
},
"node_modules/@hapi/hoek": {
"version": "9.3.0",
"resolved": "https://registry.npmjs.org/@hapi/hoek/-/hoek-9.3.0.tgz",
@ -7290,11 +7249,6 @@
"node": ">=14.0.0"
}
},
"node_modules/immediate": {
"version": "3.3.0",
"resolved": "https://registry.npmjs.org/immediate/-/immediate-3.3.0.tgz",
"integrity": "sha512-HR7EVodfFUdQCTIeySw+WDRFJlPcLOJbXfwwZ7Oom6tjsvZ3bOkCDJHehQC3nxJrv7+f9XecwazynjU8e4Vw3Q=="
},
"node_modules/immer": {
"version": "9.0.16",
"resolved": "https://registry.npmjs.org/immer/-/immer-9.0.16.tgz",
@ -7850,14 +7804,6 @@
"node": ">=0.10.0"
}
},
"node_modules/klaw-sync": {
"version": "6.0.0",
"resolved": "https://registry.npmjs.org/klaw-sync/-/klaw-sync-6.0.0.tgz",
"integrity": "sha512-nIeuVSzdCCs6TDPTqI8w1Yre34sSq7AkZ4B3sfOBbI2CgVSB4Du4aLQijFU2+lhAFCwt9+42Hel6lQNIv6AntQ==",
"dependencies": {
"graceful-fs": "^4.1.11"
}
},
"node_modules/kleur": {
"version": "3.0.3",
"resolved": "https://registry.npmjs.org/kleur/-/kleur-3.0.3.tgz",
@ -8006,11 +7952,6 @@
"node": ">=10"
}
},
"node_modules/lunr": {
"version": "2.3.9",
"resolved": "https://registry.npmjs.org/lunr/-/lunr-2.3.9.tgz",
"integrity": "sha512-zTU3DaZaF3Rt9rhN3uBMGQD3dD2/vFQqnvZCDv4dl5iOzq2IZQqTxu90r4E5J+nP70J3ilqVCrbho2eWaeW8Ow=="
},
"node_modules/lunr-languages": {
"version": "1.10.0",
"resolved": "https://registry.npmjs.org/lunr-languages/-/lunr-languages-1.10.0.tgz",
@ -14754,38 +14695,6 @@
"tslib": "^2.4.0"
}
},
"@easyops-cn/autocomplete.js": {
"version": "0.38.1",
"resolved": "https://registry.npmjs.org/@easyops-cn/autocomplete.js/-/autocomplete.js-0.38.1.tgz",
"integrity": "sha512-drg76jS6syilOUmVNkyo1c7ZEBPcPuK+aJA7AksM5ZIIbV57DMHCywiCr+uHyv8BE5jUTU98j/H7gVrkHrWW3Q==",
"requires": {
"cssesc": "^3.0.0",
"immediate": "^3.2.3"
}
},
"@easyops-cn/docusaurus-search-local": {
"version": "0.35.0",
"resolved": "https://registry.npmjs.org/@easyops-cn/docusaurus-search-local/-/docusaurus-search-local-0.35.0.tgz",
"integrity": "sha512-sHQ8jxsVgHH8MNXJlj20nZZfP/Q0peNTAJwKCN2aPuBwfRIoO0i7LmZFaYKenZmVAW/BD2MtfVd65SREmm3zxg==",
"requires": {
"@docusaurus/plugin-content-docs": "^2.0.0-rc.1",
"@docusaurus/theme-translations": "^2.0.0-rc.1",
"@docusaurus/utils": "^2.0.0-rc.1",
"@docusaurus/utils-common": "^2.0.0-rc.1",
"@docusaurus/utils-validation": "^2.0.0-rc.1",
"@easyops-cn/autocomplete.js": "^0.38.1",
"@node-rs/jieba": "^1.6.0",
"cheerio": "^1.0.0-rc.3",
"clsx": "^1.1.1",
"debug": "^4.2.0",
"fs-extra": "^10.0.0",
"klaw-sync": "^6.0.0",
"lunr": "^2.3.9",
"lunr-languages": "^1.4.0",
"mark.js": "^8.11.1",
"tslib": "^2.4.0"
}
},
"@hapi/hoek": {
"version": "9.3.0",
"resolved": "https://registry.npmjs.org/@hapi/hoek/-/hoek-9.3.0.tgz",
@ -18153,11 +18062,6 @@
"queue": "6.0.2"
}
},
"immediate": {
"version": "3.3.0",
"resolved": "https://registry.npmjs.org/immediate/-/immediate-3.3.0.tgz",
"integrity": "sha512-HR7EVodfFUdQCTIeySw+WDRFJlPcLOJbXfwwZ7Oom6tjsvZ3bOkCDJHehQC3nxJrv7+f9XecwazynjU8e4Vw3Q=="
},
"immer": {
"version": "9.0.16",
"resolved": "https://registry.npmjs.org/immer/-/immer-9.0.16.tgz",
@ -18538,14 +18442,6 @@
"resolved": "https://registry.npmjs.org/kind-of/-/kind-of-6.0.3.tgz",
"integrity": "sha512-dcS1ul+9tmeD95T+x28/ehLgd9mENa3LsvDTtzm3vyBEO7RPptvAD+t44WVXaUjTBRcrpFeFlC8WCruUR456hw=="
},
"klaw-sync": {
"version": "6.0.0",
"resolved": "https://registry.npmjs.org/klaw-sync/-/klaw-sync-6.0.0.tgz",
"integrity": "sha512-nIeuVSzdCCs6TDPTqI8w1Yre34sSq7AkZ4B3sfOBbI2CgVSB4Du4aLQijFU2+lhAFCwt9+42Hel6lQNIv6AntQ==",
"requires": {
"graceful-fs": "^4.1.11"
}
},
"kleur": {
"version": "3.0.3",
"resolved": "https://registry.npmjs.org/kleur/-/kleur-3.0.3.tgz",
@ -18661,11 +18557,6 @@
"yallist": "^4.0.0"
}
},
"lunr": {
"version": "2.3.9",
"resolved": "https://registry.npmjs.org/lunr/-/lunr-2.3.9.tgz",
"integrity": "sha512-zTU3DaZaF3Rt9rhN3uBMGQD3dD2/vFQqnvZCDv4dl5iOzq2IZQqTxu90r4E5J+nP70J3ilqVCrbho2eWaeW8Ow=="
},
"lunr-languages": {
"version": "1.10.0",
"resolved": "https://registry.npmjs.org/lunr-languages/-/lunr-languages-1.10.0.tgz",

584
yarn.lock

File diff suppressed because it is too large Load Diff