Skip to content

Commit 1408926

Browse files
committed
fix: build after static api change
1 parent 84296b8 commit 1408926

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

.github/tools/mod_html_to_readme_md.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ function toMarkdown(elements: Array<Node> | Node | null, markdown = "") {
163163
case "PRE": {
164164
if (node.querySelector("code")) {
165165
const language = Array.from(node.querySelectorAll("*"))
166-
.flatMap(child => Array.from(child.attributes))
166+
.flatMap((child) => Array.from(child.attributes))
167167
.find((attr) => attr.name.startsWith("*code"))?.name.match(/\[(.*)\]/)?.[1] ?? ""
168168
markdown += `\n\`\`\`${language}\n${unindent(node.textContent)}\n\`\`\`\n`
169169
break

www/build.ts

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,13 @@ import { fromFileUrl, join } from "@std/path"
66
await using _ = Deno.serve({ port: Number(new URL(globalThis.location.href).port) }, serve.fetch)
77

88
await Mizu.generate([
9-
{ source: () => html("index"), destination: "index.html", render: {} },
10-
{ source: () => html("build"), destination: "build.html", render: {} },
11-
{ source: () => html("playground"), destination: "playground.html", render: {} },
12-
{ source: () => html("community"), destination: "community.html", render: {} },
13-
{ source: () => js("@mizu/render/client", { format: "iife" }), destination: "client.js" },
14-
{ source: () => js("@mizu/render/client", { format: "esm" }), destination: "client.mjs" },
15-
{ source: new URL("/matcha.css", globalThis.location.href), destination: "matcha.css" },
16-
{ source: new URL("/highlight.js", globalThis.location.href), destination: "highlight.js" },
17-
{ source: "*.{svg,css,png,js}", directory: fromFileUrl(import.meta.resolve("./static")), destination: "." },
9+
[() => html("index"), "index.html", { render: {} }],
10+
[() => html("build"), "build.html", { render: {} }],
11+
[() => html("playground"), "playground.html", { render: {} }],
12+
[() => html("community"), "community.html", { render: {} }],
13+
[() => js("@mizu/render/client", { format: "iife" }), "client.js"],
14+
[() => js("@mizu/render/client", { format: "esm" }), "client.mjs"],
15+
[new URL("/matcha.css", globalThis.location.href), "matcha.css"],
16+
[new URL("/highlight.js", globalThis.location.href), "highlight.js"],
17+
["*.{svg,css,png,js}", ".", { directory: fromFileUrl(import.meta.resolve("./static")) }],
1818
], { output: join(Deno.cwd(), ".pages") })

0 commit comments

Comments
 (0)