Skip to content

Commit 7709b04

Browse files
authored
Merge pull request #12960 from quarto-dev/revealjs/brand-layer
reveajs - correctly identify brand layer
2 parents b543849 + 13c30aa commit 7709b04

File tree

15 files changed

+120
-2
lines changed

15 files changed

+120
-2
lines changed

news/changelog-1.8.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ All changes included in 1.8:
2525
### `revealjs`
2626

2727
- ([#12598](https://github.com/quarto-dev/quarto-cli/pull/12598)): Ensure `.fragment` on an image with caption applies to whole figure.
28+
- ([#12716](https://github.com/quarto-dev/quarto-cli/issues/12716)): Correctly resolve `"brand"` set in `theme` configuration for document in subdirectory from project root.
2829

2930
### `docx`
3031

@@ -93,4 +94,4 @@ All changes included in 1.8:
9394

9495
- ([#11321](https://github.com/quarto-dev/quarto-cli/issues/11321)): Follow [recommendation from LaTeX project](https://latex-project.org/news/latex2e-news/ltnews40.pdf) and use `lualatex` instead of `xelatex` as the default PDF engine.
9596
- ([#12782](https://github.com/quarto-dev/quarto-cli/pull/12782)): fix bug on `safeRemoveDirSync`'s detection of safe directory boundaries.
96-
- ([#12853](https://github.com/quarto-dev/quarto-cli/issues/12853)): fix replaceAll() escaping issue with embedded notebooks containing `$` in their Markdown.
97+
- ([#12853](https://github.com/quarto-dev/quarto-cli/issues/12853)): fix replaceAll() escaping issue with embedded notebooks containing `$` in their Markdown.

src/format/reveal/format-reveal-theme.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ export async function revealTheme(
124124
.map(
125125
(theme) => {
126126
const themePath = join(relative(Deno.cwd(), dirname(input)), theme);
127-
if (themePath === "brand") {
127+
if (theme === "brand") {
128128
usedBrandLayers = true;
129129
return brandLayers;
130130
} else if (existsSync(themePath)) {
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
/*-- scss:defaults --*/
2+
$body-bg: $brand-dark-teal;
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
/.quarto/
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
color:
2+
palette:
3+
dark-teal: "#005E5E"
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
project:
2+
type: default
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
/*-- scss:defaults --*/
2+
$body-bg: $brand-dark-teal;
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
---
2+
title: test
3+
format:
4+
revealjs:
5+
theme: [custom.scss, brand]
6+
---
7+
8+
# content
9+
10+
content
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
/*-- scss:defaults --*/
2+
$body-bg: $brand-dark-teal;
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
---
2+
title: test
3+
format:
4+
revealjs:
5+
theme: [custom.scss, brand]
6+
---
7+
8+
# content
9+
10+
content

0 commit comments

Comments
 (0)