Compare commits
51 Commits
dev_search
...
master
Author | SHA1 | Date |
---|---|---|
|
5dc425a1ca | |
|
ba351675bb | |
|
9b8e1eaca9 | |
|
9e9b3d3f6b | |
|
82e142fe61 | |
|
d4d8fb0698 | |
|
1d600fdb8c | |
|
5e5e9132f9 | |
|
660d16c2f3 | |
|
93119c5a98 | |
|
b96039f842 | |
|
d8b7a009d4 | |
|
4d7553e423 | |
|
35089c7ea1 | |
|
2d39777ef5 | |
|
f5f1fb8561 | |
|
3e125bff36 | |
|
3c27c446a4 | |
|
72d422c00b | |
|
7e4bd1c729 | |
|
fd972dd379 | |
|
92a5b92318 | |
|
e2c22f2b4a | |
|
7f61a57c0d | |
|
66f93564e4 | |
|
bd0ab5c69e | |
|
42885c0c51 | |
|
b562419c61 | |
|
7a1f642f94 | |
|
47494e7e8c | |
|
6b04121d48 | |
|
0a13a0cea6 | |
|
6b9fe91f76 | |
|
c141c516cc | |
|
9cad59ae43 | |
|
5225b382df | |
|
7e466465da | |
|
07625bc96e | |
|
221b192361 | |
|
453a22dea1 | |
|
210fd16129 | |
|
18cf77225b | |
|
28040892f8 | |
|
500420ef77 | |
|
de7d694972 | |
|
2c606be80c | |
|
437c803a8a | |
|
02b74f20b3 | |
|
9c4b476163 | |
|
cc72fdd7f3 | |
|
62c3efae4b |
|
@ -0,0 +1,85 @@
|
||||||
|
version: 2
|
||||||
|
name: 【生产环境】发布更新
|
||||||
|
description: "非管理员请勿操作 "
|
||||||
|
global:
|
||||||
|
concurrent: 1
|
||||||
|
workflow:
|
||||||
|
- ref: start
|
||||||
|
name: 开始
|
||||||
|
task: start
|
||||||
|
- ref: nodejs_build_0
|
||||||
|
name: nodejs构建
|
||||||
|
task: nodejs_build@1.7.0-node18
|
||||||
|
input:
|
||||||
|
workspace: ((git_clone_0.git_path))
|
||||||
|
build_action: '"build"'
|
||||||
|
build_args: '""'
|
||||||
|
install_args: '""'
|
||||||
|
registry_url: '""'
|
||||||
|
disturl_url: '""'
|
||||||
|
sass_binary_site_url: '""'
|
||||||
|
package_management_type: '"yarn"'
|
||||||
|
vc_package_dir: '"."'
|
||||||
|
cache_path: '"/cache"'
|
||||||
|
needs:
|
||||||
|
- git_clone_0
|
||||||
|
- ref: git_clone_0
|
||||||
|
name: git clone
|
||||||
|
task: git_clone@1.2.9
|
||||||
|
input:
|
||||||
|
remote_url: '"https://www.gitlink.org.cn/gitlink/gitlink_help_center.git"'
|
||||||
|
ref: '"refs/heads/master"'
|
||||||
|
commit_id: '""'
|
||||||
|
depth: 1
|
||||||
|
needs:
|
||||||
|
- dingtalk_notice_text_0
|
||||||
|
- ref: end
|
||||||
|
name: 结束
|
||||||
|
task: end
|
||||||
|
needs:
|
||||||
|
- dingtalk_notice_text_1
|
||||||
|
- ref: scp_resource_0
|
||||||
|
name: scp替换打包文件到服务器
|
||||||
|
task: scp_resource@1.4.3
|
||||||
|
input:
|
||||||
|
ssh_pass: ((help_pro_server.password))
|
||||||
|
ssh_ip: '"106.75.45.236"'
|
||||||
|
ssh_port: '"22"'
|
||||||
|
ssh_user: '"root"'
|
||||||
|
remote_file: '"/root/gitlink_help_center"'
|
||||||
|
local_file: ((git_clone_0.git_path))+"/build"
|
||||||
|
file_content: '""'
|
||||||
|
needs:
|
||||||
|
- nodejs_build_0
|
||||||
|
- ref: ssh_cmd_0
|
||||||
|
name: 重启nginx
|
||||||
|
task: ssh_cmd@1.1.1
|
||||||
|
input:
|
||||||
|
ssh_pass: ((help_pro_server.password))
|
||||||
|
ssh_ip: '"106.75.45.236"'
|
||||||
|
ssh_port: '"22"'
|
||||||
|
ssh_user: '"root"'
|
||||||
|
ssh_cmd: '"service nginx restart"'
|
||||||
|
needs:
|
||||||
|
- scp_resource_0
|
||||||
|
- ref: dingtalk_notice_text_0
|
||||||
|
name: 钉钉通知-开始更新
|
||||||
|
task: dingtalk_notice_text@1.0.2
|
||||||
|
input:
|
||||||
|
boot_webhook_url: ((dingdingtalk.url))
|
||||||
|
msg_text: '"GitLink帮助中心-生产环境开始更新。。。"'
|
||||||
|
at_user_ids: '"[]"'
|
||||||
|
at_mobiles: '"[]"'
|
||||||
|
needs:
|
||||||
|
- start
|
||||||
|
- ref: dingtalk_notice_text_1
|
||||||
|
name: 钉钉通知-更新完成
|
||||||
|
task: dingtalk_notice_text@1.0.2
|
||||||
|
input:
|
||||||
|
boot_webhook_url: ((dingdingtalk.url))
|
||||||
|
msg_text: '"GitLink帮助中心-生产环境更新完成"'
|
||||||
|
at_user_ids: '"[]"'
|
||||||
|
at_mobiles: '"[]"'
|
||||||
|
needs:
|
||||||
|
- ssh_cmd_0
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
{
|
{
|
||||||
"label": "Bot市场",
|
"label": "机器人(Bot)",
|
||||||
"position": 8
|
"position": 8
|
||||||
}
|
}
|
||||||
|
|
|
@ -0,0 +1,4 @@
|
||||||
|
{
|
||||||
|
"label": "个人主页建站",
|
||||||
|
"position": 13
|
||||||
|
}
|
|
@ -0,0 +1,64 @@
|
||||||
|
---
|
||||||
|
sidebar_label: '建站工具'
|
||||||
|
sidebar_position: 2
|
||||||
|
---
|
||||||
|
# 个人建站工具
|
||||||
|
|
||||||
|
个人主页建站是一个免费的静态网页托管服务,可用于托管静态个人主页、个人博客等静态页面。个人建站不同工具如下
|
||||||
|
|
||||||
|
### Hugo工具
|
||||||
|
|
||||||
|
|
||||||
|
使用Hugo 工具创建的仓库,需要将代码仓库中config.toml 文件中的 baseURL 修改
|
||||||
|
将值改成 个人建站服务中显示的网站地址,
|
||||||
|
例如: 现在有一个网站地址为 http://KingChan.gitlink.net
|
||||||
|
那么 config.toml 中的 baseURL 应该为 http://KingChan.gitlink.net
|
||||||
|

|
||||||
|
|
||||||
|
修改完毕后点击提交
|
||||||
|

|
||||||
|
提交完成后,开始部署
|
||||||
|

|
||||||
|
静态页面预览
|
||||||
|

|
||||||
|
|
||||||
|
### jekyll工具
|
||||||
|
|
||||||
|
如果是jekyll项目:
|
||||||
|
使用jekyll工具创建的个人站点,需要对代码仓库中 _config.yml文件中的 baseurl和url两个值进行修改,jekyll的配置文件比较特殊,需要根据 个人建站服务 中显示的 网站地址
|
||||||
|
内容修改两个值。
|
||||||
|
例如: 现在有一个网站地址为 http://KingChan.gitlink.net
|
||||||
|
那么结果如下:
|
||||||
|
baseurl: "/"
|
||||||
|
url: "http://KingChan.gitlink.net"
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|
修改完成后点击 提交变更
|
||||||
|

|
||||||
|
提交完成后,前往建站服务开始部署
|
||||||
|

|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|
### hexo工具
|
||||||
|
|
||||||
|
如果是 hexo项目:
|
||||||
|
使用Hexo工具创建的仓库,需要将代码仓库中_config.yml 文件中的 url修改
|
||||||
|
将值改成 个人建站服务中显示的网站地址,
|
||||||
|
例如: 现在有一个网站地址为 http://KingChan.gitlink.net
|
||||||
|
|
||||||
|
那么 _config.toml 中的 url应该为 http://KingChan.gitlink.net
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|
修改完毕后提交变更
|
||||||
|

