(slug: string)
| 15 | } |
| 16 | |
| 17 | const parentOf = (slug: string) => { |
| 18 | const i = slug.lastIndexOf("/") |
| 19 | return i === -1 ? "" : slug.slice(0, i) |
| 20 | } |
| 21 | |
| 22 | export async function createSidebarTree(version: Version) { |
| 23 | const { allPages, allSections } = await getContent(version) |
no outgoing calls
no test coverage detected
searching dependent graphs…