From 753f39baa98183463985bd1257ed315953c9c5c1 Mon Sep 17 00:00:00 2001 From: Abe Tomoaki Date: Wed, 26 Nov 2025 11:17:17 +0900 Subject: [PATCH] website: Add a page on motor recycling Content will be added later. We only need Japanese pages, but due to Docusaurus's specifications, it seems we need to prepare pages for all locales. --- website/docs/recycling/_category_.json | 7 +++++++ website/docs/recycling/index.md | 8 ++++++++ website/docusaurus.config.ts | 6 ++++++ .../current/recycling/_category_.json | 7 +++++++ .../current/recycling/index.md | 7 +++++++ website/sidebars.ts | 1 + 6 files changed, 36 insertions(+) create mode 100644 website/docs/recycling/_category_.json create mode 100644 website/docs/recycling/index.md create mode 100644 website/i18n/ja/docusaurus-plugin-content-docs/current/recycling/_category_.json create mode 100644 website/i18n/ja/docusaurus-plugin-content-docs/current/recycling/index.md diff --git a/website/docs/recycling/_category_.json b/website/docs/recycling/_category_.json new file mode 100644 index 0000000..32fe144 --- /dev/null +++ b/website/docs/recycling/_category_.json @@ -0,0 +1,7 @@ +{ + "label": "Recycling", + "position": 3, + "link": { + "type": "generated-index" + } +} diff --git a/website/docs/recycling/index.md b/website/docs/recycling/index.md new file mode 100644 index 0000000..7cebd77 --- /dev/null +++ b/website/docs/recycling/index.md @@ -0,0 +1,8 @@ +--- +sidebar_position: 3 +--- + +# recycling + +... + diff --git a/website/docusaurus.config.ts b/website/docusaurus.config.ts index 222e579..2a12ee7 100644 --- a/website/docusaurus.config.ts +++ b/website/docusaurus.config.ts @@ -102,6 +102,12 @@ const config: Config = { position: 'left', label: 'Products', }, + { + type: 'docSidebar', + sidebarId: 'recyclingSidebar', + position: 'left', + label: 'Recycling', + }, { type: 'localeDropdown', }, diff --git a/website/i18n/ja/docusaurus-plugin-content-docs/current/recycling/_category_.json b/website/i18n/ja/docusaurus-plugin-content-docs/current/recycling/_category_.json new file mode 100644 index 0000000..32fe144 --- /dev/null +++ b/website/i18n/ja/docusaurus-plugin-content-docs/current/recycling/_category_.json @@ -0,0 +1,7 @@ +{ + "label": "Recycling", + "position": 3, + "link": { + "type": "generated-index" + } +} diff --git a/website/i18n/ja/docusaurus-plugin-content-docs/current/recycling/index.md b/website/i18n/ja/docusaurus-plugin-content-docs/current/recycling/index.md new file mode 100644 index 0000000..5d625ef --- /dev/null +++ b/website/i18n/ja/docusaurus-plugin-content-docs/current/recycling/index.md @@ -0,0 +1,7 @@ +--- +sidebar_position: 3 +--- + +# モーターのリサイクル + +... diff --git a/website/sidebars.ts b/website/sidebars.ts index c275623..d47fe85 100644 --- a/website/sidebars.ts +++ b/website/sidebars.ts @@ -29,6 +29,7 @@ import type {SidebarsConfig} from '@docusaurus/plugin-content-docs'; const sidebars: SidebarsConfig = { // By default, Docusaurus generates a sidebar from the docs folder structure productsSidebar: [{type: 'autogenerated', dirName: 'products'}], + recyclingSidebar: [{type: 'autogenerated', dirName: 'recycling'}], // But you can create a sidebar manually /*