quarto-dev / quarto-dev/quarto-cli

quarto preview does not open the initial path when other render happened when preparing preview

Open
#11,744 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement preview
Dominant language
JavaScript
Stars
6k
Forks
458
Avg merge
1d 9h
Merged PRs (30d)
41

Description

This is with quarto-web project

❯ & "C:\Users\chris\AppData\Local\qvm\versions\v1.7.5\bin\quarto.exe" preview .\docs\extensions\
Terminating existing preview server....DONE

Preparing to preview
[1/5] docs\blog\posts\2024-07-02-beautiful-tables-in-typst\examples\great-tables-oceania.qmd
[typst]: Compiling great-tables-oceania.typ to great-tables-oceania.pdf...DONE

[2/5] docs\blog\posts\2024-07-02-beautiful-tables-in-typst\examples\great-tables-solar-zenith.qmd
[typst]: Compiling great-tables-solar-zenith.typ to great-tables-solar-zenith.pdf...DONE

[3/5] docs\blog\posts\2024-07-02-beautiful-tables-in-typst\examples\gt-cars.qmd
[typst]: Compiling gt-cars.typ to gt-cars.pdf...DONE

[4/5] docs\blog\posts\2024-07-02-beautiful-tables-in-typst\examples\gt-islands.qmd
[typst]: Compiling gt-islands.typ to gt-islands.pdf...DONE

[5/5] docs\blog\posts\2024-07-02-beautiful-tables-in-typst\examples\pandas-acting-on-data.qmd
[typst]: Compiling pandas-acting-on-data.typ to pandas-acting-on-data.pdf...DONE


Watching files for changes
Browse at http://localhost:5185/docs/blog/posts/2024-07-02-beautiful-tables-in-typst/examples/pandas-acting-on-data.pdf
GET: /docs/extensions/

Some render happens in blog section while I want to preview docs/extensions only. And the file opened for preview is the last document rendered and not the preview url.

I think this can be improved.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the issue with the shown quarto preview .\docs\extensions\ command and trace how preview preparation chooses the browser URL after rendering other files. Check the preview entry point and render/preview URL handling; done means the browser opens the requested /docs/extensions/ URL rather than the last rendered PDF.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
cli
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.