1
0
mirror of https://github.com/jaandrle/deka-dom-el synced 2025-07-01 12:22:15 +02:00

♻️ Refactor docs

This commit is contained in:
2023-11-06 20:20:32 +01:00
parent 98d9d6a5b1
commit 4d56fa705e
6 changed files with 98 additions and 42 deletions

View File

@ -12,12 +12,9 @@ const { el }= await register(ssr.dom);
echo("Loading components…");
const pkg= s.cat("package.json").xargs(JSON.parse);
const { head, body, css }= await import("../docs_src/index.html.js"); //→ TODO: important to mention in docs!!!
document.head.append(
head(pkg, path_target)
);
const { page, css }= await import("../docs_src/index.html.js"); //→ TODO: important to mention in docs!!!
document.body.append(
el(body, pkg),
el(page, { pkg, path_target }),
el("script", { src: "https://cdn.jsdelivr.net/npm/shiki" }),
el("script", { src: "index.js", type: "module" })
);