From 7adfeaa7b57c584f0287957078c705b23bb65aa6 Mon Sep 17 00:00:00 2001 From: "yongen.loong" Date: Thu, 27 Jun 2024 15:36:44 +0800 Subject: [PATCH] feat: move tutorials under learn --- config/footer-links.json | 4 ---- config/navbar-links.json | 5 ----- sidebars.ts | 22 ++++++++++------------ 3 files changed, 10 insertions(+), 21 deletions(-) diff --git a/config/footer-links.json b/config/footer-links.json index 038980b..e767e02 100644 --- a/config/footer-links.json +++ b/config/footer-links.json @@ -40,10 +40,6 @@ "label": "Docs", "href": "/docs" }, - { - "label": "Tutorials", - "href": "/tutorials" - }, { "label": "Tools", "href": "/tools" diff --git a/config/navbar-links.json b/config/navbar-links.json index 922099c..63ab192 100644 --- a/config/navbar-links.json +++ b/config/navbar-links.json @@ -15,11 +15,6 @@ "label": "Docs", "position": "left" }, - { - "to": "/tutorials", - "label": "Tutorials", - "position": "left" - }, { "to": "/tools", "label": "Tools", diff --git a/sidebars.ts b/sidebars.ts index 49becf9..62c5269 100644 --- a/sidebars.ts +++ b/sidebars.ts @@ -35,6 +35,16 @@ const sidebars: SidebarsConfig = { }, items: [{ type: "autogenerated", dirName: "learn" }], }, + { + type: "category", + label: "Tutorials", + collapsible: false, + link: { + type: "generated-index", + slug: "/tutorials", + }, + items: [{ type: "autogenerated", dirName: "tutorials" }], + }, ], docs: [ { @@ -69,18 +79,6 @@ const sidebars: SidebarsConfig = { ], }, ], - tutorials: [ - { - type: "category", - label: "Tutorials", - collapsible: false, - link: { - type: "generated-index", - slug: "/tutorials", - }, - items: [{ type: "autogenerated", dirName: "tutorials" }], - }, - ], tools: [ { type: "category",