Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fastRebuild removes all pages from Explorer #1709

Open
sarmong opened this issue Jan 5, 2025 · 2 comments
Open

fastRebuild removes all pages from Explorer #1709

sarmong opened this issue Jan 5, 2025 · 2 comments
Labels
bug Something isn't working

Comments

@sarmong
Copy link

sarmong commented Jan 5, 2025

Describe the bug

When using --fastRebuild, after updating a page, all other pages disappear from explorer.

To Reproduce

  1. Create 2 markdown files.
  2. Run npx quartz build --serve --fastRebuild -d ./content
  3. Go to one of the files and update it
  4. Wait for rebuild and go to that file in browser
  5. The other page disappeared from Explorer

Expected behavior

fastRebuild correctly parses all pages to convert them to html code of Explorer

Desktop:

  • Quartz Version: 4.4.0
  • node Version: 20.9.0
  • npm version: 10.1.0
  • OS: Debian 12
  • Browser firefox
@sarmong sarmong added the bug Something isn't working label Jan 5, 2025
@oddish3
Copy link

oddish3 commented Jan 29, 2025

never run code you don't understand, but with that in mind, hopefully this is helpful.

had a tinker with this at https://github.com/oddish3/quartz-debug/blob/v4/quartz/build.ts where i also tried to refactor it after i had fixed the issue where the files don't show afrer saving an edit when serving, if the fixed version is all one wants / more correct then i think this is it : https://gist.github.com/oddish3/7df34b109a4aa1e151f83b6f134d799d

but also a headsup i know very little about this but had some time to look at this with claude, here is our conversation : https://gist.github.com/oddish3/317f1f08ab929de0c591768a5607fc9d

@aarnphm
Copy link
Collaborator

aarnphm commented Jan 31, 2025

yeah fastRebuild doesn't really work at all, I was looking into incremental build the other day, probably have to rewrite a lot of the logics (the original author just ghosted us :( )

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants