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
326 changes: 238 additions & 88 deletions .github/workflows/build-check.yml

Large diffs are not rendered by default.

17 changes: 15 additions & 2 deletions docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,17 @@ function buildRedirectIndex() {
add('/download', '/download-next');
add('/zh-CN/download', '/zh-CN/download-next');

// The hand-curated /learning sitemap page was retired; Doris 101 is now
// the structured entry point for newcomers.
add('/course', '/learning');
add('/zh-CN/course', '/zh-CN/learning');

// /vendors lost its navigation entry in the new-homepage refactor and has
// no obvious successor page, so it lands on the homepage. Its source is
// parked at src/pages/_vendors (underscore = not routed).
add('/', '/vendors');
add('/zh-CN', '/zh-CN/vendors');

// /ecosystem/* was retired; its closest spiritual home is the Dev tree's
// Data Integration intro, which catalogs the same connector/tool families
// the old /ecosystem/ pages did.
Expand Down Expand Up @@ -364,8 +375,10 @@ const config = {

// Static redirects indexed by target. Trim trailing slash
// for the lookup since Docusaurus' trailingSlash:true
// gives us paths like /docs/4.x/foo/.
const normalized = existingPath.replace(/\/$/, '');
// gives us paths like /docs/4.x/foo/. The locale root
// ('/' or '/zh-CN/') is the one path whose slash is the
// whole path, so keep it as-is.
const normalized = existingPath === '/' ? '/' : existingPath.replace(/\/$/, '');
if (REDIRECT_INDEX[normalized]) {
redirects.push(...REDIRECT_INDEX[normalized]);
}
Expand Down
68 changes: 0 additions & 68 deletions i18n/zh-CN/code.json
Original file line number Diff line number Diff line change
@@ -1,72 +1,4 @@
{
"archive.layout.title": {
"message": "Apache Doris - 归档文档中心",
"description": "Apache Doris - Archive Document Center"
},
"archive.layout.description": {
"message": "收录Apache doris归档文档",
"description": "Collection of Apache doris archive documents"
},
"archive.page.title": {
"message": "归档文档中心",
"description": "The label for archived docs page title"
},
"archive.admonition.1": {
"message": "此为 Apache Doris 归档文档,已归档文档不再提供任何更新。",
"description": "The label for admonition in archived docs page"
},
"archive.admonition.2": {
"message": "建议使用",
"description": "The label for admonition in archived docs page"
},
"archive.page.2": {
"message": "建议使用 {stableLink}或{latestLink}。",
"description": "The label for admonition in archived docs page"
},
"archive.admonition.stable": {
"message": "版本(2.1)",
"description": "stable version"
},
"archive.admonition.latest": {
"message": "版本(3.x)",
"description": "latest version"
},
"archive.admonition.and": {
"message": "或",
"description": "and"
},
"archive.page.version": {
"message": "版本:1.2",
"description": "Archive Version"
},
"archive.preview.v12": {
"message": "归档文档链接:{previewLink}",
"description": "Archive preview link"
},
"archive.preview.link": {
"message": "Apache Doris v1.2 中文文档",
"description": "Archive preview link"
},
"archive.preview.date": {
"message": "归档日期:{date}",
"description": "Archive date"
},
"archive-tips-1": {
"message": "本页将归档 Apache Doris 暂停维护版本的所有文档,并提供 PDF 格式供用户下载。",
"description": "Archive tips"
},
"archive-tips-2": {
"message": "请注意,归档文档将不再进行任何更新,建议用户使用{latestVersion}。",
"description": "Archive tips"
},
"archive-download-text": {
"message": "下载 PDF",
"description": "archive download text"
},
"archive.latest.version": {
"message": "最新版本",
"description": "archive latest version"
},
"theme.docs.versions.latestVersionSuggestionLabel": {
"message": "使用参考请跳转至 {v4xLink}/{v3xLink}/{v21Link} 正式版本文档进行查阅。"
},
Expand Down
4 changes: 1 addition & 3 deletions src/constant/common.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,4 @@ export const BLOG_TAG_ICONS = {
'Release Notes': <ReleaseNoteIcon />,
'Top News': <TopNewsIcon />,
All: <AllBlogIcon />,
};

export const ARCHIVE_PATH = 'archive-docs';
};
Loading
Loading