Merge branch 'jackyzha0:v4' into v4

This commit is contained in:
enneaa 2025-07-02 20:58:21 +08:00 committed by GitHub
commit 5122b3e74d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2613 additions and 1974 deletions

View File

@ -251,9 +251,12 @@ async function rebuild(changes: ChangeEvent[], clientRefresh: () => void, buildD
// update allFiles and then allSlugs with the consistent view of content map // update allFiles and then allSlugs with the consistent view of content map
ctx.allFiles = Array.from(contentMap.keys()) ctx.allFiles = Array.from(contentMap.keys())
ctx.allSlugs = ctx.allFiles.map((fp) => slugifyFilePath(fp as FilePath)) ctx.allSlugs = ctx.allFiles.map((fp) => slugifyFilePath(fp as FilePath))
const processedFiles = Array.from(contentMap.values()) let processedFiles = filterContent(
ctx,
Array.from(contentMap.values())
.filter((file) => file.type === "markdown") .filter((file) => file.type === "markdown")
.map((file) => file.content) .map((file) => file.content),
)
let emittedFiles = 0 let emittedFiles = 0
for (const emitter of cfg.plugins.emitters) { for (const emitter of cfg.plugins.emitters) {

File diff suppressed because one or more lines are too long