|
||||||
|
提交完成后,前往建站服务开始部署
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|

|
||||||
|
|
|
@ -0,0 +1,50 @@
|
||||||
|
---
|
||||||
|
sidebar_label: '建站流程'
|
||||||
|
sidebar_position: 1
|
||||||
|
---
|
||||||
|
# 个人建站流程
|
||||||
|
### 我的站点
|
||||||
|
鼠标移动至右上角头像位置,点击设置进入我的设置界面
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|
点击左测面板中 个人建站 - 我的站点
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|
### 创建站点
|
||||||
|
|
||||||
|
在我的站点界面点击 新建站点 按钮,进入新建站点界面
|
||||||
|
|
||||||
|
在新建站点界面输入站点名称,此名称将在我的站点列表中展示
|
||||||
|
|
||||||
|
并且选择对应的建站工具与主题,我们为您提供了3种不同的工具,每个工具10种主题,一共30种供您挑选
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|
填写完毕后,点击页面下方蓝色按钮: 创建站点
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|
这样您就拥有了一个网站,并且有了一个代码仓库。
|
||||||
|
|
||||||
|
在仓库的 服务 一栏中 个人建站服务的操作界面,这里您可以查看一些您的站点状态、站点名称、网站地址、建站工具、建站时间
|
||||||
|
|
||||||
|
### 部署站点
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|
点击去部署按钮,选择想要部署的分支后点击确定
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|
等待程序运行一会儿后,会返回一些服务器部署信息给您
|
||||||
|
|
||||||
|
部署成功后您就可以访问站点了。点击网站地址就可以跳转
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|
### 部署完成
|
||||||
|
|
||||||
|

