2
0
mirror of https://github.com/acepanel/acepanel.github.io.git synced 2026-02-03 21:07:22 +08:00

chore: 更新目录结构

This commit is contained in:
2026-01-25 23:38:11 +08:00
parent 5ce2dd3ebe
commit 8222160298
18 changed files with 90 additions and 30 deletions

57
CLAUDE.md Normal file
View File

@@ -0,0 +1,57 @@
# CLAUDE.md
This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository.
## 项目概述
这是 AcePanel服务器运维管理面板的官方文档网站使用 VitePress 构建,支持多语言(简体中文、繁体中文、英文)。
## 常用命令
```bash
# 安装依赖
pnpm install
# 启动开发服务器
pnpm dev
# 构建生产版本
pnpm build
# 预览构建结果
pnpm preview
```
## 项目架构
### 目录结构
- `en/` - 英文文档源语言Crowdin 翻译源)
- `zh_CN/` - 简体中文文档
- `zh_TW/` - 繁体中文文档
- `.vitepress/config/` - VitePress 配置
- `index.ts` - 主配置入口,定义多语言 locales
- `shared.ts` - 共享配置markdown 插件、主题配置等)
- `en.ts` / `zh_CN.ts` / `zh_TW.ts` - 各语言独立配置(导航、侧边栏)
- `.vitepress/theme/` - 自定义主题扩展
- `public/` - 静态资源
### 多语言机制
- 简体中文 (`zh_CN`) 是根路由,通过 `rewrites` 配置映射到根路径
- 英文和繁体中文分别在 `/en/``/zh_TW/` 路径下
- 使用 Crowdin 进行翻译管理,英文为源语言
### 版本历史
版本数据从 `https://api.acepanel.net/versions` API 动态获取,在配置文件构建时拉取最新 10 个版本。
### 使用的 VitePress 插件
- `@shikijs/vitepress-twoslash` - TypeScript 代码悬浮提示
- `vitepress-plugin-group-icons` - 代码块分组图标
- `vitepress-markdown-timeline` - 时间线组件
## 部署
推送到 `main` 分支会自动触发 GitHub Actions 部署到 GitHub Pages。

View File

@@ -43,21 +43,24 @@ features:
<div style="display: flex; justify-content: space-around; align-items: center; flex-wrap: wrap;">
<a href="https://www.weixiaoduo.com/" style="padding: 1rem;">
<img width="160" src="/wxd.png" alt="WeiXiaoDuo">
<img width="160" src="/partners/wxd.png" alt="WeiXiaoDuo">
</a>
<a href="https://www.dkdun.cn/aff/MQZZNVHQ" style="padding: 1rem;">
<img width="160" src="/dk.png" alt="LF Cloud">
<img width="160" src="/partners/dk.png" alt="LF Cloud">
</a>
<a href="https://cloud.panguidc.com/aff/DMRRFVJX" style="padding: 1rem;">
<img width="160" src="/partners/pangu.png" alt="Pangu Cloud">
</a>
<a href="https://waf.pro/">
<img width="160" src="/wafpro.png" alt="WAFPRO" style="padding: 1rem;">
<img width="160" src="/partners/wafpro.png" alt="WAFPRO" style="padding: 1rem;">
</a>
<a href="https://scdn.ddunyun.com/">
<img width="160" src="/ddunyun.png" alt="DunYun SCDN" style="padding: 1rem;">
<img width="160" src="/partners/ddunyun.png" alt="DunYun SCDN" style="padding: 1rem;">
</a>
<a href="https://kuocai.cn/" style="padding: 1rem;">
<img width="160" src="/kuocai.png" alt="Kuocai CDN">
<img width="160" src="/partners/kuocai.png" alt="Kuocai CDN">
</a>
<a href="https://1ms.run/" style="padding: 1rem;">
<img width="160" src="/1ms.svg" alt="Millisecond Mirror">
<img width="160" src="/partners/1ms.svg" alt="Millisecond Mirror">
</a>
</div>

View File

@@ -6,20 +6,20 @@ After the container engine is installed, you can go to the Panel's container man
First, navigate to the Images tab to pull the required images. This may take several minutes to tens of minutes depending on your network environment.
![Pull Image](/container1.png)
![Pull Image](/images/container/container1.png)
After the image is pulled, navigate to the Containers tab to start creating a container.
![Create Container](/container2.png)
![Create Container](/images/container/container2.png)
Fill in the form according to the container's instructions. The pgadmin4 image used here needs to map port 80 and configure 2 default environment variables, with no need to map directories.
After the container is created, you can click the refresh button in the upper right corner and the log button on the right side of the container to check if it has started properly.
![Container Start](/container3.png)
![Container Start](/images/container/container3.png)
If the container fails to start, please make corrections according to the logs.
If you have mapped external ports, you need to go to the firewall menu to allow the corresponding ports.
![Creation Successful](/container4.png)
![Creation Successful](/images/container/container4.png)

View File

Before

Width:  |  Height:  |  Size: 18 KiB

After

Width:  |  Height:  |  Size: 18 KiB

View File

Before

Width:  |  Height:  |  Size: 31 KiB

After

Width:  |  Height:  |  Size: 31 KiB

View File

Before

Width:  |  Height:  |  Size: 15 KiB

After

Width:  |  Height:  |  Size: 15 KiB

View File

Before

Width:  |  Height:  |  Size: 54 KiB

After

Width:  |  Height:  |  Size: 54 KiB

View File

Before

Width:  |  Height:  |  Size: 9.1 KiB

After

Width:  |  Height:  |  Size: 9.1 KiB

View File

Before

Width:  |  Height:  |  Size: 15 KiB

After

Width:  |  Height:  |  Size: 15 KiB

View File

Before

