diff options
Diffstat (limited to 'nuldoc-src/commands')
| -rw-r--r-- | nuldoc-src/commands/build.ts | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/nuldoc-src/commands/build.ts b/nuldoc-src/commands/build.ts index ef529e0..d523861 100644 --- a/nuldoc-src/commands/build.ts +++ b/nuldoc-src/commands/build.ts @@ -6,6 +6,7 @@ import { parseDocBookFile } from "../docbook/parse.ts"; import { Page } from "../page.ts"; import { render } from "../render.ts"; import { generateAboutPage } from "../pages/about.ts"; +import { generateNotFoundPage } from "../pages/not_found.ts"; import { generatePostPage, getPostCreatedDate, @@ -19,6 +20,7 @@ export async function runBuildCommand(config: Config) { await buildPostListPage(posts, config); await buildTagPages(posts, config); await buildAboutPage(config); + await buildNotFoundPage(config); await copyStaticFiles(config); } @@ -64,6 +66,11 @@ async function buildAboutPage(config: Config) { await writePage(aboutPage, config); } +async function buildNotFoundPage(config: Config) { + const notFoundPage = await generateNotFoundPage(config); + await writePage(notFoundPage, config); +} + async function buildTagPages(posts: PostPage[], config: Config) { const tagsAndPosts = collectTags(posts); for (const [tag, posts] of tagsAndPosts) { |
