Skip to content

Commit 7d740e2

Browse files
committed
Initial commit
1 parent efe79b6 commit 7d740e2

File tree

6 files changed

+110
-109
lines changed

6 files changed

+110
-109
lines changed

.github/workflows/deploy.yml

+48-65
Original file line numberDiff line numberDiff line change
@@ -1,66 +1,49 @@
1-
# 构建 VitePress 站点并将其部署到 GitHub Pages 的示例工作流程
2-
#
3-
name: Deploy VitePress site to Pages
4-
5-
on:
6-
# 在针对 `main` 分支的推送上运行。如果你
7-
# 使用 `master` 分支作为默认分支,请将其更改为 `master`
8-
push:
9-
branches: [main]
10-
11-
# 允许你从 Actions 选项卡手动运行此工作流程
12-
workflow_dispatch:
13-
14-
# 设置 GITHUB_TOKEN 的权限,以允许部署到 GitHub Pages
15-
permissions:
16-
contents: read
17-
pages: write
18-
id-token: write
19-
20-
# 只允许同时进行一次部署,跳过正在运行和最新队列之间的运行队列
21-
# 但是,不要取消正在进行的运行,因为我们希望允许这些生产部署完成
22-
concurrency:
23-
group: pages
24-
cancel-in-progress: false
25-
26-
jobs:
27-
# 构建工作
28-
build:
29-
runs-on: ubuntu-latest
30-
steps:
31-
- name: Checkout
32-
uses: actions/checkout@v4
33-
with:
34-
fetch-depth: 0 # 如果未启用 lastUpdated,则不需要
35-
# - uses: pnpm/action-setup@v3 # 如果使用 pnpm,请取消此区域注释
36-
# with:
37-
# version: 9
38-
# - uses: oven-sh/setup-bun@v1 # 如果使用 Bun,请取消注释
39-
- name: Setup Node
40-
uses: actions/setup-node@v4
41-
with:
42-
node-version: 20
43-
cache: npm # 或 pnpm / yarn
44-
- name: Setup Pages
45-
uses: actions/configure-pages@v4
46-
- name: Install dependencies
47-
run: npm install --legacy-peer-deps # 修改这行,添加 --legacy-peer-deps 参数
48-
- name: Build with VitePress
49-
run: npm run docs:build # 或 pnpm docs:build / yarn docs:build / bun run docs:build
50-
- name: Upload artifact
51-
uses: actions/upload-pages-artifact@v3
52-
with:
53-
path: docs/.vitepress/dist
54-
55-
# 部署工作
56-
deploy:
57-
environment:
58-
name: github-pages
59-
url: ${{ steps.deployment.outputs.page_url }}
60-
needs: build
61-
runs-on: ubuntu-latest
62-
name: Deploy
63-
steps:
64-
- name: Deploy to GitHub Pages
65-
id: deployment
1+
name: Deploy VitePress site to Pages
2+
3+
on:
4+
push:
5+
branches: [main]
6+
workflow_dispatch:
7+
8+
permissions:
9+
contents: read
10+
pages: write
11+
id-token: write
12+
13+
concurrency:
14+
group: pages
15+
cancel-in-progress: false
16+
17+
jobs:
18+
build:
19+
runs-on: ubuntu-latest
20+
steps:
21+
- name: Checkout
22+
uses: actions/checkout@v4
23+
- name: Setup Node
24+
uses: actions/setup-node@v4
25+
with:
26+
node-version: 20
27+
cache: npm
28+
- name: Setup Pages
29+
uses: actions/configure-pages@v4
30+
- name: Install dependencies
31+
run: npm install --legacy-peer-deps
32+
- name: Build
33+
run: npm run docs:build
34+
- name: Upload artifact
35+
uses: actions/upload-pages-artifact@v3
36+
with:
37+
path: docs/.vitepress/dist
38+
39+
deploy:
40+
environment:
41+
name: github-pages
42+
url: ${{ steps.deployment.outputs.page_url }}
43+
needs: build
44+
runs-on: ubuntu-latest
45+
name: Deploy
46+
steps:
47+
- name: Deploy to GitHub Pages
48+
id: deployment
6649
uses: actions/deploy-pages@v4

docs/.vitepress/config.mts

