Skip to content

Commit

Permalink
加速构建
Browse files Browse the repository at this point in the history
  • Loading branch information
Paper-Dragon committed Sep 21, 2024
1 parent f1bde87 commit 94f7914
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 22 deletions.
10 changes: 2 additions & 8 deletions .github/workflows/deploy-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -73,10 +73,9 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: 拉源码
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
fetch-depth: 0
# 如果你文档需要 Git 子模块,取消注释下一行
fetch-depth: 1
submodules: true

- name: 安装 pnpm
Expand All @@ -103,11 +102,6 @@ jobs:
node-version: 18
cache: pnpm

- name: 更改主机名
run: |-
sed -i 's/hostname: "https:\/\/paper-dragon.github.io",/hostname: "https:\/\/www.geekery.cn",/g' src/.vuepress/theme.ts
grep hostname src/.vuepress/theme.ts
- name: 添加状态页面
run: |-
sed -i 's/关于我/内容分发网络部署状态/g' src/.vuepress/navbar.ts
Expand Down
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
Expand Up @@ -652,7 +652,7 @@ Also add information on how to contact you by electronic and paper mail.
If the program does terminal interaction, make it output a short
notice like this when it starts in an interactive mode:

paper-dragon.github.io Copyright (C) 2024 Paper-Dragon
www.geekery.cn Copyright (C) 2024 Paper-Dragon
This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
This is free software, and you are welcome to redistribute it
under certain conditions; type `show c' for details.
Expand Down
4 changes: 2 additions & 2 deletions src/.vuepress/theme.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import sidebar from "./sidebar.js";
// import {cut} from "nodejs-jieba";

export default hopeTheme({
hostname: "https://paper-dragon.github.io",
hostname: "https://www.geekery.cn",

fullscreen: true,

Expand All @@ -18,7 +18,7 @@ export default hopeTheme({

logo: "/logo.svg",

repo: "https://github.com/Paper-Dragon/paper-dragon.github.io",
repo: "https://github.com/Paper-Dragon/notebook",

docsDir: "src",

Expand Down
7 changes: 0 additions & 7 deletions src/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -271,10 +271,6 @@ footer: |-
<img src="http://www.beian.gov.cn/img/ghs.png" alt="" style="width:1rem;vertical-align:middle;"> 鲁ICP备2023019857号-2
</a>
/ -->
<a target="_blank" rel="noopener" href="https://github.com/Paper-Dragon/paper-dragon.github.io/deployments/github-pages">
<img src="https://img.shields.io/badge/Github-Pages-76B900.svg?logo=github&logoColor=white" style="width:auto;height:19px;vertical-align:middle;">
</a>
&nbsp;
<a href="https://www.travellings.cn/go.html" target="_blank"><img src="https://www.travellings.cn/assets/logo.gif" style="width:auto;height:19px;vertical-align:middle;"></a>
</div>
copyright: |-
Expand All @@ -284,7 +280,6 @@ copyright: |-

## 词云


::: echarts

```js
Expand Down Expand Up @@ -404,5 +399,3 @@ myChart.resize({
```

:::


Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ log_level = info
log_max_days = 2
# 认证超时时间
authentication_timeout = 900
# 认证token,客户端需要和此对应,要长,建议在 https://paper-dragon.github.io/RandomPassword/ 生成
# 认证token,客户端需要和此对应,要长,建议在 https://password.geekery.cn/ 生成
token="abc123abc"
# 最大连接数
max_pool_count = 5
Expand Down
6 changes: 3 additions & 3 deletions src/note-book/Git/Git基础技巧.md
Original file line number Diff line number Diff line change
Expand Up @@ -703,9 +703,9 @@ git push -f origin master # 强制推送文件,缩写 -f(全写--force)
## clone

```bash
git clone git://github.com/Paper-Dragon/paper-dragon.github.io
git clone git://github.com/Paper-Dragon/paper-dragon.github.io --depth=1
git clone git://github.com/Paper-Dragon/paper-dragon.github.io mypro # 克隆到自定义文件夹
git clone git://github.com/Paper-Dragon/notebook
git clone git://github.com/Paper-Dragon/notebook --depth=1
git clone git://github.com/Paper-Dragon/notebook mypro # 克隆到自定义文件夹
git clone [user@]example.com:path/to/repo.git/ # SSH协议还有另一种写法。
# 克隆指定的分支
git clone -b dev --single-branch <repository URL>
Expand Down

0 comments on commit 94f7914

Please sign in to comment.