Skip to content

Commit af08511

Browse files
claude: make logo-path tests more rigorous
Move logos into images/ subdirectories so path resolution tests exercise multi-component paths. Nest the _metadata.yml test document one level deeper (sub/deep/doc.qmd) to test parent-directory metadata inheritance. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 06fd6aa commit af08511

File tree

11 files changed

+12
-12
lines changed

11 files changed

+12
-12
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
logo:
22
images:
33
main:
4-
path: logo.svg
4+
path: images/logo.svg
55
small: main

tests/docs/smoke-all/typst/logo-path/from-brand/logo.svg renamed to tests/docs/smoke-all/typst/logo-path/from-brand/images/logo.svg

File renamed without changes.

tests/docs/smoke-all/typst/logo-path/from-brand/sub/doc.qmd

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@ _quarto:
88
typst:
99
ensureTypstFileRegexMatches:
1010
-
11-
- 'image\("/logo\.svg"'
11+
- 'image\("/images/logo\.svg"'
1212
-
13-
- 'image\("\.\./\.\./logo\.svg"'
13+
- 'image\("\.\./images/logo\.svg"'
1414
---
1515

1616
Hello world.

tests/docs/smoke-all/typst/logo-path/from-frontmatter/logo.svg renamed to tests/docs/smoke-all/typst/logo-path/from-frontmatter/images/logo.svg

File renamed without changes.
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
title: "Logo from front matter in subdirectory"
3-
logo: ../logo.svg
3+
logo: ../images/logo.svg
44
format:
55
typst:
66
keep-typ: true
@@ -9,9 +9,9 @@ _quarto:
99
typst:
1010
ensureTypstFileRegexMatches:
1111
-
12-
- 'image\("\.\./logo\.svg"'
12+
- 'image\("\.\./images/logo\.svg"'
1313
-
14-
- 'image\("\.\./\.\./logo\.svg"'
14+
- 'image\("\.\./\.\./images/logo\.svg"'
1515
---
1616

1717
Hello world.

tests/docs/smoke-all/typst/logo-path/from-metadata-yml/logo.svg renamed to tests/docs/smoke-all/typst/logo-path/from-metadata-yml/images/logo.svg

File renamed without changes.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
logo: ../logo.svg
1+
logo: ../images/logo.svg

tests/docs/smoke-all/typst/logo-path/from-metadata-yml/sub/doc.qmd renamed to tests/docs/smoke-all/typst/logo-path/from-metadata-yml/sub/deep/doc.qmd

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@ _quarto:
88
typst:
99
ensureTypstFileRegexMatches:
1010
-
11-
- 'image\("\.\./logo\.svg"'
11+
- 'image\("\.\./\.\./images/logo\.svg"'
1212
-
13-
- 'image\("\.\./\.\./logo\.svg"'
13+
- 'image\("\.\./\.\./\.\./images/logo\.svg"'
1414
---
1515

1616
Hello world.

tests/docs/smoke-all/typst/logo-path/from-quarto-yml/_quarto.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@ project:
22
type: default
33
format:
44
typst:
5-
logo: logo.svg
5+
logo: images/logo.svg

tests/docs/smoke-all/typst/logo-path/from-quarto-yml/logo.svg renamed to tests/docs/smoke-all/typst/logo-path/from-quarto-yml/images/logo.svg

File renamed without changes.

0 commit comments

Comments
 (0)