### Bug description

I'm using Quarto 1.2.335 via conda-forge on Ubuntu 20 LTS. I'm not using the RStudio IDE, just editing with vi.

This is related to #4469 somewhat: I encountered these two separate problems trying to accomplish the same goal: Render a webpage which displays a list of links to RevealJS presentations from the same build. 

Render works fine until specifying a `format.revealjs` option, e.g. `toc: true`, in `_quarto.yml`, at which point render fails with the following error:

```
ERROR: NotFound: No such file or directory (os error 2), rename
'/path/to/quarto/project/index.html' -> '/path/to/quarto/project/_site/index.html'
```

Steps to reproduce:

1. Create project template
    ```
    quarto create-project sscce-quarto-slides-in-website --type website
    ```
1. Create `slides/index.qmd` with `format: 'revealjs'` in front-matter.
1. Add link from `index.qmd` to `slides/index.qmd`
1. Add the following to the `format` section of `_quarto.yml` (I believe other settings will also trigger this):
    ```
    revealjs:
        toc: true
    ```
1. `quarto render`, observe the `NotFound` error
1. Note that an `index.html` file has been created outside of the `_site` directory

This issue can also be reproduced from the `reveals-config-breaks-preview` branch in the repo I created for #4469: https://github.com/MattF-NSIDC/sscce-quarto-slides-in-website/tree/revealjs-config-breaks-preview


### Checklist

- [X] Please include a minimal, fully reproducible example in a single .qmd file? Please provide the whole file rather than the snippet you believe is causing the issue.
- [X] Please [format your issue](https://quarto.org/bug-reports.html#formatting-make-githubs-markdown-work-for-us) so it is easier for us to read the bug report.
- [X] Please document the RStudio IDE version you're running (if applicable), by providing the value displayed in the "About RStudio" main menu dialog?
- [X] Please document the operating system you're running. If on Linux, please provide the specific distribution.
2023-02-22T23:59:58Z
MattF-NSIDC
bug
closed
Render fails when specifying both `revealjs` and `html` formats in `_quarto.yml`
https://github.com/quarto-dev/quarto-cli/issues/4470