Skip to content

Commit bc2c631

Browse files
committed
update domain
1 parent a90aa99 commit bc2c631

8 files changed

Lines changed: 264 additions & 12 deletions

File tree

index.html

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,13 @@
1212
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
1313

1414
<!-- Canonical URL -->
15-
<link rel="canonical" href="https://hagicode-org.github.io/docker-compose-builder/" />
15+
<link rel="canonical" href="https://builder.hagicode.com" />
1616

1717
<!-- Open Graph Meta Tags -->
1818
<meta property="og:title" content="Hagicode Docker Compose Builder - Visual Docker Compose Generator" />
1919
<meta property="og:description" content="A powerful visual tool for creating and managing Docker Compose configurations. Build, customize, and export your docker-compose.yml files with an intuitive interface." />
20-
<meta property="og:image" content="https://hagicode-org.github.io/docker-compose-builder/og-image.png" />
21-
<meta property="og:url" content="https://hagicode-org.github.io/docker-compose-builder/" />
20+
<meta property="og:image" content="https://builder.hagicode.com/og-image.png" />
21+
<meta property="og:url" content="https://builder.hagicode.com" />
2222
<meta property="og:type" content="website" />
2323
<meta property="og:locale" content="en" />
2424
<meta property="og:site_name" content="Hagicode Docker Compose Builder" />
@@ -27,12 +27,12 @@
2727
<meta name="twitter:card" content="summary_large_image" />
2828
<meta name="twitter:title" content="Hagicode Docker Compose Builder - Visual Docker Compose Generator" />
2929
<meta name="twitter:description" content="A powerful visual tool for creating and managing Docker Compose configurations. Build, customize, and export your docker-compose.yml files with an intuitive interface." />
30-
<meta name="twitter:image" content="https://hagicode-org.github.io/docker-compose-builder/og-image.png" />
30+
<meta name="twitter:image" content="https://builder.hagicode.com/og-image.png" />
3131

