I created a website for a course. The output formats were defined in the `_quarto.yml` for the project as follows:

```{yaml}
format:
  html:
    theme: 
      - cosmo
      - ./assets/mystyles.scss
    toc: true
  revealjs:
    theme: ./assets/myrevealjs.scss
    slideNumber: true
    history: false
    width: 1600
    height: 900
    slide-level: 2
    html-math-method: katex
    chalkboard:
      theme: whiteboard
```
Website pages include a series of  `lecture.qmd` and  an `index.qmd` with links to the lectures. The idea is that students and instructors can go to the website and click any lecture on the front page to view the corresponding `revealjs` slides.
 
For each lecture `qmd` file, I included `format: revealjs` in the YAML header; in the `index.qmd` file, I included `format: html`.

I expect that when I run `quarto render` in the project directory, the `index.qmd` should be rendered to `html` and all the lectures will be rendered into `revealjs`. However, all the files are rendered into conventional `html` with the `cosmo` theme.

For now, I created a bash script to render the site using a single command. In the script, all the files to first rendered to`revealjs`, the `index.qmd` file is then rendered into the conventional `html`.

It will be helpful if I just need to run `quarto render` to render the site properly. I believe it is supposed to work like that.

2021-12-12T02:57:17Z
juliantao
closed
Rendering website with `reveal.js` slides
https://github.com/quarto-dev/quarto-cli/issues/216