+9-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,15 @@ import { defineConfig } from 'vitepress'
33
export default defineConfig({
44
title: "fishcpy docs",
55
description: "fishcpy docs",
6-
base: '/docs/', // 添加这行,'docs' 替换为你的仓库名
6+
base: '/docs/',
7+
vite: {
8+
server: {
9+
host: '0.0.0.0',
10+
allowedHosts: ['docs.fishcpy.top'],
11+
port: 5173,
12+
strictPort: false
13+
}
14+
},
715
themeConfig: {
816
nav: [
917
{ text: '首页', link: '/' },

docs/.vitepress/theme/custom.css

+13-13
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
1-
.footer-custom {
2-
border-top: none !important;
3-
padding-top: 24px;
4-
margin-top: 24px;
5-
text-align: center;
6-
}
7-
8-
.VPDoc .content-container {
9-
max-width: 100% !important;
10-
}
11-
12-
.VPFooter {
13-
border-top: none !important;
1+
.footer-custom {
2+
border-top: none !important;
3+
padding-top: 24px;
4+
margin-top: 24px;
5+
text-align: center;
6+
}
7+
8+
.VPDoc .content-container {
9+
max-width: 100% !important;
10+
}
11+
12+
.VPFooter {
13+
border-top: none !important;
1414
}

docs/index.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ features:
1818
- icon:
1919
src: /img/pcl/pcl-ce/logo.ico
2020
title: PCL2 CE 文档 | 点击查看 →
21-
details: PCL2 CE 的官方文档,包含使用指南和详细说明
21+
details: PCL2 CE 玩家制作的文档,包含使用指南和详细说明
2222
text: Get Started
2323
link: /pcl2-ce/
2424
---
+30-29
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,30 @@
1-
# 下载前准备工作
2-
在这里介绍如何使用下载加速器/download.html
3-
4-
::: tip 提示
5-
### 请确保您的设备符合下面的要求
6-
- 设备为<mark>Windows设备</mark>
7-
- Windows 版本为:<mark>Windows 10 20H2 (Build 19042) 或更高版本</mark>
8-
- .NET 版本要求:<mark>.NET Framework 4.8.1 或以上</mark>
9-
#### 如果你可以直接打开 [<mark>**这个网站**</mark>](https://github.com/PCL-Community/PCL2-CE) 请直接跳转到下一章 [下载](./download.html)
10-
:::
11-
12-
# 1.下载加速器
13-
1.1打开Watt Toolkit [<mark>**官网,点击这里**</mark>](https://steampp.net/)。<br>
14-
1.2点击下载 Windows 版<br>
15-
![Watt Toolkit 下载页面](https://imgse.fishcpy.top/upload/thumbnails/2025/w800/2025-03-09231438compressed.png)<br>
16-
1.3 点击 接受并下载<br>
17-
![接受并下载](https://imgse.fishcpy.top/upload/thumbnails/2025/w800/2025-03-09234730compressed.png)<br>
18-
1.4 蓝奏云网盘
19-
![蓝奏云网盘](https://imgse.fishcpy.top/upload/thumbnails/2025/w800/2025-03-09235347compressed.png)<br>
20-
1.5 输入密码 1234<br>
21-
1.6 选择 Steam++_v x.x.x-rc.15_win_x64.exe下载
22-
# 2.安装加速器+使用
23-
2.1 双击运行 Steam++_v x.x.x-rc.15_win_x64.exe<br>
24-
![运行](https://imgse.fishcpy.top/upload/thumbnails/2025/w800/2025-03-09235632compressed.png)<br>
25-
2.2 点击立即安装<br>
26-
2.3 安装完成后,点击立即体验
27-
2.4 打开后点击 网络加速 , 勾线github。
28-
![github](https://imgse.fishcpy.top/upload/thumbnails/2025/w800/2025-03-10000138compressed.png)<br>
29-
2.5 测试是否能访问[<mark>**这个网站**</mark>](https://github.com/PCL-Community/PCL2-CE)
1+
# 下载前准备工作
2+
在这里介绍如何使用下载加速器/download.html
3+
4+
::: tip 提示
5+
### 请确保您的设备符合下面的要求
6+
- 设备为<mark>Windows设备</mark>
7+
- Windows 版本为:<mark>Windows 10 20H2 (Build 19042) 或更高版本</mark>
8+
- .NET 版本要求:<mark>.NET Framework 4.8.1 或以上</mark>
9+
#### 如果你可以直接打开 [<mark>**这个网站**</mark>](https://github.com/PCL-Community/PCL2-CE) 请直接跳转到下一章 [下载](./download.html)
10+
:::
11+
12+
# 1.下载加速器
13+
1.1打开Watt Toolkit [<mark>**官网,点击这里**</mark>](https://steampp.net/)。<br>
14+
1.2点击下载 Windows 版<br>
15+
![Watt Toolkit 下载页面](https://imgse.fishcpy.top/upload/thumbnails/2025/w800/2025-03-09231438compressed.png)<br>
16+
1.3 点击 接受并下载<br>
17+
![接受并下载](https://imgse.fishcpy.top/upload/thumbnails/2025/w800/2025-03-09234730compressed.png)<br>
18+
1.4 蓝奏云网盘
19+
![蓝奏云网盘](https://imgse.fishcpy.top/upload/thumbnails/2025/w800/2025-03-09235347compressed.png)<br>
20+
1.5 输入密码 1234<br>
21+
1.6 选择 Steam++_v x.x.x-rc.15_win_x64.exe下载
22+
# 2.安装加速器+使用
23+
2.1 双击运行 Steam++_v x.x.x-rc.15_win_x64.exe<br>
24+
![运行](https://imgse.fishcpy.top/upload/thumbnails/2025/w800/2025-03-09235632compressed.png)<br>
25+
2.2 点击立即安装<br>
26+
2.3 安装完成后,点击立即体验
27+
2.4 打开后点击 网络加速 , 勾线github。
28+
![github](https://imgse.fishcpy.top/upload/thumbnails/2025/w800/2025-03-10000138compressed.png)<br>
29+
2.5 点击一键加速<br>
30+
2.6 测试是否能访问[<mark>**这个网站**</mark>](https://github.com/PCL-Community/PCL2-CE)

vite.config.ts

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
import { defineConfig } from 'vite'
2+
3+
export default defineConfig({
4+
server: {
5+
allowedHosts: [
6+
'docs.fishcpy.top'
7+
]
8+
}
9+
})

0 commit comments

Comments
 (0)