-
Notifications
You must be signed in to change notification settings - Fork 397
Open
Labels
Description
I have:
- searched the issue tracker for similar issues
- installed the latest version of Quarto CLI
- formatted my issue following the Bug Reports guide
Bug description
Suppose that I set up my _quarto.yml as follows:
project:
type: website
output-dir: ./and then add a test.qmd:
---
title: "Untitled"
format: html
---and then do quarto render.
Here's what happens:
- the directory is
rm -rf'ed. - a new directory with the same name is created, which has only a
.quarto/directory in it, nothing else.
In other words, this completely wipes the entire project. I tried this out, thinking naively that it might produce the html files living next to the qmd files. Happily, I tried this in a test directory.
Also, happily, setting output-dir: ../ does not wipe the parent directory. That's good.
Also - confusingly - setting output-dir: . instead of output-dir: ./ renders in-place, as I originally expected.
Steps to reproduce
mkdir test
echo '
project:
type: website
output-dir: ./
' > test/_quarto.yml
echo '---
title: "Untitled"
format: html
---' > test/test.qmd
cd test
quarto render
ls -laActual behavior
The result is
# ls -la
total 0
Expected behavior
The directory that we're in is not deleted.
Your environment
- OS: Debian Sid
Quarto check output
Quarto 1.8.26
[✓] Checking environment information...
Quarto cache location: /home/peter/.cache/quarto
[✓] Checking versions of quarto binary dependencies...
Pandoc version 3.6.3: OK
Dart Sass version 1.87.0: OK
Deno version 2.3.1: OK
Typst version 0.13.0: OK
[✓] Checking versions of quarto dependencies......OK
[✓] Checking Quarto installation......OK
Version: 1.8.26
Path: /opt/quarto/bin
[✓] Checking tools....................OK
TinyTeX: (not installed)
Chromium: (not installed)
[✓] Checking LaTeX....................OK
Using: Installation From Path
Path: /usr/bin
Version: 2025
[✓] Checking Chrome Headless....................OK
Chrome: (not detected)
[✓] Checking basic markdown render....OK
[✓] Checking Python 3 installation....OK
Version: 3.14.0 (Conda)
Path: /home/peter/micromamba/envs/ds435/bin/python
Jupyter: 5.9.1
Kernels: python3, ir
[✓] Checking Jupyter engine render....OK
[✓] Checking R installation...........OK
Version: 4.5.2
Path: /usr/lib/R
LibPaths:
- /home/peter/R
- /usr/local/lib/R/site-library
- /usr/lib/R/site-library
- /usr/lib/R/library
knitr: 1.43
rmarkdown: 2.23
[✓] Checking Knitr engine render......OK