Files

10 lines
246 B
TypeScript
Raw Permalink Normal View History

import { DOC_SOURCES } from "./docs-content.generated"
export function loadDocSource(file: string): string {
const source = DOC_SOURCES[file]
if (source === undefined) {
throw new Error(`Unknown doc file: ${file}`)
}
return source
}