Width:  |  Height:  |  Size: 22 KiB

After

Width:  |  Height:  |  Size: 22 KiB

View File

Before

Width:  |  Height:  |  Size: 304 KiB

After

Width:  |  Height:  |  Size: 304 KiB

BIN
public/partners/pangu.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 19 KiB

View File

Before

Width:  |  Height:  |  Size: 819 KiB

After

Width:  |  Height:  |  Size: 819 KiB

View File

Before

Width:  |  Height:  |  Size: 64 KiB

After

Width:  |  Height:  |  Size: 64 KiB

View File

@@ -42,21 +42,21 @@ features:
## 合作伙伴
<div style="display: flex; justify-content: space-around; align-items: center; flex-wrap: wrap;"><a href="https://www.weixiaoduo.com/" style="padding: 1rem;">
<img width="160" src="/wxd.png" alt="WeiXiaoDuo">
<img width="160" src="/partners/wxd.png" alt="WeiXiaoDuo">
</a>
<a href="https://www.dkdun.cn/aff/MQZZNVHQ" style="padding: 1rem;">
<img width="160" src="/dk.png" alt="LF Cloud">
<img width="160" src="/partners/dk.png" alt="LF Cloud">
</a>
<a href="https://waf.pro/">
<img width="160" src="/wafpro.png" alt="WAFPRO" style="padding: 1rem;">
<img width="160" src="/partners/wafpro.png" alt="WAFPRO" style="padding: 1rem;">
</a>
<a href="https://scdn.ddunyun.com/">
<img width="160" src="/ddunyun.png" alt="DunYun SCDN" style="padding: 1rem;">
<img width="160" src="/partners/ddunyun.png" alt="DunYun SCDN" style="padding: 1rem;">
</a>
<a href="https://kuocai.cn/" style="padding: 1rem;">
<img width="160" src="/kuocai.png" alt="Kuocai CDN">
<img width="160" src="/partners/kuocai.png" alt="Kuocai CDN">
</a>
<a href="https://1ms.run/" style="padding: 1rem;">
<img width="160" src="/1ms.svg" alt="Millisecond Mirror">
<img width="160" src="/partners/1ms.svg" alt="Millisecond Mirror">
</a>
</div>

View File

@@ -6,20 +6,20 @@
首先导航到镜像选项卡拉取需要的镜像。 视网络环境可能需要数分钟到数十分钟。
![拉取镜像](/container1.png)
![拉取镜像](/images/container/container1.png)
镜像拉取完成后,导航到容器选项卡开始创建容器。
![创建容器](/container2.png)
![创建容器](/images/container/container2.png)
表单内容按容器的说明填写。 此处使用的 pgadmin4 镜像需要映射 80 端口及配置 2 个默认环境变量,无需映射目录。
容器创建完成后可点击右上角刷新按钮和容器右侧的日志按钮检查是否正常启动。
![容器启动](/container3.png)
![容器启动](/images/container/container3.png)
若容器未能启动,请根据日志进行修正。
如果映射了外部端口,需要到防火墙菜单放行相应的端口。
![创建成功](/container4.png)
![创建成功](/images/container/container4.png)

View File

@@ -42,21 +42,21 @@ features:
## 合作夥伴
<div style="display: flex; justify-content: space-around; align-items: center; flex-wrap: wrap;"><a href="https://www.weixiaoduo.com/" style="padding: 1rem;">
<img width="160" src="/wxd.png" alt="WeiXiaoDuo">
<img width="160" src="/partners/wxd.png" alt="WeiXiaoDuo">
</a>
<a href="https://www.dkdun.cn/aff/MQZZNVHQ" style="padding: 1rem;">
<img width="160" src="/dk.png" alt="LinFeng Cloud">
<img width="160" src="/partners/dk.png" alt="LinFeng Cloud">
</a>
<a href="https://waf.pro/">
<img width="160" src="/wafpro.png" alt="WAFPRO" style="padding: 1rem;">
<img width="160" src="/partners/wafpro.png" alt="WAFPRO" style="padding: 1rem;">
</a>
<a href="https://scdn.ddunyun.com/">
<img width="160" src="/ddunyun.png" alt="DunYun SCDN" style="padding: 1rem;">
<img width="160" src="/partners/ddunyun.png" alt="DunYun SCDN" style="padding: 1rem;">
</a>
<a href="https://kuocai.cn/" style="padding: 1rem;">
<img width="160" src="/kuocai.png" alt="Kuocai CDN">
<img width="160" src="/partners/kuocai.png" alt="Kuocai CDN">
</a>
<a href="https://1ms.run/" style="padding: 1rem;">
<img width="160" src="/1ms.svg" alt="Millisecond Mirror">
<img width="160" src="/partners/1ms.svg" alt="Millisecond Mirror">
</a>
</div>

View File

@@ -6,20 +6,20 @@
首先導航到鏡像選項卡拉取需要的鏡像。 視網路環境可能需要數分鐘到數十分鐘。
![拉取鏡像](/container1.png)
![拉取鏡像](/images/container/container1.png)
鏡像拉取完成後,導航到容器選項卡開始創建容器。
![創建容器](/container2.png)
![創建容器](/images/container/container2.png)
表單內容按容器的說明填寫。 此處使用的 pgadmin4 鏡像需要映射 80 端口及配置 2 個默認環境變數,無需映射目錄。
容器創建完成後可點擊右上角刷新按鈕和容器右側的日誌按鈕檢查是否正常啟動。
![容器啟動](/container3.png)
![容器啟動](/images/container/container3.png)
若容器未能啟動,請根據日誌進行修正。
如果映射了外部端口,需要到防火牆菜單放行相應的端口。
![創建成功](/container4.png)
![創建成功](/images/container/container4.png)