3232
<!-- Alternate Language Links -->
33-
<link rel="alternate" hreflang="en" href="https://hagicode-org.github.io/docker-compose-builder/" />
34-
<link rel="alternate" hreflang="zh-CN" href="https://hagicode-org.github.io/docker-compose-builder/?lang=zh-CN" />
35-
<link rel="alternate" hreflang="x-default" href="https://hagicode-org.github.io/docker-compose-builder/" />
33+
<link rel="alternate" hreflang="en" href="https://builder.hagicode.com" />
34+
<link rel="alternate" hreflang="zh-CN" href="https://builder.hagicode.com?lang=zh-CN" />
35+
<link rel="alternate" hreflang="x-default" href="https://builder.hagicode.com" />
3636
</head>
3737
<body>
3838
<div id="root"></div>
Lines changed: 92 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,92 @@
1+
# 更新遗留的 GitHub Pages 链接到生产环境地址
2+
3+
Status: ExecutionCompleted
4+
5+
## 概述
6+
7+
将项目中所有指向 GitHub Pages 的遗留链接更新为正式生产环境地址。
8+
9+
## 背景
10+
11+
项目已完成正式上线,目前存在指向 GitHub Pages 的遗留链接需要更新。这包括:
12+
13+
- **官网地址**:需要从 `https://hagicode-org.github.io/site/` 迁移到 `https://hagicode.com`
14+
- **Builder 地址**:需要从 `https://hagicode-org.github.io/docker-compose-builder/` 更新为 `https://builder.hagicode.com`
15+
- **相关文档和配置**:可能包含旧链接的各类配置文件、README 文档等
16+
17+
## 问题
18+
19+
当前项目中存在多个指向 GitHub Pages 的链接,这些链接在正式上线后已不再适用,可能导致:
20+
21+
- 用户访问到过时或不可用的页面
22+
- 文档中提供的链接失效
23+
- 构建配置中的部署目标不正确
24+
- SEO 配置指向错误的域名
25+
26+
### 受影响的文件
27+
28+
| 文件路径 | 当前 URL | 用途 |
29+
|---------|---------|------|
30+
| `index.html` | `https://hagicode-org.github.io/docker-compose-builder/` | SEO 元标签、规范链接 |
31+
| `src/config/seo.ts` | `https://hagicode-org.github.io/docker-compose-builder/` | SEO 配置 |
32+
| `src/config/navigationLinks.ts` | `https://hagicode-org.github.io/site/` | 导航链接配置 |
33+
| `public/robots.txt` | `https://hagicode-org.github.io/docker-compose-builder/sitemap.xml` | 搜索引擎爬虫配置 |
34+
| `public/sitemap.xml` | `https://hagicode-org.github.io/docker-compose-builder/` | 站点地图 |
35+
36+
## 解决方案
37+
38+
执行全面的链接更新操作,将所有 GitHub Pages 链接替换为生产环境地址。
39+
40+
### URL 映射表
41+
42+
| 用途 | 当前 URL | 新 URL |
43+
|------|---------|--------|
44+
| Docker Compose Builder | `https://hagicode-org.github.io/docker-compose-builder/` | `https://builder.hagicode.com` |
45+
| 官方网站 | `https://hagicode-org.github.io/site/` | `https://hagicode.com` |
46+
47+
### 实施策略
48+
49+
1. **搜索识别**:使用 grep 搜索项目中所有包含 "github.io" 或 GitHub Pages 相关 URL 的文件
50+
2. **地址替换**:根据映射表替换所有相关链接
51+
3. **验证测试**:确保所有更新后的链接配置正确
52+
53+
## 影响范围
54+
55+
### 影响的组件
56+
57+
- **SEO 配置**`src/config/seo.ts`
58+
- **导航配置**`src/config/navigationLinks.ts`
59+
- **HTML 入口**`index.html`
60+
- **静态资源**`public/robots.txt`, `public/sitemap.xml`
61+
62+
### 不受影响的组件
63+
64+
- 核心业务逻辑代码
65+
- Docker Compose 生成功能
66+
- 测试文件(除非包含硬编码的测试 URL)
67+
68+
## 风险评估
69+
70+
| 风险 | 可能性 | 影响 | 缓解措施 |
71+
|------|-------|------|---------|
72+
| 遗漏隐藏的链接引用 ||| 使用全面的 grep 搜索模式 |
73+
| 破坏功能性链接 ||| 仅替换已知的 GitHub Pages URL |
74+
| 归档文件中的历史引用 ||| 保留归档文件中的历史引用不变 |
75+
76+
## 成功标准
77+
78+
- [x] 所有 `hagicode-org.github.io/docker-compose-builder` 替换为 `builder.hagicode.com`
79+
- [x] 所有 `hagicode-org.github.io/site` 替换为 `hagicode.com`
80+
- [x] 构建成功,无配置错误
81+
- [x] 归档文件中的历史引用保持不变(用于历史记录)
82+
83+
## 依赖项
84+
85+
无外部依赖。此变更可独立执行。
86+
87+
## 时间估计
88+
89+
- 搜索和识别:15 分钟
90+
- 执行替换:30 分钟
91+
- 验证测试:15 分钟
92+
- **总计**:约 1 小时
Lines changed: 160 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,160 @@
1+
# 实施任务清单
2+
3+
## 阶段 1:搜索和识别
4+
5+
### 1.1 搜索所有 GitHub Pages 链接
6+
7+
```bash
8+
# 搜索所有包含 github.io 的文件(排除 node_modules 和归档目录)
9+
grep -r "github\.io" --exclude-dir=node_modules --exclude-dir=.git --exclude-dir=archive --exclude-dir=dist --exclude-dir=build .
10+
```
11+
12+
**预期输出**:列出所有包含需要更新的链接的文件
13+
14+
**验证**
15+
- [ ] 确认搜索结果包含以下关键文件:
16+
- `index.html`
17+
- `src/config/seo.ts`
18+
- `src/config/navigationLinks.ts`
19+
- `public/robots.txt`
20+
- `public/sitemap.xml`
21+
22+
---
23+
24+
## 阶段 2:更新核心配置文件
25+
26+
### 2.1 更新 `src/config/seo.ts`
27+
28+
**文件**`src/config/seo.ts`
29+
30+
**变更**
31+
```typescript
32+
//
33+
siteUrl: 'https://hagicode-org.github.io/docker-compose-builder/'
34+
// 替换为
35+
siteUrl: 'https://builder.hagicode.com'
36+
```
37+
38+
**验证**
39+
- [ ] 文件中只有一处需要修改
40+
- [ ] 新 URL 格式正确(无尾部斜杠)
41+
42+
### 2.2 更新 `src/config/navigationLinks.ts`
43+
44+
**文件**`src/config/navigationLinks.ts`
45+
46+
**变更**
47+
```typescript
48+
//
49+
url: 'https://hagicode-org.github.io/site/'
50+
// 替换为
51+
url: 'https://hagicode.com'
52+
```
53+
54+
**验证**
55+
- [ ] `officialSite.url` 已更新
56+
- [ ] GitHub 仓库链接保持不变(如果正确)
57+
58+
### 2.3 更新 `index.html`
59+
60+
**文件**`index.html`
61+
62+
**变更**:更新所有 SEO 相关的 meta 标签中的 URL
63+
64+
| 元素 | 当前值 | 新值 |
65+
|------|--------|------|
66+
| `link rel="canonical"` | `https://hagicode-org.github.io/docker-compose-builder/` | `https://builder.hagicode.com` |
67+
| `meta property="og:url"` | `https://hagicode-org.github.io/docker-compose-builder/` | `https://builder.hagicode.com` |
68+
| `meta property="og:image"` | `https://hagicode-org.github.io/docker-compose-builder/og-image.png` | `https://builder.hagicode.com/og-image.png` |
69+
| `link rel="alternate" hreflang="en"` | `https://hagicode-org.github.io/docker-compose-builder/` | `https://builder.hagicode.com` |
70+
| `link rel="alternate" hreflang="zh-CN"` | `https://hagicode-org.github.io/docker-compose-builder/?lang=zh-CN` | `https://builder.hagicode.com?lang=zh-CN` |
71+
72+
**验证**
73+
- [ ] 所有 `<link>` 标签中的 URL 已更新
74+
- [ ] 所有 `<meta>` 标签中的 URL 已更新
75+
- [ ] Open Graph 图片 URL 已更新
76+
77+
### 2.4 更新 `public/robots.txt`
78+
79+
**文件**`public/robots.txt`
80+
81+
**变更**
82+
```text
83+
# 将
84+
Sitemap: https://hagicode-org.github.io/docker-compose-builder/sitemap.xml
85+
# 替换为
86+
Sitemap: https://builder.hagicode.com/sitemap.xml
87+
```
88+
89+
**验证**
90+
- [ ] Sitemap URL 已更新
91+
92+
### 2.5 更新 `public/sitemap.xml`
93+
94+
**文件**`public/sitemap.xml`
95+
96+
**变更**
97+
```xml
98+
<!---->
99+
<url><loc>https://hagicode-org.github.io/docker-compose-builder/</loc></url>
100+
<!-- 替换为 -->
101+
<url><loc>https://builder.hagicode.com/</loc></url>
102+
```
103+
104+
**验证**
105+
- [ ] 所有 `<loc>` 标签中的 URL 已更新
106+
107+
---
108+
109+
## 阶段 3:验证和测试
110+
111+
### 3.1 构建验证
112+
113+
```bash
114+
npm run build
115+
```
116+
117+
**验证**
118+
- [ ] 构建成功完成
119+
- [ ] 无配置错误
120+
- [ ] 无 TypeScript 错误
121+
122+
### 3.2 链接完整性检查
123+
124+
```bash
125+
# 搜索确认没有遗留的 github.io 链接(排除归档目录)
126+
grep -r "hagicode-org\.github\.io" --exclude-dir=archive --exclude-dir=node_modules --exclude-dir=.git --exclude-dir=dist --exclude-dir=build .
127+
```
128+
129+
**验证**
130+
- [ ] 搜索结果为空(或仅显示归档文件中的引用)
131+
- [ ] 归档文件 `openspec/changes/archive/` 中的历史引用保持不变
132+
133+
### 3.3 配置文件检查
134+
135+
**检查项**
136+
- [ ] `src/config/seo.ts``siteUrl``https://builder.hagicode.com`
137+
- [ ] `src/config/navigationLinks.ts` 中官网链接为 `https://hagicode.com`
138+
- [ ] `index.html` 中所有 meta 标签使用新 URL
139+
- [ ] `public/robots.txt` 中 sitemap URL 正确
140+
- [ ] `public/sitemap.xml` 中所有 URL 正确
141+
142+
---
143+
144+
## 完成检查表
145+
146+
### 文件更新
147+
- [ ] `src/config/seo.ts`
148+
- [ ] `src/config/navigationLinks.ts`
149+
- [ ] `index.html`
150+
- [ ] `public/robots.txt`
151+
- [ ] `public/sitemap.xml`
152+
153+
### 验证通过
154+
- [ ] 构建成功
155+
- [ ] 无遗留的 github.io 链接(排除归档)
156+
- [ ] 所有新 URL 格式正确
157+
- [ ] 归档文件保持不变
158+
159+
### 文档更新(可选)
160+
- [ ] 如果 `README.md` 包含部署说明,考虑更新为新的生产 URL

