Skip to content

Commit e426e22

Browse files
committed
更换官网域名
1 parent ccb482d commit e426e22

5 files changed

Lines changed: 23 additions & 31 deletions

File tree

.github/workflows/vuepress.yml

Lines changed: 11 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -38,23 +38,15 @@ jobs:
3838
git commit -m 'Update'
3939
git push -f https://x-access-token:${GITHUB_TOKEN}@github.com/fluid-dev/hexo-fluid-docs.git master
4040
41-
- name: Setup qshell
42-
uses: foxundermoon/setup-qshell@v5
41+
- name: Upload to COS
42+
uses: zkqiang/tencent-cos-action@v1
4343
with:
44-
version: '2.12.0'
45-
46-
- name: Upload to OSS
47-
env:
48-
QINIU_ACCESSKEY: ${{ secrets.QINIU_ACCESSKEY }}
49-
QINIU_SECRETKEY: ${{ secrets.QINIU_SECRETKEY }}
50-
QINIU_BUCKET: 'fluid-dev'
51-
run: |
52-
rm -rf ./docs/.vuepress/dist/.git
53-
sed -i 's/\/hexo-fluid-docs\//\/docs\//g' `grep 'hexo-fluid-docs' -rl ./docs/.vuepress/dist/*`
54-
qshell account $QINIU_ACCESSKEY $QINIU_SECRETKEY action
55-
qshell listbucket $QINIU_BUCKET -o bucket.txt
56-
awk -F '\t' '/docs\// {print $1}' bucket.txt > to_delete.txt
57-
qshell batchdelete -F'\t' --force $QINIU_BUCKET -i to_delete.txt
58-
qshell qupload2 --src-dir=./docs/.vuepress/dist --bucket=$QINIU_BUCKET --key-prefix=docs/ --overwrite
59-
echo 'https://fluid-dev.com/docs/\nhttps://hexo.fluid-dev.com/docs/' >> cdnrefresh.txt
60-
qshell cdnrefresh --dirs -i cdnrefresh.txt
44+
commands: |
45+
rm -rf ./docs/.vuepress/dist/.git
46+
sed -i 's/\/hexo-fluid-docs\//\/docs\//g' `grep 'hexo-fluid-docs' -rl ./docs/.vuepress/dist/*`
47+
rm -r -f cos://${{ secrets.COS_BUCKET }}/docs/
48+
cp -r ./docs/.vuepress/dist/ cos://${{ secrets.COS_BUCKET }}/docs/
49+
secret_id: ${{ secrets.COS_SECRET_ID }}
50+
secret_key: ${{ secrets.COS_SECRET_KEY }}
51+
bucket: ${{ secrets.COS_BUCKET }}
52+
region: ${{ secrets.COS_REGION }}

docs/en/guide/README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ banner_img: /img/bg/example.jpg # At /source/img/bg/example.jpg
8181
To use a url:
8282

8383
```yaml
84-
banner_img: https://static.zkqiang.cn/example.jpg
84+
banner_img: https://static.fluid.ist/example.jpg
8585
```
8686

8787
::: tip
@@ -138,9 +138,9 @@ menu:
138138
key: 'Docs',
139139
icon: 'iconfont icon-books',
140140
submenu: [
141-
{ key: 'Guide', link: 'https://hexo.fluid-dev.com/docs/en/guide/' },
142-
{ key: 'Advance', link: 'https://hexo.fluid-dev.com/docs/en/advance/' },
143-
{ key: 'Icon', link: 'https://hexo.fluid-dev.com/docs/en/icon/' }
141+
{ key: 'Guide', link: 'https://fluid.ist/docs/en/guide/' },
142+
{ key: 'Advance', link: 'https://fluid.ist/docs/en/advance/' },
143+
{ key: 'Icon', link: 'https://fluid.ist/docs/en/icon/' }
144144
]
145145
}
146146
```
@@ -1044,7 +1044,7 @@ links:
10441044
- {
10451045
title: 'Fluid Docs',
10461046
intro: 'Theme usage guide',
1047-
link: 'https://hexo.fluid-dev.com/docs/',
1047+
link: 'https://fluid.ist/docs/',
10481048
avatar: '/img/favicon.png'
10491049
}
10501050
default_avatar: /img/avatar.png

docs/en/start/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ Developed by [Fluid-dev](https://github.com/fluid-dev), Fluid is an elegant Mate
66

77
GitHub Repo: [https://github.com/fluid-dev/hexo-theme-fluid](https://github.com/fluid-dev/hexo-theme-fluid)
88

9-
Preview: [Fluid's blog](https://hexo.fluid-dev.com/) [zkqiang's blog](https://zkqiang.cn)
9+
Preview: [Fluid's blog](https://fluid.ist/)
1010

1111
## Quick Start
1212

docs/guide/README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ banner_img: /img/bg/example.jpg # 对应存放在 /source/img/bg/example.jpg
9595
指向外站链接:
9696

9797
```yaml
98-
banner_img: https://static.zkqiang.cn/example.jpg
98+
banner_img: https://static.fluid.ist/example.jpg
9999
```
100100

101101
:::tip
@@ -156,9 +156,9 @@ menu:
156156
key: '文档',
157157
icon: 'iconfont icon-books',
158158
submenu: [
159-
{ key: '主题博客', link: 'https://hexo.fluid-dev.com/' },
160-
{ key: '配置指南', link: 'https://hexo.fluid-dev.com/docs/guide/' },
161-
{ key: '图标用法', link: 'https://hexo.fluid-dev.com/docs/icon/' }
159+
{ key: '主题博客', link: 'https://fluid.ist/' },
160+
{ key: '配置指南', link: 'https://fluid.ist/docs/guide/' },
161+
{ key: '图标用法', link: 'https://fluid.ist/docs/icon/' }
162162
]
163163
}
164164
```
@@ -1165,7 +1165,7 @@ links:
11651165
- {
11661166
title: 'Fluid Docs',
11671167
intro: '主题使用指南',
1168-
link: 'https://hexo.fluid-dev.com/docs/',
1168+
link: 'https://fluid.ist/docs/',
11691169
avatar: '/img/favicon.png'
11701170
}
11711171
default_avatar: /img/avatar.png

docs/start/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ Fluid 是基于 Hexo 的一款 Material Design 风格的主题,由 [Fluid-dev]
66

77
主题 GitHub: [https://github.com/fluid-dev/hexo-theme-fluid](https://github.com/fluid-dev/hexo-theme-fluid)
88

9-
预览网站:[Fluid's blog](https://hexo.fluid-dev.com/) [zkqiang's blog](https://zkqiang.cn)
9+
预览网站:[Fluid's blog](https://fluid.ist/)
1010

1111
## 安装主题
1212

0 commit comments

Comments
 (0)