(How) Can one exclude specific output files from being published? #10881
-
DescriptionHello, Assume I have a quarto website project, and within I have two profiles defined:
The Naturally, I can now execute Rendering would then create the outputs, and move them to the site directory ( This means however, that if I execute quarto render report/ --profile dev
quarto publish gh-pages --no-render the outputs stemming from input-files exclusive to the Currently, the only possible solution is to remember to always re-render directories containing However, I wondered if there exists another way of selectively suppressing the addition of specific documents to the published website, such that I don't have to re-render with A few thoughts (which are most probably moot anyways because I don't know the internals of quarto)
I am using quarto 1.5.56, on Windows 11 (v. 10.0.22631 Build 22631). Thank you. Footnotes
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 5 replies
-
Can you use the |
Beta Was this translation helpful? Give feedback.
quarto publish
is not really designed for advanced use. It does not much.I don't think rendering several profiles in the exact same output directory is a smart move, especially if you intend to publish only a subset of the profiles.
I would recommend to use
output-dir
.I believe,
quarto publish
will publish the profile specificoutput-dir
and nothing else.The "unsynced state" would only happen, if you don't render all profiles, but that's on you not Quarto because Quarto can't possibly know how to use your profiles.