From fc46b035e59ded780f6404045f9b6b623b89d40a Mon Sep 17 00:00:00 2001 From: Ryan Wang Date: Wed, 28 Jan 2026 18:13:19 +0800 Subject: [PATCH] Add release links to navbar and footer, update i18n --- docusaurus.config.js | 11 +++- i18n/zh-Hans/code.json | 64 +++++++++---------- .../docusaurus-theme-classic/footer.json | 4 ++ .../docusaurus-theme-classic/navbar.json | 4 ++ 4 files changed, 50 insertions(+), 33 deletions(-) diff --git a/docusaurus.config.js b/docusaurus.config.js index 3548b75b..1a114213 100644 --- a/docusaurus.config.js +++ b/docusaurus.config.js @@ -131,7 +131,7 @@ const config = { ([versionName, versionUrl]) => ({ label: versionName, href: versionUrl, - }), + }) ), { to: "/versions", @@ -149,6 +149,11 @@ const config = { label: "论坛", position: "right", }, + { + href: "https://releases.halo.run", + label: "版本", + position: "right", + }, { href: "https://github.com/halo-dev/halo", label: "GitHub", @@ -184,6 +189,10 @@ const config = { label: "Gitee 组织", href: "https://gitee.com/halo-dev", }, + { + label: "版本发布", + href: "https://releases.halo.run", + }, { label: "Server Status", href: "https://status.halo.run", diff --git a/i18n/zh-Hans/code.json b/i18n/zh-Hans/code.json index b45e2d8b..5221e3d1 100644 --- a/i18n/zh-Hans/code.json +++ b/i18n/zh-Hans/code.json @@ -96,10 +96,6 @@ "theme.docs.versionBadge.label": { "message": "版本:{versionLabel}" }, - "theme.common.editThisPage": { - "message": "编辑此页", - "description": "The link label to edit the current page" - }, "theme.docs.versions.unreleasedVersionLabel": { "message": "此为 {siteTitle} {versionLabel} 版尚未发行的文档。", "description": "The label used to tell the user that he's browsing an unreleased doc version" @@ -116,6 +112,10 @@ "message": "最新版本", "description": "The label used for the latest version suggestion link label" }, + "theme.common.editThisPage": { + "message": "编辑此页", + "description": "The link label to edit the current page" + }, "theme.common.headingLinkTitle": { "message": "{heading}的直接链接", "description": "Title for link to heading" @@ -144,6 +144,10 @@ "message": "标签:", "description": "The label alongside a tag list" }, + "theme.AnnouncementBar.closeButtonAriaLabel": { + "message": "关闭", + "description": "The ARIA label for close button of announcement bar" + }, "theme.admonition.caution": { "message": "警告", "description": "The default label used for the Caution admonition (:::caution)" @@ -168,10 +172,6 @@ "message": "注意", "description": "The default label used for the Warning admonition (:::warning)" }, - "theme.AnnouncementBar.closeButtonAriaLabel": { - "message": "关闭", - "description": "The ARIA label for close button of announcement bar" - }, "theme.blog.sidebar.navAriaLabel": { "message": "最近博文导航", "description": "The ARIA label for recent posts in the blog sidebar" @@ -192,10 +192,6 @@ "message": "主导航", "description": "The ARIA label for the main navigation" }, - "theme.navbar.mobileLanguageDropdown.label": { - "message": "选择语言", - "description": "The label for the mobile language switcher dropdown" - }, "theme.NotFound.p1": { "message": "我们找不到您要找的页面。", "description": "The first paragraph of the 404 page" @@ -208,6 +204,10 @@ "message": "本页总览", "description": "The label used by the button on the collapsible TOC component" }, + "theme.navbar.mobileLanguageDropdown.label": { + "message": "选择语言", + "description": "The label for the mobile language switcher dropdown" + }, "theme.blog.post.readMore": { "message": "阅读更多", "description": "The label used in blog post item excerpts to link to full blog posts" @@ -224,17 +224,13 @@ "message": "切换自动换行", "description": "The title attribute for toggle word wrapping button of code block lines" }, - "theme.CodeBlock.copy": { - "message": "复制", - "description": "The copy button label on code blocks" - }, - "theme.CodeBlock.copied": { - "message": "复制成功", - "description": "The copied button label on code blocks" + "theme.docs.breadcrumbs.home": { + "message": "主页面", + "description": "The ARIA label for the home page in the breadcrumbs" }, - "theme.CodeBlock.copyButtonAriaLabel": { - "message": "复制代码到剪贴板", - "description": "The ARIA label for copy code blocks button" + "theme.docs.sidebar.navAriaLabel": { + "message": "文档侧边栏", + "description": "The ARIA label for the sidebar navigation" }, "theme.docs.sidebar.collapseButtonTitle": { "message": "收起侧边栏", @@ -244,18 +240,26 @@ "message": "收起侧边栏", "description": "The title attribute for collapse button of doc sidebar" }, - "theme.docs.sidebar.navAriaLabel": { - "message": "文档侧边栏", - "description": "The ARIA label for the sidebar navigation" + "theme.CodeBlock.copy": { + "message": "复制", + "description": "The copy button label on code blocks" }, - "theme.docs.breadcrumbs.home": { - "message": "主页面", - "description": "The ARIA label for the home page in the breadcrumbs" + "theme.CodeBlock.copied": { + "message": "复制成功", + "description": "The copied button label on code blocks" + }, + "theme.CodeBlock.copyButtonAriaLabel": { + "message": "复制代码到剪贴板", + "description": "The ARIA label for copy code blocks button" }, "theme.docs.sidebar.closeSidebarButtonAriaLabel": { "message": "关闭导航栏", "description": "The ARIA label for close button of mobile sidebar" }, + "theme.navbar.mobileSidebarSecondaryMenu.backButtonLabel": { + "message": "← 回到主菜单", + "description": "The label of the back button to return to main menu, inside the mobile navbar sidebar secondary menu (notably used to display the docs sidebar)" + }, "theme.docs.sidebar.toggleSidebarButtonAriaLabel": { "message": "切换导航栏", "description": "The ARIA label for hamburger menu button of mobile navigation" @@ -268,10 +272,6 @@ "message": "Collapse the dropdown", "description": "The ARIA label of the button to collapse the mobile dropdown navbar item" }, - "theme.navbar.mobileSidebarSecondaryMenu.backButtonLabel": { - "message": "← 回到主菜单", - "description": "The label of the back button to return to main menu, inside the mobile navbar sidebar secondary menu (notably used to display the docs sidebar)" - }, "theme.docs.sidebar.expandButtonTitle": { "message": "展开侧边栏", "description": "The ARIA label and title attribute for expand button of doc sidebar" diff --git a/i18n/zh-Hans/docusaurus-theme-classic/footer.json b/i18n/zh-Hans/docusaurus-theme-classic/footer.json index 9e8e8a72..14c896d9 100644 --- a/i18n/zh-Hans/docusaurus-theme-classic/footer.json +++ b/i18n/zh-Hans/docusaurus-theme-classic/footer.json @@ -23,6 +23,10 @@ "message": "Gitee 组织", "description": "The label of footer link with label=Gitee 组织 linking to https://gitee.com/halo-dev" }, + "link.item.label.版本发布": { + "message": "版本发布", + "description": "The label of footer link with label=版本发布 linking to https://releases.halo.run" + }, "link.item.label.Server Status": { "message": "Server Status", "description": "The label of footer link with label=Server Status linking to https://status.halo.run" diff --git a/i18n/zh-Hans/docusaurus-theme-classic/navbar.json b/i18n/zh-Hans/docusaurus-theme-classic/navbar.json index 9a3cacce..fc751224 100644 --- a/i18n/zh-Hans/docusaurus-theme-classic/navbar.json +++ b/i18n/zh-Hans/docusaurus-theme-classic/navbar.json @@ -23,6 +23,10 @@ "message": "论坛", "description": "Navbar item with label 论坛" }, + "item.label.版本": { + "message": "版本", + "description": "Navbar item with label 版本" + }, "item.label.GitHub": { "message": "GitHub", "description": "Navbar item with label GitHub"