( symbols: MergedSymbol[], symbolLookup: SymbolLookup, )
| 53 | * Render all documentation nodes as HTML. |
| 54 | */ |
| 55 | export async function renderDocNodes( |
| 56 | symbols: MergedSymbol[], |
| 57 | symbolLookup: SymbolLookup, |
| 58 | ): Promise<string> { |
| 59 | const grouped = groupMergedByKind(symbols) |
| 60 | const sectionPromises = KIND_DISPLAY_ORDER.map(async kind => { |
| 61 | const kindSymbols = grouped[kind] |
| 62 | if (!kindSymbols || kindSymbols.length === 0) return '' |
| 63 | return renderKindSection(kind, kindSymbols, symbolLookup) |
| 64 | }) |
| 65 | |
| 66 | const sections = await Promise.all(sectionPromises) |
| 67 | return sections.filter(Boolean).join('\n') |
| 68 | } |
| 69 | |
| 70 | /** |
| 71 | * Render a section for a specific symbol kind. |
no test coverage detected