From df903f7064c574a56a9fb2adaed1add60fe010fe Mon Sep 17 00:00:00 2001 From: Alex Stephen Date: Mon, 23 Sep 2024 00:40:47 -0400 Subject: [PATCH] sidebar should include numbers --- scripts/src/sidebar.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/src/sidebar.ts b/scripts/src/sidebar.ts index 764cdc0..6ceab42 100644 --- a/scripts/src/sidebar.ts +++ b/scripts/src/sidebar.ts @@ -27,7 +27,7 @@ function buildSidebar(aeps: AEP[], groups: any): Sidebar { for (var group of groups.categories) { response.push({ 'label': group.title, - 'items': aeps.filter((aep) => aep.category == group.code).sort((a1, a2) => a1.order > a2.order ? 1 : -1).map((aep) => aep.slug) + 'items': aeps.filter((aep) => aep.category == group.code).sort((a1, a2) => a1.order > a2.order ? 1 : -1).map((aep) => ({label: `${aep.id}. ${aep.title}`, link: aep.slug})) }) } return response as Sidebar;