summaryrefslogtreecommitdiffhomepage
path: root/services/blog/nuldoc-src/generators/about.ts
diff options
context:
space:
mode:
Diffstat (limited to 'services/blog/nuldoc-src/generators/about.ts')
-rw-r--r--services/blog/nuldoc-src/generators/about.ts23
1 files changed, 23 insertions, 0 deletions
diff --git a/services/blog/nuldoc-src/generators/about.ts b/services/blog/nuldoc-src/generators/about.ts
new file mode 100644
index 00000000..6663a190
--- /dev/null
+++ b/services/blog/nuldoc-src/generators/about.ts
@@ -0,0 +1,23 @@
+import AboutPage from "../pages/AboutPage.tsx";
+import { Config } from "../config.ts";
+import { renderToDOM } from "../jsx/render.ts";
+import { Page } from "../page.ts";
+import { SlidePage } from "./slide.ts";
+
+export type AboutPage = Page;
+
+export async function generateAboutPage(
+ slides: SlidePage[],
+ config: Config,
+): Promise<AboutPage> {
+ const html = await renderToDOM(
+ AboutPage(slides, config),
+ );
+
+ return {
+ root: html,
+ renderer: "html",
+ destFilePath: "/about/index.html",
+ href: "/about/",
+ };
+}