(page: Page)
| 469 | * This allows pages to appear in a different section in search results than in navigation. |
| 470 | */ |
| 471 | export function getSearchSection(page: Page): string { |
| 472 | return ( |
| 473 | (page.exports?.searchSection as string) ?? |
| 474 | (page.exports?.group as string) ?? |
| 475 | (page.exports?.section as string) ?? |
| 476 | 'Components' |
| 477 | ); |
| 478 | } |
| 479 | |
| 480 | export function getOrderedLibraries(currentPage: Page) { |
| 481 | const allLibraries = (Object.keys(TAB_DEFS) as Library[]).map(id => ({id, ...TAB_DEFS[id]})); |
no outgoing calls
no test coverage detected