summaryrefslogtreecommitdiffhomepage
path: root/vhosts/blog/nuldoc-src/ndoc/to_html.ts
diff options
context:
space:
mode:
authornsfisis <nsfisis@gmail.com>2025-01-13 19:40:40 +0900
committernsfisis <nsfisis@gmail.com>2025-01-13 19:40:40 +0900
commit0be356bc6d468ee82ec0b8798409c1da48c653f3 (patch)
treedeb9a95c676170ea55580837f0f46a6d1d6f0bc6 /vhosts/blog/nuldoc-src/ndoc/to_html.ts
parente9d5b6e12f222fc363bd22dd35589449be776f99 (diff)
downloadnsfisis.dev-0be356bc6d468ee82ec0b8798409c1da48c653f3.tar.gz
nsfisis.dev-0be356bc6d468ee82ec0b8798409c1da48c653f3.tar.zst
nsfisis.dev-0be356bc6d468ee82ec0b8798409c1da48c653f3.zip
refactor(blog/nuldoc): rename DocBookError to NuldocError
Diffstat (limited to 'vhosts/blog/nuldoc-src/ndoc/to_html.ts')
-rw-r--r--vhosts/blog/nuldoc-src/ndoc/to_html.ts6
1 files changed, 3 insertions, 3 deletions
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");