quarto-dev / quarto-cli

Open-source scientific and technical publishing system built on Pandoc.
https://quarto.org
Other
3.75k stars 306 forks source link

Different revealjs formats in a Quarto website don't work as expected #8383

Closed Nenuial closed 2 weeks ago

Nenuial commented 7 months ago

Bug description

I have multiple revealjs presentations that are included in a quarto website. I use different formats (using extensions) to have different templates.

I have observed that when you render the website, all presentations have the same template. quarto render probably generates only one css file for all quarto presentations and all presentations end up with the same template.

Steps to reproduce

To reproduce this:

Live example: https://test.nenuial.org The vignettes show the desired theme.

Expected behavior

Each revealjs presentation with a different format should have its own css file.

Actual behavior

All revealjs presentations have the same css file.

Your environment

Quarto check output

Quarto 1.4.545 [✓] Checking versions of quarto binary dependencies... Pandoc version 3.1.11: OK Dart Sass version 1.69.5: OK Deno version 1.37.2: OK [✓] Checking versions of quarto dependencies......OK [✓] Checking Quarto installation......OK Version: 1.4.545 Path: /Applications/quarto/bin

[✓] Checking tools....................OK TinyTeX: v2023.12 Chromium: 869685

[✓] Checking LaTeX....................OK Using: TinyTex Path: /Users/admin/Library/TinyTeX/bin/universal-darwin Version: 2023

[✓] Checking basic markdown render....OK

[✓] Checking Python 3 installation....OK Version: 3.11.4 (Conda) Path: /opt/homebrew/Caskroom/miniconda/base/bin/python Jupyter: 5.3.1 Kernels: python3

[✓] Checking Jupyter engine render....OK

[✓] Checking R installation...........OK Version: 4.3.2 Path: /Library/Frameworks/R.framework/Resources LibPaths:

[✓] Checking Knitr engine render......OK

cderv commented 7 months ago

Yes I think you're right. The revealjs SCSS theme is built and mixed by SASS with the quarto revealjs theme in _site\site_libs\revealjs\dist\theme\quarto.css and so the last presentation rendering is overriding the first.

Not great at all... sorry for this.

dyavorsky commented 5 months ago

I'm reporting the same issue when multiple revealjs presentations are included on a website and only one references a custom scss theme. The scss theme was "not registering" leading me to believe it is being assigned the "default theme" per this issue.

cscheid commented 2 weeks ago

This should be fixed in https://github.com/quarto-dev/quarto-cli/releases/tag/v1.6.7.