generate and load docs json

This commit is contained in:
MapleLeaf
2021-12-29 14:00:35 -06:00
parent 3eae868f4e
commit 6a3e83769c
6 changed files with 101 additions and 35 deletions

View 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"))
}