-
DescriptionI have the following in my project:
type: website
output-dir: "../../Dropbox/Notes/" I hope this is fine? Seems to work out just fine - it puts the website in my Dropbox (I don't want to put my Quarto folder in dropbox because it's under version control, and DB has known issues syncing .git folders). I want my local Quarto HTML output to be - (a) accessible when the local server is not running, and (b) accessible potentially in another machine (desktop or mobile) where I have Dropbox installed. I am thinking of saving local HTML file URLs in my bookmark system: I suppose even if I outgrow the Dropbox service, I can still have a folder named that way and the links will persist (even if I'll possibly lose the sync). I just wanted to be sure there won't be any difficulties that I cannot anticipate with having the output-dir outside the repo. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
Edit: although the project script is still an option, this is actually intended behavior specifically for |
Beta Was this translation helpful? Give feedback.
Although I'm happy that it works for you, I think this is not intended behavior on our part: it's certainly inconsistent with other parts of quarto where we disallow project paths to resolve outside of the project folder. I believe that is a bug we need to fix (and sadly break your usage!)I would, instead,Consider a project post-render script to copy the files to the place you want to: https://quarto.org/docs/projects/scripts.html#pre-and-post-renderEdit: although the project script is still an option, this is actually intended behavior specifically for
output-dir
, in contrast to other project paths.