diff --git a/dev.ts b/dev.ts index 1667430..c962fd9 100644 --- a/dev.ts +++ b/dev.ts @@ -31,8 +31,11 @@ async function watchAndBuildDocs() { changeOccurred = false; running = false; }, 250); - const watcher = Deno.watchFs(["docs/src"]); - for await (const _ of watcher) { + const watcher = Deno.watchFs(["docs"]); + for await (const ev of watcher) { + if (ev.paths.every((x) => x.includes("/docs/-/"))) { + continue; + } changeOccurred = true; } } diff --git a/docs/build.ts b/docs/build.ts index 8abe622..2b2ef8a 100644 --- a/docs/build.ts +++ b/docs/build.ts @@ -46,7 +46,7 @@ function injectIntoTemplate( "", "
", [ - ``, + ``, rendered, ], "",