Skip to content

Commit 1118ada

Browse files
mcanouilcderv
authored andcommitted
tests: add website reprex
1 parent 2e9fa6f commit 1118ada

7 files changed

Lines changed: 72 additions & 0 deletions

File tree

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
/.quarto/
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+
site-url: https://index.html.com/
6+
title: "Quarto 9524"
7+
navbar:
8+
left:
9+
- href: index.qmd
10+
text: Home
11+
- about/index.qmd
12+
- about/test/something.qmd
13+
- root-page.index.qmd
14+
15+
format:
16+
html:
17+
canonical-url: true
18+
theme: cosmo
19+
toc: true
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
---
2+
title: "Untitled"
3+
_quarto:
4+
tests:
5+
html:
6+
ensureHtmlElements:
7+
- ['<link rel="canonical" href="https://index.html.com/about/file.html">']
8+
---
9+
10+
A non `index` file at the root of a subdirectory.
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
---
2+
title: "About"
3+
_quarto:
4+
tests:
5+
html:
6+
ensureHtmlElements:
7+
- ['<link rel="canonical" href="https://index.html.com/about/">']
8+
---
9+
10+
About this site
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
---
2+
title: "Untitled"
3+
_quarto:
4+
tests:
5+
html:
6+
ensureHtmlElements:
7+
- ['<link rel="canonical" href="https://index.html.com/about/test/something.html">']
8+
---
9+
10+
Another file inside a nested directory.
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
---
2+
title: "Quarto 9524"
3+
_quarto:
4+
tests:
5+
html:
6+
ensureHtmlElements:
7+
- ['<link rel="canonical" href="https://index.html.com/">']
8+
---
9+
10+
This is a Quarto website.
11+
12+
To learn more about Quarto websites visit <https://quarto.org/docs/websites>.
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
---
2+
title: root page
3+
_quarto:
4+
tests:
5+
html:
6+
ensureHtmlElements:
7+
- ['<link rel="canonical" href="https://index.html.com/root-page.index.html">']
8+
---
9+
10+
Root page with "index." pattern.

0 commit comments

Comments
 (0)