bitburner-src/src/Documentation/root.ts

11 lines
245 B
TypeScript
Raw Normal View History

2023-07-12 23:10:52 +02:00
import index from "!!raw-loader!./doc/index.md";
import { AllPages } from "./pages";
export type Document = typeof index;
export const Root = {
content: index,
};
export const getPage = (title: string): Document => AllPages[title] ?? Root;