Image folder outside of project dir works for render but not preview? #11629
-
DescriptionI would like to have a folder structure like this:
In
and in When I'm in the root dir and I run However, when I instead call
even though when I look at the source of the preview page, there the relative path is preserved so it should in theory work out, but I guess quarto instead transforms the relative path to an absolute path and then of course that points to nothing? It seems kind of absurd that [I'm using quarto version 1.6.37.] |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 6 replies
-
I'm afraid to say that the bug here is not that By design, Quarto uses the To summarise, your project structure is incompatible with Quarto's design of a project. Would you mind share an actual reproducible example, likely as a Git repository we can clone? (This won't change the fact mention above and the team is very unlikely to ever change that design choice) |
Beta Was this translation helpful? Give feedback.
-
Ok, it wasn't clear to me that |
Beta Was this translation helpful? Give feedback.
Ok, it wasn't clear to me that
quarto preview
also updates the html files in the specified output directory (i.e., the same ones thatquarto render
creates). By manually opening this html file in the browser and then refreshing it when needed instead of looking directly at the served page frompreview
(with auto-refresh), I see the content incl. images as they should be. Not quite as convenient since this requires manually refreshing the page, but good enough I guess.