Skip to content

Commit 3a0802c

Browse files
committed
Add simple reveal test
1 parent 1b05e13 commit 3a0802c

File tree

6 files changed

+63
-0
lines changed

6 files changed

+63
-0
lines changed
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
title: Lexcorp Presentation
2+
author: Lexcorp
3+
version: 1.0.0
4+
contributes:
5+
formats:
6+
revealjs:
7+
theme: [default, custom.scss]
8+
logo: logo.png
9+
footer: |
10+
Copyright 2022 (c) Lexcorp, Inc.
11+
title-slide-attributes:
12+
data-background-image: title.png
13+
data-background-size: cover
14+
preview-links: auto
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
/*-- scss:defaults --*/
2+
3+
$body-color: #144173;
4+
$link-color: #3C6087;
5+
6+
7+
/*-- scss:rules --*/
8+
9+
.reveal .footer {
10+
color: $body-color;
11+
}
120 KB
Loading
45.3 KB
Loading
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
---
2+
title: "Sample Presentation"
3+
format:
4+
lexcorp-revealjs: default
5+
---
6+
7+
8+
# In the morning
9+
10+
## Getting up
11+
12+
- Turn off alarm
13+
- Get out of bed
14+
15+
## Breakfast
16+
17+
- Eat eggs
18+
- Drink coffee
19+
20+
# In the evening
21+
22+
## Dinner
23+
24+
- Eat spaghetti
25+
- Drink wine
26+
27+
## Going to sleep
28+
29+
- Get in bed
30+
- Count sheep

tests/smoke/extensions/extension-render-doc.test.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,3 +32,11 @@ testRender(filterInput, "html", false, [
3232

3333
const formatInput = docs("extensions/basic/format.qmd");
3434
testRender(formatInput, "jss-html", false);
35+
36+
const revealInput = docs("extensions/lexcorp/lexcorp.qmd");
37+
const revealOutput = outputForInput(revealInput, "html");
38+
testRender(revealInput, "lexcorp-revealjs", false, [
39+
ensureHtmlElements(revealOutput.outputPath, [
40+
"img[src='_extensions/lexcorp/logo.png']",
41+
]),
42+
]);

0 commit comments

Comments
 (0)