Skip to content

Commit 7b75ca4

Browse files
committed
tests - Update theme config and add combined logo disable test
- Move theme configuration from top-level to format.html.theme with proper base theme [cosmo/darkly, brand] pattern - Add test for disabling both navbar and sidebar logos together
1 parent a6dd6c1 commit 7b75ca4

7 files changed

Lines changed: 62 additions & 6 deletions

File tree

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
/.quarto/
2+
3+
**/*.quarto_ipynb
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
color:
2+
background:
3+
light: "#fff"
4+
dark: "#111"
5+
foreground:
6+
light: "#111"
7+
dark: "#fff"
8+
logo:
9+
medium:
10+
light: sun-face.png
11+
dark: moon-face.png
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
project:
2+
type: website
3+
4+
website:
5+
navbar:
6+
logo: false
7+
sidebar:
8+
style: "docked"
9+
search: true
10+
logo: false
11+
contents:
12+
- index.qmd
13+
- conclusion.qmd
14+
15+
format:
16+
html:
17+
theme:
18+
light: [cosmo, brand]
19+
dark: [darkly, brand]
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
---
2+
title: conclusion
3+
---
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
---
2+
title: intro
3+
_quarto:
4+
tests:
5+
html:
6+
ensureHtmlElements:
7+
- []
8+
- ['a.navbar-brand-logo', 'a.sidebar-logo-link']
9+
---
10+
11+
This test verifies that setting both `navbar.logo: false` and `sidebar.logo: false`
12+
disables both logos even when `_brand.yml` defines a logo.
Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
project:
22
type: website
3-
theme:
4-
light: brand
5-
dark: brand
3+
64
website:
75
navbar:
86
logo: false
@@ -12,3 +10,9 @@ website:
1210
contents:
1311
- index.qmd
1412
- conclusion.qmd
13+
14+
format:
15+
html:
16+
theme:
17+
light: [cosmo, brand]
18+
dark: [darkly, brand]
Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
project:
22
type: website
3-
theme:
4-
light: brand
5-
dark: brand
3+
64
website:
75
sidebar:
86
style: "docked"
@@ -11,3 +9,9 @@ website:
119
contents:
1210
- index.qmd
1311
- conclusion.qmd
12+
13+
format:
14+
html:
15+
theme:
16+
light: [cosmo, brand]
17+
dark: [darkly, brand]

0 commit comments

Comments
 (0)