fix double build, chatgpt -> docs
This commit is contained in:
parent
8555cea8a8
commit
fb2dffbba7
5
dev.ts
5
dev.ts
@ -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",
|
||||||
|
@ -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>
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user