mui / toolpad

Toolpad: Full stack components and low-code builder for dashboards and internal apps.
https://mui.com/toolpad/
MIT License
1.28k stars 283 forks source link

[Docs] Navigation issue with the new changes #2517

Closed prakhargupta1 closed 1 year ago

prakhargupta1 commented 1 year ago

Duplicates

Latest version

Steps to reproduce 🕹

It seems everything falls under the category of custom components:

Screenshot 2023-08-22 at 12 33 10 PM
Janpot commented 1 year ago

How about:

diff --git a/docs/data/pages.ts b/docs/data/pages.ts
index c8844907a..8f62cf63f 100644
--- a/docs/data/pages.ts
+++ b/docs/data/pages.ts
@@ -106,24 +106,30 @@ const pages: MuiPage[] = [
       },

       {
-        pathname: '/toolpad/how-to-guides/customize-datagrid',
-        title: 'Customize data grids',
-      },
-      {
-        pathname: '/toolpad/how-to-guides/delete-datagrid-row',
-        title: 'Delete a data grid row',
-      },
-      {
-        pathname: '/toolpad/how-to-guides/embed-pages',
-        title: 'Embed a Toolpad page',
-      },
-      {
-        pathname: '/toolpad/how-to-guides/basic-auth',
-        title: 'Enable basic auth',
-      },
-      {
-        pathname: '/toolpad/how-to-guides/editor-path',
-        title: 'Troubleshoot missing editor',
+        pathname: '/toolpad/how-to-guides/misc',
+        subheader: 'Miscellaneous',
+        children: [
+          {
+            pathname: '/toolpad/how-to-guides/customize-datagrid',
+            title: 'Customize data grids',
+          },
+          {
+            pathname: '/toolpad/how-to-guides/delete-datagrid-row',
+            title: 'Delete a data grid row',
+          },
+          {
+            pathname: '/toolpad/how-to-guides/embed-pages',
+            title: 'Embed a Toolpad page',
+          },
+          {
+            pathname: '/toolpad/how-to-guides/basic-auth',
+            title: 'Enable basic auth',
+          },
+          {
+            pathname: '/toolpad/how-to-guides/editor-path',
+            title: 'Troubleshoot missing editor',
+          },
+        ],
       },
     ],
   },

Should result into Screenshot 2023-08-22 at 13 27 54