Skip to content

Commit 3016c54

Browse files
committed
tests - add more tests
- add a navbar test for books too - test for disabling logo in sidebar in books project - add a test about disabling logo in sidebar and navbar with brand theme in books
1 parent 7b75ca4 commit 3016c54

19 files changed

Lines changed: 137 additions & 0 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: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
project:
2+
type: book
3+
4+
book:
5+
title: "Disable Both Logos Test"
6+
chapters:
7+
- index.qmd
8+
- chapter.qmd
9+
navbar:
10+
logo: false
11+
sidebar:
12+
logo: false
13+
14+
format:
15+
html:
16+
theme:
17+
light: [cosmo, brand]
18+
dark: [darkly, brand]
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
---
2+
title: chapter
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 in a book project even when `_brand.yml` defines a logo.
67.8 KB
Loading
80.7 KB
Loading
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: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
project:
2+
type: book
3+
4+
book:
5+
title: "Disable Navbar Logo Test"
6+
chapters:
7+
- index.qmd
8+
- chapter.qmd
9+
navbar:
10+
logo: false
11+
12+
format:
13+
html:
14+
theme:
15+
light: [cosmo, brand]
16+
dark: [darkly, brand]

0 commit comments

Comments
 (0)