Skip to content

Document in more places that output-dir will be deleted #13896

@petrelharp

Description

@petrelharp

The output directory is (usually) completely deleted (see eg #13623). In the related issue #13892, @mcanouil said

See quarto render --help .

However, quarto render --help does not actually say anything about this rather important point. Currently, this is what it says:

  --output-dir                        - Write output to DIR (path is input/project relative)

and I propose changing this to, perhaps:

  --output-dir                        - Write output to DIR, which is first deleted if it exists (path is input/project relative)

This misses some subtlety, of course.

I'm currently trying to find where in the docs it actually says that the directory will be deleted. I'm sure it says it somewhere, but it's a bit hard to find. I would suggest adding this VERY IMPORTANT caveat to all the places it discusses output-dir.

For instance, on project options:
Image

Same thing on project options for websites:
Image

Similarly, this fact is not mentioned on the Output Path section for books.

Tangentially, this is not mentioned either in at least this place in TPG.

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentationDoc improvements & quarto-web

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions