From 5f7a413cf3beb56defcc4eede845e888b47963e7 Mon Sep 17 00:00:00 2001 From: Misite Bao Date: Wed, 24 Aug 2022 04:22:48 +0800 Subject: [PATCH] fix(website): fix link (#1785) --- website/docusaurus.config.js | 2 +- website/i18n/en/code.json | 112 ++++++++++++++++++ .../current.json | 32 +---- website/sidebars.js | 42 +------ 4 files changed, 117 insertions(+), 71 deletions(-) diff --git a/website/docusaurus.config.js b/website/docusaurus.config.js index 37beb8f34..dec2f33d2 100644 --- a/website/docusaurus.config.js +++ b/website/docusaurus.config.js @@ -146,7 +146,7 @@ const config = { position: "right", dropdownItemsAfter: [ { - to: "/contributing/documenting", + to: "/community-guide#documenting", label: "Help Us Translate ❤", }, ], diff --git a/website/i18n/en/code.json b/website/i18n/en/code.json index 5285599fe..213608c31 100644 --- a/website/i18n/en/code.json +++ b/website/i18n/en/code.json @@ -299,5 +299,117 @@ "theme.CodeBlock.wordWrapToggle": { "message": "Toggle word wrap", "description": "The title attribute for toggle word wrapping button of code block lines" + }, + "theme.admonition.note": { + "message": "note", + "description": "The default label used for the Note admonition (:::note)" + }, + "theme.admonition.tip": { + "message": "tip", + "description": "The default label used for the Tip admonition (:::tip)" + }, + "theme.admonition.danger": { + "message": "danger", + "description": "The default label used for the Danger admonition (:::danger)" + }, + "theme.admonition.info": { + "message": "info", + "description": "The default label used for the Info admonition (:::info)" + }, + "theme.admonition.caution": { + "message": "caution", + "description": "The default label used for the Caution admonition (:::caution)" + }, + "theme.SearchModal.searchBox.resetButtonTitle": { + "message": "Clear the query", + "description": "The label and ARIA label for search box reset button" + }, + "theme.SearchModal.searchBox.cancelButtonText": { + "message": "Cancel", + "description": "The label and ARIA label for search box cancel button" + }, + "theme.SearchModal.startScreen.recentSearchesTitle": { + "message": "Recent", + "description": "The title for recent searches" + }, + "theme.SearchModal.startScreen.noRecentSearchesText": { + "message": "No recent searches", + "description": "The text when no recent searches" + }, + "theme.SearchModal.startScreen.saveRecentSearchButtonTitle": { + "message": "Save this search", + "description": "The label for save recent search button" + }, + "theme.SearchModal.startScreen.removeRecentSearchButtonTitle": { + "message": "Remove this search from history", + "description": "The label for remove recent search button" + }, + "theme.SearchModal.startScreen.favoriteSearchesTitle": { + "message": "Favorite", + "description": "The title for favorite searches" + }, + "theme.SearchModal.startScreen.removeFavoriteSearchButtonTitle": { + "message": "Remove this search from favorites", + "description": "The label for remove favorite search button" + }, + "theme.SearchModal.errorScreen.titleText": { + "message": "Unable to fetch results", + "description": "The title for error screen of search modal" + }, + "theme.SearchModal.errorScreen.helpText": { + "message": "You might want to check your network connection.", + "description": "The help text for error screen of search modal" + }, + "theme.SearchModal.footer.selectText": { + "message": "to select", + "description": "The explanatory text of the action for the enter key" + }, + "theme.SearchModal.footer.selectKeyAriaLabel": { + "message": "Enter key", + "description": "The ARIA label for the Enter key button that makes the selection" + }, + "theme.SearchModal.footer.navigateText": { + "message": "to navigate", + "description": "The explanatory text of the action for the Arrow up and Arrow down key" + }, + "theme.SearchModal.footer.navigateUpKeyAriaLabel": { + "message": "Arrow up", + "description": "The ARIA label for the Arrow up key button that makes the navigation" + }, + "theme.SearchModal.footer.navigateDownKeyAriaLabel": { + "message": "Arrow down", + "description": "The ARIA label for the Arrow down key button that makes the navigation" + }, + "theme.SearchModal.footer.closeText": { + "message": "to close", + "description": "The explanatory text of the action for Escape key" + }, + "theme.SearchModal.footer.closeKeyAriaLabel": { + "message": "Escape key", + "description": "The ARIA label for the Escape key button that close the modal" + }, + "theme.SearchModal.footer.searchByText": { + "message": "Search by", + "description": "The text explain that the search is making by Algolia" + }, + "theme.SearchModal.noResultsScreen.noResultsText": { + "message": "No results for", + "description": "The text explains that there are no results for the following search" + }, + "theme.SearchModal.noResultsScreen.suggestedQueryText": { + "message": "Try searching for", + "description": "The text for the suggested query when no results are found for the following search" + }, + "theme.SearchModal.noResultsScreen.reportMissingResultsText": { + "message": "Believe this query should return results?", + "description": "The text for the question where the user thinks there are missing results" + }, + "theme.SearchModal.noResultsScreen.reportMissingResultsLinkText": { + "message": "Let us know.", + "description": "The text for the link to report missing results" + }, + "theme.SearchModal.placeholder": { + "message": "Search docs", + "description": "The placeholder of the input of the DocSearch pop-up modal" } } diff --git a/website/i18n/en/docusaurus-plugin-content-docs/current.json b/website/i18n/en/docusaurus-plugin-content-docs/current.json index 7622763f2..b4e63124d 100644 --- a/website/i18n/en/docusaurus-plugin-content-docs/current.json +++ b/website/i18n/en/docusaurus-plugin-content-docs/current.json @@ -31,36 +31,8 @@ "message": "Tutorials", "description": "The label for category Tutorials in sidebar docs" }, - "sidebar.docs.category.Contributing": { + "sidebar.docs.link.Contributing": { "message": "Contributing", - "description": "The label for category Contributing in sidebar docs" - }, - "sidebar.docs.link.Ways of contributing": { - "message": "Ways of contributing", - "description": "The label for link Ways of contributing in sidebar docs, linking to /contributing/ways-of-contributing" - }, - "sidebar.docs.link.Setting up a Development Environment": { - "message": "Setting up a Development Environment", - "description": "The label for link Setting up a Development Environment in sidebar docs, linking to /contributing/setting-up-a-dev-environment" - }, - "sidebar.docs.link.Developing New Features": { - "message": "Developing New Features", - "description": "The label for link Developing New Features in sidebar docs, linking to /contributing/developing-new-features" - }, - "sidebar.docs.link.Fixing Bugs": { - "message": "Fixing Bugs", - "description": "The label for link Fixing Bugs in sidebar docs, linking to /contributing/fixing-bugs" - }, - "sidebar.docs.link.Testing": { - "message": "Testing", - "description": "The label for link Testing in sidebar docs, linking to /contributing/testing" - }, - "sidebar.docs.link.Documenting": { - "message": "Documenting", - "description": "The label for link Documenting in sidebar docs, linking to /contributing/documenting" - }, - "sidebar.docs.link.Helping Others": { - "message": "Helping Others", - "description": "The label for link Helping Others in sidebar docs, linking to /contributing/helping-others" + "description": "The label for link Contributing in sidebar docs, linking to /community-guide#ways-of-contributing" } } diff --git a/website/sidebars.js b/website/sidebars.js index 2c5450f14..d7df164a4 100644 --- a/website/sidebars.js +++ b/website/sidebars.js @@ -17,47 +17,9 @@ const sidebars = { docs: [ { type: "autogenerated", dirName: "." }, { - type: "category", + type: "link", label: "Contributing", - collapsible: true, - collapsed: false, - items: [ - { - type: "link", - label: "Ways of contributing", - href: "/contributing/ways-of-contributing", - }, - { - type: "link", - label: "Setting up a Development Environment", - href: "/contributing/setting-up-a-dev-environment", - }, - { - type: "link", - label: "Developing New Features", - href: "/contributing/developing-new-features", - }, - { - type: "link", - label: "Fixing Bugs", - href: "/contributing/fixing-bugs", - }, - { - type: "link", - label: "Testing", - href: "/contributing/testing", - }, - { - type: "link", - label: "Documenting", - href: "/contributing/documenting", - }, - { - type: "link", - label: "Helping Others", - href: "/contributing/helping-others", - }, - ], + href: "/community-guide#ways-of-contributing", }, ],