Skip to content

fix: remove stale pages after incremental deletes - #2536

Open
ZluxYao wants to merge 2 commits into
jackyzha0:v5from
ZluxYao:fix/remove-deleted-pages
Open

fix: remove stale pages after incremental deletes#2536
ZluxYao wants to merge 2 commits into
jackyzha0:v5from
ZluxYao:fix/remove-deleted-pages

Conversation

@ZluxYao

@ZluxYao ZluxYao commented Aug 26, 2026

Copy link
Copy Markdown

Summary

  • remove generated HTML when a Markdown source is deleted or filtered out during watch mode
  • re-emit pages when another source takes ownership of the same slug
  • make stale page cleanup idempotent
  • add regression tests for regular pages, root indexes, and folder notes

Reproduction

Deleting a Markdown file during watch mode updates Explorer and the content index, but leaves its previously generated HTML in the output directory. The stale page remains directly accessible until a full rebuild clears the output.

Testing

  • npm run check
  • npm test
  • manually verified that deleting a page removes its HTML and makes the old URL return 404

This PR was written entirely using an LLM.

@github-actions

github-actions Bot commented Aug 26, 2026

Copy link
Copy Markdown
built with Refined Cloudflare Pages Action

⚡ Cloudflare Pages Deployment

Name Status Preview Last Commit
quartz ✅ Ready (View Log) Visit Preview 50227ba

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant