From 7f36bc3a96bb3fc5fa450becddfdbbcd1dc35042 Mon Sep 17 00:00:00 2001 From: NgocNhi123 Date: Wed, 26 Jun 2024 22:02:32 +0700 Subject: [PATCH] sidebar: show index as primary --- new-docs/sidebar.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/new-docs/sidebar.ts b/new-docs/sidebar.ts index 2853661c..e11f5b48 100644 --- a/new-docs/sidebar.ts +++ b/new-docs/sidebar.ts @@ -17,7 +17,7 @@ function generateSidebar(dirPath: string, parentDir: string): SidebarItem[] { const fileName = entry.name.replace(".stories.mdx", ""); if (fileName === "index") { items.unshift({ - text: capitalize(fileName.replace(/-/g, " ")), + text: 'Primary', link: parentDir, }); } else {