From 02d2acbb37a72633d26f5e474edc96b915f1d8b6 Mon Sep 17 00:00:00 2001
From: "yongen.loong" <yongen.loong@aelf.io>
Date: Thu, 27 Jun 2024 10:55:32 +0800
Subject: [PATCH] feat: tutorials category

---
 config/footer-links.json |  4 ++++
 config/navbar-links.json |  5 +++++
 docs/tutorials/index.md  |  4 ----
 sidebars.ts              | 12 ++++++++++++
 4 files changed, 21 insertions(+), 4 deletions(-)
 delete mode 100644 docs/tutorials/index.md

diff --git a/config/footer-links.json b/config/footer-links.json
index e767e024..038980b0 100644
--- a/config/footer-links.json
+++ b/config/footer-links.json
@@ -40,6 +40,10 @@
           "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 63ab1928..922099c0 100644
--- a/config/navbar-links.json
+++ b/config/navbar-links.json
@@ -15,6 +15,11 @@
       "label": "Docs",
       "position": "left"
     },
+    {
+      "to": "/tutorials",
+      "label": "Tutorials",
+      "position": "left"
+    },
     {
       "to": "/tools",
       "label": "Tools",
diff --git a/docs/tutorials/index.md b/docs/tutorials/index.md
deleted file mode 100644
index 31c9b263..00000000
--- a/docs/tutorials/index.md
+++ /dev/null
@@ -1,4 +0,0 @@
----
-sidebar_position: 3
-title: Tutorials
----
diff --git a/sidebars.ts b/sidebars.ts
index db6b7363..7adeac12 100644
--- a/sidebars.ts
+++ b/sidebars.ts
@@ -48,6 +48,18 @@ const sidebars: SidebarsConfig = {
       items: [{ type: "autogenerated", dirName: "docs" }],
     },
   ],
+  tutorials: [
+    {
+      type: "category",
+      label: "Tutorials",
+      collapsible: false,
+      link: {
+        type: "generated-index",
+        slug: "/tutorials",
+      },
+      items: [{ type: "autogenerated", dirName: "tutorials" }],
+    },
+  ],
   tools: [
     {
       type: "category",