Skip to content

Commit

Permalink
sidebar should include numbers (#19)
Browse files Browse the repository at this point in the history
  • Loading branch information
rambleraptor authored Sep 23, 2024
1 parent 2baea32 commit 6fda034
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/src/sidebar.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 6fda034

Please sign in to comment.