Skip to content

Commit

Permalink
Remove extra intro from API sidebar
Browse files Browse the repository at this point in the history
  • Loading branch information
flotwig committed Oct 21, 2024
1 parent 9d5b7fb commit 528a8da
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion sidebars.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,17 @@ const sidebars: SidebarsConfig = {
label: "Endpoints",
collapsed: false,
collapsible: false,
items: require("./docs/api/endpoints/sidebar.ts")
items: ((sidebar)=>{
// filter out superfluous Introduction page
sidebar = sidebar.filter((x) => {
if (x.id === 'api/endpoints/magnolia-api') {
return false
}

return true
})
return sidebar
})(require("./docs/api/endpoints/sidebar.ts"))
}
],
guides: [
Expand Down

0 comments on commit 528a8da

Please sign in to comment.