From 9c3fd13d283630fbe705fd3a1753ee4cdf8cdf20 Mon Sep 17 00:00:00 2001 From: dashuai Date: Thu, 29 Feb 2024 14:03:02 +0800 Subject: [PATCH] Social img (#155) --- i18n/zh-CN/code.json | 9 +++++++++ i18n/zh-CN/docusaurus-plugin-content-docs/current.json | 4 ++-- src/theme/DocSidebarItem/Category/index.tsx | 9 ++++++++- 3 files changed, 19 insertions(+), 3 deletions(-) diff --git a/i18n/zh-CN/code.json b/i18n/zh-CN/code.json index 1f284a4ec6..78cd85cf93 100644 --- a/i18n/zh-CN/code.json +++ b/i18n/zh-CN/code.json @@ -574,5 +574,14 @@ }, "plugins.instruction.join": { "message": "加入我们的社区" + }, + "docs.sidebar.tutorialSidebar.category.Getting Started": { + "message": "入门" + }, + "docs.sidebar.tutorialSidebar.category.User Guides": { + "message": "用户指南" + }, + "docs.sidebar.tutorialSidebar.category.Developer Guides": { + "message": "开发者指南" } } diff --git a/i18n/zh-CN/docusaurus-plugin-content-docs/current.json b/i18n/zh-CN/docusaurus-plugin-content-docs/current.json index c286665b44..afc78e1feb 100644 --- a/i18n/zh-CN/docusaurus-plugin-content-docs/current.json +++ b/i18n/zh-CN/docusaurus-plugin-content-docs/current.json @@ -23,9 +23,9 @@ "message": "贡献", "description": "The label for category Contributing in sidebar tutorialSidebar" }, - "sidebar.tutorialSidebar.link.Getting Started": { + "sidebar.tutorialSidebar.category.Getting Started": { "message": "入门", - "description": "The label for link Getting Started in sidebar tutorialSidebar, linking to #" + "description": "The label for category Contents Management in sidebar tutorialSidebar" }, "sidebar.tutorialSidebar.link.Recipes": { "message": "教程", diff --git a/src/theme/DocSidebarItem/Category/index.tsx b/src/theme/DocSidebarItem/Category/index.tsx index 8890a8043d..da6338105c 100644 --- a/src/theme/DocSidebarItem/Category/index.tsx +++ b/src/theme/DocSidebarItem/Category/index.tsx @@ -80,6 +80,7 @@ function CollapseButton({ categoryLabel: string; onClick: ComponentProps<'button'>['onClick']; }) { + console.log('categoryLabel', categoryLabel); return (