(version: Version)
| 16 | } |
| 17 | |
| 18 | export async function getContent(version: Version) { |
| 19 | const contentForVersion = content.get(version) |
| 20 | if (!contentForVersion) { |
| 21 | throw new Error(`Content for version "${version}" could not be retrieved.`) |
| 22 | } |
| 23 | const { allPages, allSections } = await loadContentCollections(version) |
| 24 | return { allPages, allSections } |
| 25 | } |
no test coverage detected
searching dependent graphs…