chore: 更新目录结构
57
CLAUDE.md
Normal 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。
|
||||
15
en/index.md
@@ -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>
|
||||
|
||||
@@ -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.
|
||||
|
||||

|
||||

|
||||
|
||||
After the image is pulled, navigate to the Containers tab to start creating a container.
|
||||
|
||||

|
||||

|
||||
|
||||
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.
|
||||
|
||||

|
||||

|
||||
|
||||
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.
|
||||
|
||||

|
||||

|
||||
|
||||
|
Before Width: | Height: | Size: 18 KiB After Width: | Height: | Size: 18 KiB |
|
Before Width: | Height: | Size: 31 KiB After Width: | Height: | Size: 31 KiB |
|
Before Width: | Height: | Size: 15 KiB After Width: | Height: | Size: 15 KiB |
|
Before Width: | Height: | Size: 54 KiB After Width: | Height: | Size: 54 KiB |
|
Before Width: | Height: | Size: 9.1 KiB After Width: | Height: | Size: 9.1 KiB |
|
Before Width: | Height: | Size: 15 KiB After Width: | Height: | Size: 15 KiB |
|
Before Width: | Height: | Size: 22 KiB After Width: | Height: | Size: 22 KiB |
|
Before Width: | Height: | Size: 304 KiB After Width: | Height: | Size: 304 KiB |
BIN
public/partners/pangu.png
Normal file
|
After Width: | Height: | Size: 19 KiB |
|
Before Width: | Height: | Size: 819 KiB After Width: | Height: | Size: 819 KiB |
|
Before Width: | Height: | Size: 64 KiB After Width: | Height: | Size: 64 KiB |
@@ -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>
|
||||
|
||||
@@ -6,20 +6,20 @@
|
||||
|
||||
首先导航到镜像选项卡拉取需要的镜像。 视网络环境可能需要数分钟到数十分钟。
|
||||
|
||||

|
||||

|
||||
|
||||
镜像拉取完成后,导航到容器选项卡开始创建容器。
|
||||
|
||||

|
||||

|
||||
|
||||
表单内容按容器的说明填写。 此处使用的 pgadmin4 镜像需要映射 80 端口及配置 2 个默认环境变量,无需映射目录。
|
||||
|
||||
容器创建完成后可点击右上角刷新按钮和容器右侧的日志按钮检查是否正常启动。
|
||||
|
||||

|
||||

|
||||
|
||||
若容器未能启动,请根据日志进行修正。
|
||||
|
||||
如果映射了外部端口,需要到防火墙菜单放行相应的端口。
|
||||
|
||||

|
||||

|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -6,20 +6,20 @@
|
||||
|
||||
首先導航到鏡像選項卡拉取需要的鏡像。 視網路環境可能需要數分鐘到數十分鐘。
|
||||
|
||||

|
||||

|
||||
|
||||
鏡像拉取完成後,導航到容器選項卡開始創建容器。
|
||||
|
||||

|
||||

|
||||
|
||||
表單內容按容器的說明填寫。 此處使用的 pgadmin4 鏡像需要映射 80 端口及配置 2 個默認環境變數,無需映射目錄。
|
||||
|
||||
容器創建完成後可點擊右上角刷新按鈕和容器右側的日誌按鈕檢查是否正常啟動。
|
||||
|
||||

|
||||

|
||||
|
||||
若容器未能啟動,請根據日誌進行修正。
|
||||
|
||||
如果映射了外部端口,需要到防火牆菜單放行相應的端口。
|
||||
|
||||

|
||||

|
||||
|
||||