Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 12 additions & 12 deletions src/shared/resources.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,27 +17,27 @@ export const DOC_HOME_URL = "https://docs.pingcap.com";

export const DEFAULT_PINGCAP_URL = `https://www.pingcap.com`;
export const EN_PINGCAP_URL = `https://www.pingcap.com/`;
export const ZH_PINGCAP_URL = `https://cn.pingcap.com/`;
export const ZH_PINGCAP_URL = `https://pingkai.cn/`;
export const JA_PINGCAP_URL = `https://pingcap.co.jp/`;

export const EN_PINGCAP_DOWNLOAD_URL = "https://www.pingcap.com/download/";
export const ZH_PINGCAP_DOWNLOAD_URL =
"https://cn.pingcap.com/product/#SelectProduct";
"https://pingkai.cn/opensource/tidb";
export const JA_PINGCAP_DOWNLOAD_URL = "https://pingcap.co.jp/event/";

export const EN_CONTACT_URL = "https://www.pingcap.com/contact-us/";
export const ZH_CONTACT_URL = "https://cn.pingcap.com/contact/";
export const ZH_CONTACT_URL = "https://pingkai.cn/contact";
export const JA_CONTACT_URL = "https://pingcap.co.jp/contact-us/";

export const EN_PRIVACY_POLICY_URL = "https://www.pingcap.com/privacy-policy";
export const ZH_PRIVACY_POLICY_URL = "https://cn.pingcap.com/privacy-policy";
export const ZH_PRIVACY_POLICY_URL = "https://pingkai.cn/legal/privacy-policy";
export const JA_PRIVACY_POLICY_URL = "https://pingcap.co.jp/privacy-policy";

export const EN_LEARNING_CENTER_URL = "https://www.pingcap.com/education/";
export const ZH_LEARNING_CENTER_URL = "https://cn.pingcap.com/education/";
export const ZH_LEARNING_CENTER_URL = "https://learn.pingcap.cn/learner/course";

export const EN_LEGAL_URL = "https://www.pingcap.com/legal/";
export const ZH_LEGAL_URL = "https://cn.pingcap.com/law/";
export const ZH_LEGAL_URL = "https://pingkai.cn/legal/compliance";
export const JA_LEGAL_URL = "https://pingcap.co.jp/legal/";

export const ICON_GROUP_CHUNK_SIZE = 3;
Expand Down Expand Up @@ -305,7 +305,7 @@ export const ZH_FOOTER_ITEMS = [
},
{
name: "TiDB",
url: "https://cn.pingcap.com/product/#SelectProduct",
url: "https://pingkai.cn/opensource/tidb",

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

low

To improve maintainability and avoid hardcoded URLs, it's better to use the ZH_PINGCAP_DOWNLOAD_URL constant that is defined in this same file.

Suggested change
url: "https://pingkai.cn/opensource/tidb",
url: ZH_PINGCAP_DOWNLOAD_URL,

},
{
name: "TiDB Cloud",
Expand Down Expand Up @@ -347,11 +347,11 @@ export const ZH_FOOTER_ITEMS = [
},
{
name: "博客",
url: "https://cn.pingcap.com/blog/",
url: "https://tidb.net/blog",
},
{
name: "Education",
url: "https://cn.pingcap.com/education/",
url: "https://learn.pingcap.cn/learner/course",

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

low

To improve maintainability, consider using the ZH_LEARNING_CENTER_URL constant here instead of a hardcoded URL.

Suggested change
url: "https://learn.pingcap.cn/learner/course",
url: ZH_LEARNING_CENTER_URL,

},
],
},
Expand All @@ -364,7 +364,7 @@ export const ZH_FOOTER_ITEMS = [
},
{
name: "联系我们",
url: "https://cn.pingcap.com/contact/",
url: "https://pingkai.cn/contact",

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

low

For better maintainability, it would be good to use the ZH_CONTACT_URL constant which holds the same value.

Suggested change
url: "https://pingkai.cn/contact",
url: ZH_CONTACT_URL,

},
],
},
Expand All @@ -373,15 +373,15 @@ export const ZH_FOOTER_ITEMS = [
items: [
{
name: "关于我们",
url: "https://cn.pingcap.com/about-us?tab=companyOverview",
url: "https://pingkai.cn/about",
},
{
name: "招贤纳士",
url: "https://careers.pingcap.com",
},
{
name: "新闻报道",
url: "https://cn.pingcap.com/company-activity/",
url: "https://pingkai.cn/news",
},
],
},
Expand Down
2 changes: 1 addition & 1 deletion static/zh/llms.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
## TiDB Self-Managed 文档(使用 TiUP 部署)

- [TiDB Self-Managed 文档](https://docs.pingcap.com/zh/tidb/stable.md): TiDB 是 PingCAP 公司自主设计、研发的开源分布式关系型数据库。产品文档包括了 TiDB 简介、功能概览、TiFlash、快速上手 TiDB、HTAP、开发者手册概览、软硬件环境需求、使用 TiUP 部署 TiDB、数据迁移概览、运维、监控、调优、工具、TiDB 路线图、配置文件参数、命令行参数、TiDB Control、系统变量、发布历史、常见问题。
- [TiDB 版本周期支持策略](https://cn.pingcap.com/tidb-release-support-policy/): 阐述了 PingCAP 就 TiDB 版本提供支持服务的标准和规则。
- [TiDB 版本周期支持策略](https://pingkai.cn/tidb-release-support-policy): 阐述了 PingCAP 就 TiDB 版本提供支持服务的标准和规则。
- [50 TiB 数据导入最佳实践](https://docs.pingcap.com/zh/tidb/stable/data-import-best-practices.md): 了解将大规模数据导入 TiDB 的最佳实践。
- [ADD COLUMN](https://docs.pingcap.com/zh/tidb/stable/sql-statement-add-column.md): TiDB 数据库中 ADD COLUMN 的使用概况。
- [ADD INDEX](https://docs.pingcap.com/zh/tidb/stable/sql-statement-add-index.md): TiDB 数据库中 ADD INDEX 的使用概况。
Expand Down