From 2acfb9e8701d2b001a82a6af75969a1df7d97b67 Mon Sep 17 00:00:00 2001
From: Jacky Zhao <j.zhao2k19@gmail.com>
Date: Fri, 04 Aug 2023 06:08:04 +0000
Subject: [PATCH] format, add upstream
---
quartz/build.ts | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/quartz/build.ts b/quartz/build.ts
index 07b51fb..a293277 100644
--- a/quartz/build.ts
+++ b/quartz/build.ts
@@ -91,6 +91,7 @@
clearTimeout(timeoutId)
}
+ // debounce rebuilds every 250ms
timeoutId = setTimeout(async () => {
const perf = new PerfTimer()
console.log(chalk.yellow("Detected change, rebuilding..."))
@@ -99,7 +100,7 @@
ctx.allSlugs = [...new Set([...contentMap.keys(), ...toRebuild])]
.filter((fp) => !toRemove.has(fp))
- .map((fp) => slugifyFilePath(path.relative(argv.directory, fp) as FilePath))
+ .map((fp) => slugifyFilePath(path.posix.relative(argv.directory, fp) as FilePath))
const parsedContent = await parseMarkdown(ctx, filesToRebuild)
for (const content of parsedContent) {
--
Gitblit v1.10.0