|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
{
|
{
|
||||||
"label": "平台公告",
|
"label": "平台公告",
|
||||||
"position": 11
|
"position": 99
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
{
|
{
|
||||||
"label": "服务协议",
|
"label": "服务协议",
|
||||||
"position": 12
|
"position": 100
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
---
|
---
|
||||||
sidebar_label: 组织简介
|
sidebar_label: '组织简介'
|
||||||
sidebar_position: 1
|
sidebar_position: 1
|
||||||
---
|
---
|
||||||
|
|
||||||
|
|
|
@ -6,7 +6,7 @@ import("@easyops-cn/docusaurus-search-local").PluginOptions;
|
||||||
module.exports = {
|
module.exports = {
|
||||||
title: 'gitlink',
|
title: 'gitlink',
|
||||||
tagline:'gitlink帮助中心',
|
tagline:'gitlink帮助中心',
|
||||||
url: 'https://boxyhq.com',
|
url: 'https://help.gitlink.org.cn/',
|
||||||
baseUrl: '/',
|
baseUrl: '/',
|
||||||
onBrokenLinks: 'ignore',
|
onBrokenLinks: 'ignore',
|
||||||
onBrokenMarkdownLinks: 'ignore',
|
onBrokenMarkdownLinks: 'ignore',
|
||||||
|
@ -16,6 +16,12 @@ module.exports = {
|
||||||
scripts: [],
|
scripts: [],
|
||||||
// stylesheets: ['styles/dark-mode.css'],
|
// stylesheets: ['styles/dark-mode.css'],
|
||||||
themeConfig: {
|
themeConfig: {
|
||||||
|
metadata:[
|
||||||
|
{name:"Keywords",content:"Gitlink,forgeplus,GitLink,gitLink,GitLink,gitlink,帮助中心"},
|
||||||
|
{name:"hostname",content:"gitlink.org.cn"},
|
||||||
|
{property:"og:site_name",content:"GitLink"},
|
||||||
|
{property:"og:image:alt",content:"GitLink(确实开源)是中国计算机学会CCF官方指定的开源创新服务平台 - Gitlink/forgeplus:GitLink(确实开源)是中国计算机学会CCF官方指定的开源创新服务平台 for gitlink Gitlink/forgeplus for git"}
|
||||||
|
],
|
||||||
prism: {
|
prism: {
|
||||||
theme: lightCodeTheme,
|
theme: lightCodeTheme,
|
||||||
darkTheme: darkCodeTheme,
|
darkTheme: darkCodeTheme,
|
||||||
|
@ -41,7 +47,8 @@ module.exports = {
|
||||||
// width: '32px',
|
// width: '32px',
|
||||||
// height: '32px',
|
// height: '32px',
|
||||||
alt: 'gitlink',
|
alt: 'gitlink',
|
||||||
src: 'img/gitlink.png'
|
src: 'img/gitlink.png',
|
||||||
|
href:"https://www.gitlink.org.cn/"
|
||||||
// srcDark: 'img/logo-dark.png',
|
// srcDark: 'img/logo-dark.png',
|
||||||
},
|
},
|
||||||
items: [
|
items: [
|
||||||
|
|
|
@ -48,14 +48,16 @@ html[data-theme='dark'] .docusaurus-highlight-code-line {
|
||||||
background-color: #33416b;
|
background-color: #33416b;
|
||||||
}
|
}
|
||||||
.footer{
|
.footer{
|
||||||
height: 473px;
|
height:450px;
|
||||||
position: relative;
|
position: relative;
|
||||||
background: #1e1e1e;
|
background: #1e1e1e;
|
||||||
|
padding:0px;
|
||||||
}
|
}
|
||||||
.container{
|
.container{
|
||||||
height: 100%;
|
height: 100%;
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
|
justify-content: space-around;
|
||||||
}
|
}
|
||||||
.footer__bottom .margin-bottom--sm{
|
.footer__bottom .margin-bottom--sm{
|
||||||
position: absolute;
|
position: absolute;
|
||||||
|
@ -108,6 +110,10 @@ html[data-theme='dark'] .docusaurus-highlight-code-line {
|
||||||
}
|
}
|
||||||
.container .footer__links{
|
.container .footer__links{
|
||||||
margin-left: 420px;
|
margin-left: 420px;
|
||||||
|
margin-top: 4rem;
|
||||||
|
}
|
||||||
|
.container .footer__logo{
|
||||||
|
margin-top: 5rem!important;
|
||||||
}
|
}
|
||||||
.container .footer__links .footer__col .footer__item{
|
.container .footer__links .footer__col .footer__item{
|
||||||
color: #bdc2d1;
|
color: #bdc2d1;
|
||||||
|
|
After Width: | Height: | Size: 105 KiB |
After Width: | Height: | Size: 41 KiB |
After Width: | Height: | Size: 77 KiB |
After Width: | Height: | Size: 91 KiB |
After Width: | Height: | Size: 104 KiB |
After Width: | Height: | Size: 58 KiB |
After Width: | Height: | Size: 20 KiB |
After Width: | Height: | Size: 57 KiB |
After Width: | Height: | Size: 63 KiB |
After Width: | Height: | Size: 111 KiB |
After Width: | Height: | Size: 33 KiB |
After Width: | Height: | Size: 159 KiB |
After Width: | Height: | Size: 214 KiB |
After Width: | Height: | Size: 942 KiB |
After Width: | Height: | Size: 151 KiB |
After Width: | Height: | Size: 100 KiB |
After Width: | Height: | Size: 116 KiB |
After Width: | Height: | Size: 159 KiB |
After Width: | Height: | Size: 220 KiB |
After Width: | Height: | Size: 116 KiB |