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