fix double build, chatgpt -> docs

This commit is contained in:
Theis Pieter Hollebeek 2025-10-15 12:00:35 +02:00
parent 8555cea8a8
commit fb2dffbba7
2 changed files with 3 additions and 9 deletions

5
dev.ts
View File

@ -11,12 +11,12 @@ function alertListening(addr: Addr) {
} }
async function buildDocs() { async function buildDocs() {
console.log("building docs"); console.log("Building docs...");
await new Deno.Command("deno", { await new Deno.Command("deno", {
args: ["task", "build"], args: ["task", "build"],
cwd: "docs", cwd: "docs",
}).output(); }).output();
console.log("done"); console.log("Done!");
} }
async function watchAndBuildDocs() { async function watchAndBuildDocs() {
@ -48,7 +48,6 @@ function serveDist(addr: Addr) {
} }
if (import.meta.main) { if (import.meta.main) {
await buildDocs();
watchAndBuildDocs(); watchAndBuildDocs();
serveDist({ serveDist({
hostname: "0.0.0.0", hostname: "0.0.0.0",

View File

@ -22,12 +22,7 @@
target="_blank" target="_blank"
> >
<button class="icon-button secondary"> <button class="icon-button secondary">
<img 🤓 Docs
src="https://chatgpt.com/favicon.ico"
width="20"
height="20"
>
ChatGPT
</button> </button>
</a> </a>