update docs

This commit is contained in:
sky22333
2026-07-13 06:59:07 +08:00
parent 8382d9c553
commit e6381d52d2
3 changed files with 22 additions and 12 deletions

View File

@@ -10,7 +10,7 @@ npm install
npm run dev
```
访问 http://localhost:4321/hubproxy/GitHub Pages 子路径与线上一致)。
访问 http://localhost:4321/(与线上 `https://docs.52013120.xyz/` 路径一致)。
## 构建
@@ -27,7 +27,7 @@ src/content/docs/en/ # 英文文档
src/assets/ # logo、hero 等资源
public/favicon.svg # 浏览器标签页图标
src/styles/custom.css # 自定义样式
astro.config.mjs # Starlight 配置(含 base: /hubproxy/
astro.config.mjs # Starlight 配置(site: docs.52013120.xyz
```
## 贡献
@@ -36,4 +36,4 @@ astro.config.mjs # Starlight 配置(含 base: /hubproxy/
2. 侧边栏结构见 `astro.config.mjs`
3. 向主仓库提交 PR
部署由 `.github/workflows/docs.yml` 自动发布至 GitHub Pages。
部署由 `.github/workflows/docs.yml` 自动发布至 GitHub Pages;线上域名为 `docs.52013120.xyz`(在 hubproxy 仓库 **Settings → Pages → Custom domain** 配置DNS 添加 `CNAME docs → sky22333.github.io`

View File

@@ -2,8 +2,8 @@ import { defineConfig } from 'astro/config'
import starlight from '@astrojs/starlight'
export default defineConfig({
site: 'https://sky22333.github.io',
base: '/hubproxy/',
site: 'https://docs.52013120.xyz',
base: '/',
integrations: [
starlight({
title: 'HubProxy',