From 0aa6c5eae8b20fb40e9912b1c2c62a8c504f1798 Mon Sep 17 00:00:00 2001 From: Trim21 Date: Mon, 22 May 2023 21:38:10 -0300 Subject: [PATCH] chore(website): remove old chinese translation from the sidebar Closes #1169 --- docs/constants.js | 2 -- docs/docusaurus.config.js | 10 ---------- .../en/docusaurus-plugin-content-docs/current.json | 4 ---- docs/i18n/en/docusaurus-theme-classic/footer.json | 4 ---- docs/sidebars.js | 7 ------- 5 files changed, 27 deletions(-) diff --git a/docs/constants.js b/docs/constants.js index face7677..cfbb1f41 100644 --- a/docs/constants.js +++ b/docs/constants.js @@ -2,10 +2,8 @@ const GITHUB_URL = 'https://github.com/go-task/task'; const TWITTER_URL = 'https://twitter.com/taskfiledev'; const MASTODON_URL = 'https://fosstodon.org/@task'; const DISCORD_URL = 'https://discord.gg/6TY36E39UK'; -const CHINESE_URL = 'https://task-zh.readthedocs.io/zh_CN/latest/'; module.exports = { - CHINESE_URL, DISCORD_URL, GITHUB_URL, MASTODON_URL, diff --git a/docs/docusaurus.config.js b/docs/docusaurus.config.js index c17c4053..6eac4c40 100644 --- a/docs/docusaurus.config.js +++ b/docs/docusaurus.config.js @@ -2,7 +2,6 @@ // Note: type annotations allow type checking and IDEs autocompletion const { - CHINESE_URL, DISCORD_URL, GITHUB_URL, MASTODON_URL, @@ -206,15 +205,6 @@ const getConfig = async () => { href: 'https://opencollective.com/task' } ] - }, - { - title: 'Translations', - items: [ - { - label: 'Chinese | 中国人', - href: CHINESE_URL - } - ] } ] }, diff --git a/docs/i18n/en/docusaurus-plugin-content-docs/current.json b/docs/i18n/en/docusaurus-plugin-content-docs/current.json index f2135103..dd30528d 100644 --- a/docs/i18n/en/docusaurus-plugin-content-docs/current.json +++ b/docs/i18n/en/docusaurus-plugin-content-docs/current.json @@ -2,9 +2,5 @@ "version.label": { "message": "Next", "description": "The label for version current" - }, - "sidebar.tutorialSidebar.link.Chinese | 中国人": { - "message": "Chinese | 中国人", - "description": "The label for link Chinese | 中国人 in sidebar tutorialSidebar, linking to https://task-zh.readthedocs.io/zh_CN/latest/" } } diff --git a/docs/i18n/en/docusaurus-theme-classic/footer.json b/docs/i18n/en/docusaurus-theme-classic/footer.json index 2a81edee..111065ba 100644 --- a/docs/i18n/en/docusaurus-theme-classic/footer.json +++ b/docs/i18n/en/docusaurus-theme-classic/footer.json @@ -42,9 +42,5 @@ "link.item.label.OpenCollective": { "message": "OpenCollective", "description": "The label of footer link with label=OpenCollective linking to https://opencollective.com/task" - }, - "link.item.label.Chinese | 中国人": { - "message": "Chinese | 中国人", - "description": "The label of footer link with label=Chinese | 中国人 linking to https://task-zh.readthedocs.io/zh_CN/latest/" } } diff --git a/docs/sidebars.js b/docs/sidebars.js index 26c852ff..e93b90ba 100644 --- a/docs/sidebars.js +++ b/docs/sidebars.js @@ -1,18 +1,11 @@ // @ts-check -const { CHINESE_URL } = require('./constants'); - /** @type {import('@docusaurus/plugin-content-docs').SidebarsConfig} */ const sidebars = { tutorialSidebar: [ { type: 'autogenerated', dirName: '.' - }, - { - type: 'link', - label: 'Chinese | 中国人', - href: CHINESE_URL } ] };