summaryrefslogtreecommitdiffhomepage
path: root/vhosts/blog/nuldoc-src/pages
diff options
context:
space:
mode:
authornsfisis <nsfisis@gmail.com>2025-01-12 21:50:13 +0900
committernsfisis <nsfisis@gmail.com>2025-01-12 21:50:13 +0900
commitf31d24cd1417088b7806ddc7d2e0df982d666e38 (patch)
tree9cbaf34e7e68cdc29c4fca357534dcb00037538f /vhosts/blog/nuldoc-src/pages
parent940eae61767214eb1ee573284dc8b5876d536fb3 (diff)
downloadnsfisis.dev-f31d24cd1417088b7806ddc7d2e0df982d666e38.tar.gz
nsfisis.dev-f31d24cd1417088b7806ddc7d2e0df982d666e38.tar.zst
nsfisis.dev-f31d24cd1417088b7806ddc7d2e0df982d666e38.zip
refactor(blog/nuldoc): remove top-level __root__ element
Diffstat (limited to 'vhosts/blog/nuldoc-src/pages')
-rw-r--r--vhosts/blog/nuldoc-src/pages/about.tsx3
-rw-r--r--vhosts/blog/nuldoc-src/pages/home.tsx3
-rw-r--r--vhosts/blog/nuldoc-src/pages/not_found.tsx3
-rw-r--r--vhosts/blog/nuldoc-src/pages/post.tsx4
-rw-r--r--vhosts/blog/nuldoc-src/pages/post_list.tsx3
-rw-r--r--vhosts/blog/nuldoc-src/pages/slide.tsx3
-rw-r--r--vhosts/blog/nuldoc-src/pages/slide_list.tsx3
-rw-r--r--vhosts/blog/nuldoc-src/pages/tag.tsx3
-rw-r--r--vhosts/blog/nuldoc-src/pages/tag_list.tsx3
9 files changed, 10 insertions, 18 deletions
diff --git a/vhosts/blog/nuldoc-src/pages/about.tsx b/vhosts/blog/nuldoc-src/pages/about.tsx
index ea74fa32..91d7fee4 100644
--- a/vhosts/blog/nuldoc-src/pages/about.tsx
+++ b/vhosts/blog/nuldoc-src/pages/about.tsx
@@ -3,7 +3,6 @@ import GlobalHeader from "../components/GlobalHeader.tsx";
import PageLayout from "../components/PageLayout.tsx";
import StaticScript from "../components/StaticScript.tsx";
import { Config } from "../config.ts";
-import { el } from "../dom.ts";
import { renderToDOM } from "../jsx/render.ts";
import { Page } from "../page.ts";
import { dateToString } from "../revision.ts";
@@ -98,7 +97,7 @@ export async function generateAboutPage(
);
return {
- root: el("__root__", {}, html),
+ root: html,
renderer: "html",
destFilePath: "/about/index.html",
href: "/about/",
diff --git a/vhosts/blog/nuldoc-src/pages/home.tsx b/vhosts/blog/nuldoc-src/pages/home.tsx
index 3e79928a..a9a5d542 100644
--- a/vhosts/blog/nuldoc-src/pages/home.tsx
+++ b/vhosts/blog/nuldoc-src/pages/home.tsx
@@ -3,7 +3,6 @@ import { renderToDOM } from "../jsx/render.ts";
import GlobalHeader from "../components/GlobalHeader.tsx";
import PageLayout from "../components/PageLayout.tsx";
import { Config } from "../config.ts";
-import { el } from "../dom.ts";
import { Page } from "../page.ts";
export type HomePage = Page;
@@ -57,7 +56,7 @@ export async function generateHomePage(config: Config): Promise<HomePage> {
);
return {
- root: el("__root__", {}, html),
+ root: html,
renderer: "html",
destFilePath: "/index.html",
href: "/",
diff --git a/vhosts/blog/nuldoc-src/pages/not_found.tsx b/vhosts/blog/nuldoc-src/pages/not_found.tsx
index f0b5f964..27be0738 100644
--- a/vhosts/blog/nuldoc-src/pages/not_found.tsx
+++ b/vhosts/blog/nuldoc-src/pages/not_found.tsx
@@ -3,7 +3,6 @@ import { renderToDOM } from "../jsx/render.ts";
import GlobalHeader from "../components/GlobalHeader.tsx";
import PageLayout from "../components/PageLayout.tsx";
import { Config } from "../config.ts";
-import { el } from "../dom.ts";
import { Page } from "../page.ts";
export type NotFoundPage = Page;
@@ -31,7 +30,7 @@ export async function generateNotFoundPage(
);
return {
- root: el("__root__", {}, html),
+ root: html,
renderer: "html",
destFilePath: "/404.html",
href: "/404.html",
diff --git a/vhosts/blog/nuldoc-src/pages/post.tsx b/vhosts/blog/nuldoc-src/pages/post.tsx
index 529d6738..541c33e3 100644
--- a/vhosts/blog/nuldoc-src/pages/post.tsx
+++ b/vhosts/blog/nuldoc-src/pages/post.tsx
@@ -4,7 +4,7 @@ import GlobalFooter from "../components/GlobalFooter.tsx";
import GlobalHeader from "../components/GlobalHeader.tsx";
import PageLayout from "../components/PageLayout.tsx";
import { Config, getTagLabel } from "../config.ts";
-import { el, Element } from "../dom.ts";
+import { Element } from "../dom.ts";
import { Document } from "../ndoc/document.ts";
import { Page } from "../page.ts";
import { Date, dateToString, Revision } from "../revision.ts";
@@ -108,7 +108,7 @@ export async function generatePostPage(
"index.html",
);
return {
- root: el("__root__", {}, html),
+ root: html,
renderer: "html",
destFilePath: destFilePath,
href: destFilePath.replace("index.html", ""),
diff --git a/vhosts/blog/nuldoc-src/pages/post_list.tsx b/vhosts/blog/nuldoc-src/pages/post_list.tsx
index 2d32636f..3cf17df4 100644
--- a/vhosts/blog/nuldoc-src/pages/post_list.tsx
+++ b/vhosts/blog/nuldoc-src/pages/post_list.tsx
@@ -4,7 +4,6 @@ import GlobalHeader from "../components/GlobalHeader.tsx";
import PageLayout from "../components/PageLayout.tsx";
import PostPageEntry from "../components/PostPageEntry.tsx";
import { Config } from "../config.ts";
-import { el } from "../dom.ts";
import { Page } from "../page.ts";
import { dateToString } from "../revision.ts";
import { getPostPublishedDate, PostPage } from "./post.tsx";
@@ -45,7 +44,7 @@ export async function generatePostListPage(
);
return {
- root: el("__root__", {}, html),
+ root: html,
renderer: "html",
destFilePath: "/posts/index.html",
href: "/posts/",
diff --git a/vhosts/blog/nuldoc-src/pages/slide.tsx b/vhosts/blog/nuldoc-src/pages/slide.tsx
index 4165163a..843f539b 100644
--- a/vhosts/blog/nuldoc-src/pages/slide.tsx
+++ b/vhosts/blog/nuldoc-src/pages/slide.tsx
@@ -5,7 +5,6 @@ import GlobalHeader from "../components/GlobalHeader.tsx";
import PageLayout from "../components/PageLayout.tsx";
import StaticScript from "../components/StaticScript.tsx";
import { Config, getTagLabel } from "../config.ts";
-import { el } from "../dom.ts";
import { Page } from "../page.ts";
import { Date, dateToString, Revision } from "../revision.ts";
import { Slide } from "../slide/slide.ts";
@@ -92,7 +91,7 @@ export async function generateSlidePage(
"index.html",
);
return {
- root: el("__root__", {}, html),
+ root: html,
renderer: "html",
destFilePath: destFilePath,
href: destFilePath.replace("index.html", ""),
diff --git a/vhosts/blog/nuldoc-src/pages/slide_list.tsx b/vhosts/blog/nuldoc-src/pages/slide_list.tsx
index 31eeca68..e42cfcea 100644
--- a/vhosts/blog/nuldoc-src/pages/slide_list.tsx
+++ b/vhosts/blog/nuldoc-src/pages/slide_list.tsx
@@ -4,7 +4,6 @@ import GlobalHeader from "../components/GlobalHeader.tsx";
import PageLayout from "../components/PageLayout.tsx";
import SlidePageEntry from "../components/SlidePageEntry.tsx";
import { Config } from "../config.ts";
-import { el } from "../dom.ts";
import { Page } from "../page.ts";
import { dateToString } from "../revision.ts";
import { getPostPublishedDate } from "./post.tsx";
@@ -46,7 +45,7 @@ export async function generateSlideListPage(
);
return {
- root: el("__root__", {}, html),
+ root: html,
renderer: "html",
destFilePath: "/slides/index.html",
href: "/slides/",
diff --git a/vhosts/blog/nuldoc-src/pages/tag.tsx b/vhosts/blog/nuldoc-src/pages/tag.tsx
index 8dfc9a39..f7df1f13 100644
--- a/vhosts/blog/nuldoc-src/pages/tag.tsx
+++ b/vhosts/blog/nuldoc-src/pages/tag.tsx
@@ -5,7 +5,6 @@ import PageLayout from "../components/PageLayout.tsx";
import PostPageEntry from "../components/PostPageEntry.tsx";
import SlidePageEntry from "../components/SlidePageEntry.tsx";
import { Config, getTagLabel } from "../config.ts";
-import { el } from "../dom.ts";
import { Page } from "../page.ts";
import { getPostPublishedDate } from "./post.tsx";
import { TaggedPage } from "./tagged_page.ts";
@@ -52,7 +51,7 @@ export async function generateTagPage(
);
return {
- root: el("__root__", {}, html),
+ root: html,
renderer: "html",
destFilePath: `/tags/${tagSlug}/index.html`,
href: `/tags/${tagSlug}/`,
diff --git a/vhosts/blog/nuldoc-src/pages/tag_list.tsx b/vhosts/blog/nuldoc-src/pages/tag_list.tsx
index 5ea6f25f..728384f4 100644
--- a/vhosts/blog/nuldoc-src/pages/tag_list.tsx
+++ b/vhosts/blog/nuldoc-src/pages/tag_list.tsx
@@ -3,7 +3,6 @@ import { renderToDOM } from "../jsx/render.ts";
import GlobalHeader from "../components/GlobalHeader.tsx";
import PageLayout from "../components/PageLayout.tsx";
import { Config } from "../config.ts";
-import { el } from "../dom.ts";
import { Page } from "../page.ts";
import { TagPage } from "./tag.tsx";
@@ -61,7 +60,7 @@ export async function generateTagListPage(
);
return {
- root: el("__root__", {}, html),
+ root: html,
renderer: "html",
destFilePath: "/tags/index.html",
href: "/tags/",