public/favicon.ico

353 KB
Binary file not shown.

public/robots.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ Allow: /
99
# Disallow: /admin/
1010

1111
# Sitemap location
12-
Sitemap: https://hagicode-org.github.io/docker-compose-builder/sitemap.xml
12+
Sitemap: https://builder.hagicode.com/sitemap.xml
1313

1414
# Crawl-delay (optional, specifies delay between requests in seconds)
1515
# Crawl-delay: 1

public/sitemap.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
33
<!-- Homepage -->
44
<url>
5-
<loc>https://hagicode-org.github.io/docker-compose-builder/</loc>
5+
<loc>https://builder.hagicode.com/</loc>
66
<lastmod>2025-02-01</lastmod>
77
<changefreq>weekly</changefreq>
88
<priority>1.0</priority>

src/config/navigationLinks.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import type { LucideIcon } from 'lucide-react';
33

44
export const NAVIGATION_LINKS = {
55
officialSite: {
6-
url: 'https://hagicode-org.github.io/site/',
6+
url: 'https://hagicode.com',
77
labelKey: 'header.navigation.officialSite',
88
icon: Globe,
99
external: true,

src/config/seo.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,15 +34,15 @@ export const defaultSEOConfig: SEOConfig = {
3434
'compose builder'
3535
],
3636
image: '/og-image.png',
37-
url: 'https://hagicode-org.github.io/docker-compose-builder/',
37+
url: 'https://builder.hagicode.com',
3838
type: 'web-application',
3939
locale: 'en',
4040
alternateLocales: ['zh-CN']
4141
};
4242

4343
export const siteConfig = {
4444
name: 'Hagicode Docker Compose Builder',
45-
siteUrl: 'https://hagicode-org.github.io/docker-compose-builder/',
45+
siteUrl: 'https://builder.hagicode.com',
4646
githubUrl: 'https://github.com/newbe36524/docker-compose-builder',
4747
author: {
4848
name: 'newbe36524',

0 commit comments

Comments
 (0)