* Gets all of the subheadings underneath a heading within the Table of Contents.
(TocNode: TocNode, headings: string[])
| 140 | * Gets all of the subheadings underneath a heading within the Table of Contents. |
| 141 | */ |
| 142 | function getToCSubheadings(TocNode: TocNode, headings: string[]): string[] { |
| 143 | headings.push(TocNode.title); |
| 144 | |
| 145 | for (let node of TocNode.children) { |
| 146 | getToCSubheadings(node, headings); |
| 147 | } |
| 148 | |
| 149 | return headings; |
| 150 | } |
| 151 | |
| 152 | /** |
| 153 | * Transforms a page into a ComponentItem for search/display. |
no test coverage detected