summaryrefslogtreecommitdiffhomepage
path: root/vhosts/blog/nuldoc-src/ndoc
diff options
context:
space:
mode:
Diffstat (limited to 'vhosts/blog/nuldoc-src/ndoc')
-rw-r--r--vhosts/blog/nuldoc-src/ndoc/document.ts6
-rw-r--r--vhosts/blog/nuldoc-src/ndoc/to_html.ts6
2 files changed, 6 insertions, 6 deletions
diff --git a/vhosts/blog/nuldoc-src/ndoc/document.ts b/vhosts/blog/nuldoc-src/ndoc/document.ts
index f1cdede9..26c00784 100644
--- a/vhosts/blog/nuldoc-src/ndoc/document.ts
+++ b/vhosts/blog/nuldoc-src/ndoc/document.ts
@@ -1,6 +1,6 @@
import { join } from "std/path/mod.ts";
import { Config } from "../config.ts";
-import { DocBookError } from "../errors.ts";
+import { NuldocError } from "../errors.ts";
import { Revision, stringToDate } from "../revision.ts";
import { Element, findFirstChildElement } from "../dom.ts";
import { z } from "zod/mod.ts";
@@ -40,8 +40,8 @@ export function createNewDocumentFromRootElement(
): Document {
const article = findFirstChildElement(root, "article");
if (!article) {
- throw new DocBookError(
- `[docbook.new] <article> element not found`,
+ throw new NuldocError(
+ `[nuldoc.new] <article> element not found`,
);
}
diff --git a/vhosts/blog/nuldoc-src/ndoc/to_html.ts b/vhosts/blog/nuldoc-src/ndoc/to_html.ts
index 16315a09..ddb041d5 100644
--- a/vhosts/blog/nuldoc-src/ndoc/to_html.ts
+++ b/vhosts/blog/nuldoc-src/ndoc/to_html.ts
@@ -1,7 +1,7 @@
// @deno-types="../types/highlight-js.d.ts"
import hljs from "highlight.js";
import { Document } from "./document.ts";
-import { DocBookError } from "../errors.ts";
+import { NuldocError } from "../errors.ts";
import {
addClass,
Element,
@@ -86,8 +86,8 @@ function setSectionTitleAnchor(doc: Document) {
if (c.name === "h") {
const currentSection = sectionStack[sectionStack.length - 1];
if (!currentSection) {
- throw new DocBookError(
- "[docbook.tohtml] <h> element must be inside <section>",
+ throw new NuldocError(
+ "[nuldoc.tohtml] <h> element must be inside <section>",
);
}
const sectionId = currentSection.attributes.get("id");