mirror of
https://github.com/sky22333/hubproxy.git
synced 2026-08-05 03:24:57 +08:00
update docs
This commit is contained in:
@@ -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`)。
|
||||
|
||||
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user