2026-05-08 16:38:14 +09:00
|
|
|
import { DOC_SOURCES } from "./docs-content.generated"
|
2026-05-08 16:14:55 +09:00
|
|
|
|
2026-05-08 16:38:14 +09:00
|
|
|
export function loadDocSource(file: string): string {
|
|
|
|
|
const source = DOC_SOURCES[file]
|
|
|
|
|
if (source === undefined) {
|
|
|
|
|
throw new Error(`Unknown doc file: ${file}`)
|
|
|
|
|
}
|
|
|
|
|
return source
|
2026-05-08 16:14:55 +09:00
|
|
|
}
|