mirror of
https://github.com/sky22333/hubproxy.git
synced 2026-09-06 16:16:59 +08:00
update docs
This commit is contained in:
@@ -58,13 +58,15 @@ curl -fsSL https://raw.githubusercontent.com/sky22333/hubproxy/main/install.sh |
|
|||||||
|
|
||||||
### 快速上手
|
### 快速上手
|
||||||
|
|
||||||
|
将 `yourdomain.com` 换成你的 `HubProxy` 地址
|
||||||
```bash
|
```bash
|
||||||
# Docker 镜像加速(将 yourdomain.com 换成你的 HubProxy 地址)
|
# Docker 镜像加速
|
||||||
docker pull yourdomain.com/nginx
|
docker pull yourdomain.com/nginx
|
||||||
|
|
||||||
# GitHub Release 加速(完整 URL 前缀)
|
# GitHub Release 加速
|
||||||
wget "https://yourdomain.com/https://github.com/owner/repo/releases/download/v1.0.0/app.tar.gz"
|
wget "https://yourdomain.com/https://github.com/owner/repo/releases/download/v1.0.0/app.tar.gz"
|
||||||
|
|
||||||
|
# Git clone 加速
|
||||||
git clone https://yourdomain.com/https://github.com/sky22333/hubproxy.git
|
git clone https://yourdomain.com/https://github.com/sky22333/hubproxy.git
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|||||||
@@ -10,8 +10,6 @@ npm install
|
|||||||
npm run dev
|
npm run dev
|
||||||
```
|
```
|
||||||
|
|
||||||
访问 http://localhost:4321/(与线上 `https://docs.52013120.xyz/` 路径一致)。
|
|
||||||
|
|
||||||
## 构建
|
## 构建
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
@@ -36,4 +34,3 @@ astro.config.mjs # Starlight 配置(site: docs.52013120.xyz)
|
|||||||
2. 侧边栏结构见 `astro.config.mjs`
|
2. 侧边栏结构见 `astro.config.mjs`
|
||||||
3. 向主仓库提交 PR
|
3. 向主仓库提交 PR
|
||||||
|
|
||||||
部署由 `.github/workflows/docs.yml` 自动发布至 GitHub Pages;线上域名为 `docs.52013120.xyz`(在 hubproxy 仓库 **Settings → Pages → Custom domain** 配置,DNS 添加 `CNAME docs → sky22333.github.io`)。
|
|
||||||
|
|||||||
Reference in New Issue
Block a user