mirror of
https://github.com/alrayyes/wiki.git
synced 2025-05-06 08:51:50 +00:00
use posix style paths for all path ops
This commit is contained in:
parent
de72dd4e4a
commit
663c41fa41
7 changed files with 6 additions and 13 deletions
quartz
|
@ -99,7 +99,7 @@ async function startServing(ctx: BuildCtx, initialContent: ProcessedContent[]) {
|
|||
|
||||
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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue