generate and load docs json
This commit is contained in:
8
packages/docs/app/load-docs.server.ts
Normal file
8
packages/docs/app/load-docs.server.ts
Normal file
@@ -0,0 +1,8 @@
|
||||
import { readFile } from "node:fs/promises"
|
||||
import type { JSONOutput } from "typedoc"
|
||||
|
||||
export type DocsJson = JSONOutput.Reflection
|
||||
|
||||
export async function loadDocs(): Promise<DocsJson> {
|
||||
return JSON.parse(await readFile("app/docs.json", "utf8"))
|
||||
}
|
||||
Reference in New Issue
Block a user