Skip to content

Commit 8147864

Browse files
committed
regression test
1 parent 35b9406 commit 8147864

File tree

13 files changed

+122
-0
lines changed

13 files changed

+122
-0
lines changed
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
/.quarto/
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
project:
2+
type: book
3+
post-render:
4+
- check-index.ts
5+
6+
book:
7+
title: "issue-10285"
8+
author: "Norah Jones"
9+
date: "10/24/2024"
10+
chapters:
11+
- index.qmd
12+
- intro.qmd
13+
- search-test.qmd
14+
- search-test-2.qmd
15+
- search-test-3.qmd
16+
- summary.qmd
17+
- references.qmd
18+
19+
bibliography: references.bib
20+
21+
format:
22+
html:
23+
theme: cosmo
24+
pdf:
25+
documentclass: scrreprt
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
const json = JSON.parse(Deno.readTextFileSync("_book/search.json"));
2+
3+
const obj = Object.fromEntries(json.map((x: any) => [x.objectID, x]));
4+
5+
for (const file of ["search-test.html", "search-test-2.html", "search-test-3.html"]) {
6+
if (obj[file].text.match("Please find me.") === null) {
7+
throw new Error("missing pre-section content in " + file);
8+
};
9+
}
50 KB
Loading
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# Preface {.unnumbered}
2+
3+
This is a Quarto book.
4+
5+
To learn more about Quarto books visit <https://quarto.org/docs/books>.
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# Introduction
2+
3+
This is a book created from markdown and executable code.
4+
5+
See @knuth84 for additional discussion of literate programming.
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
@article{knuth84,
2+
author = {Knuth, Donald E.},
3+
title = {Literate Programming},
4+
year = {1984},
5+
issue_date = {May 1984},
6+
publisher = {Oxford University Press, Inc.},
7+
address = {USA},
8+
volume = {27},
9+
number = {2},
10+
issn = {0010-4620},
11+
url = {https://doi.org/10.1093/comjnl/27.2.97},
12+
doi = {10.1093/comjnl/27.2.97},
13+
journal = {Comput. J.},
14+
month = may,
15+
pages = {97–111},
16+
numpages = {15}
17+
}
18+
19+
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# References {.unnumbered}
2+
3+
::: {#refs}
4+
:::
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# Another test chapter
2+
3+
Please find me.
4+
5+
## Another section
6+
7+
More stuff yet.
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# Another test chapter
2+
3+
4+
::: callout-note
5+
6+
[Please find me.]{.quarto-include-in-search-index}
7+
8+
:::
9+
10+
## Another section
11+
12+
More stuff yet.

0 commit comments

Comments
 (0)