From 7f569061b4d961a29091ccf6c86e7a7fa598ccbe Mon Sep 17 00:00:00 2001 From: vickyhella Date: Wed, 26 Jul 2023 17:12:21 +0800 Subject: [PATCH] Add Rancher Home link --- docusaurus.config.js | 14 ++++++-------- i18n/zh/code.json | 2 +- i18n/zh/docusaurus-theme-classic/navbar.json | 12 ++++++++---- 3 files changed, 15 insertions(+), 13 deletions(-) diff --git a/docusaurus.config.js b/docusaurus.config.js index bf4c5a58182..896d0227e18 100644 --- a/docusaurus.config.js +++ b/docusaurus.config.js @@ -83,20 +83,13 @@ const config = { items: [ { type: 'docsVersionDropdown', - position: 'right', + position: 'left', dropdownActiveClassDisabled: true, }, { type: "localeDropdown", position: "right", }, - { - type: 'doc', - docId: 'index', - position: "right", - label: "Docs", - className: "navbar__docs", - }, { href: "https://www.suse.com/c/?s=harvester", position: "right", @@ -109,6 +102,11 @@ const config = { label: "Knowledge Base", className: "navbar__kb", }, + { + href: 'https://www.rancher.com', + label: 'Rancher Home', + position: 'right', + }, { href: "https://github.com/harvester/harvester", label: "GitHub", diff --git a/i18n/zh/code.json b/i18n/zh/code.json index c7cfb6ec25b..d6b857c25f0 100644 --- a/i18n/zh/code.json +++ b/i18n/zh/code.json @@ -5,7 +5,7 @@ }, "theme.ErrorPageContent.tryAgain": { "message": "重试", - "description": "The label of the button to try again when the page crashed" + "description": "The label of the button to try again rendering when the React error boundary captures an error" }, "theme.NotFound.title": { "message": "找不到页面", diff --git a/i18n/zh/docusaurus-theme-classic/navbar.json b/i18n/zh/docusaurus-theme-classic/navbar.json index bfe0e51bd7a..40e4ce6259c 100644 --- a/i18n/zh/docusaurus-theme-classic/navbar.json +++ b/i18n/zh/docusaurus-theme-classic/navbar.json @@ -1,8 +1,4 @@ { - "item.label.Docs": { - "message": "文档", - "description": "Navbar item with label Docs" - }, "item.label.Blog": { "message": "博文", "description": "Navbar item with label Blog" @@ -14,5 +10,13 @@ "item.label.GitHub": { "message": "GitHub", "description": "Navbar item with label GitHub" + }, + "logo.alt": { + "message": "Harvester Logo", + "description": "The alt text of navbar logo" + }, + "item.label.Rancher Home": { + "message": "Rancher 主页", + "description": "Navbar item with label Rancher Home" } }