Skip to content

Commit e116dae

Browse files
claude: update typst test regexes to expect / prefix on brand logo paths
Brand logo paths in Typst image() calls now have a leading / since they are resolved as project-absolute paths. Update all 29 affected test regex patterns accordingly. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 06fd6aa commit e116dae

29 files changed

Lines changed: 29 additions & 29 deletions

tests/docs/smoke-all/brand/logo/choose-logo-resource.qmd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ _quarto:
3232
typst:
3333
ensureTypstFileRegexMatches:
3434
-
35-
- 'background: align\(left\+top, box\(inset: 0.75in, image\("posit-logo-2024.svg", width: 1\.5in, alt: "posit logo"\)\)'
35+
- 'background: align\(left\+top, box\(inset: 0.75in, image\("/posit-logo-2024.svg", width: 1\.5in, alt: "posit logo"\)\)'
3636
- []
3737
---
3838

tests/docs/smoke-all/brand/logo/dark-logo.qmd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ _quarto:
4242
typst:
4343
ensureTypstFileRegexMatches:
4444
-
45-
- 'background: align\(left\+top, box\(inset: 0.75in, image\("quarto.png", width: 1\.5in, alt: "quarto logo"\)\)'
45+
- 'background: align\(left\+top, box\(inset: 0.75in, image\("/quarto.png", width: 1\.5in, alt: "quarto logo"\)\)'
4646
- []
4747
---
4848

tests/docs/smoke-all/brand/logo/dark-mode-no-dark-logo.qmd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ _quarto:
4242
typst:
4343
ensureTypstFileRegexMatches:
4444
-
45-
- 'background: align\(left\+top, box\(inset: 0.75in, image\("quarto.png", width: 1\.5in, alt: "light logo"\)\)'
45+
- 'background: align\(left\+top, box\(inset: 0.75in, image\("/quarto.png", width: 1\.5in, alt: "light logo"\)\)'
4646
- []
4747
---
4848

tests/docs/smoke-all/brand/logo/dark-mode-no-light-logo.qmd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ _quarto:
4040
typst:
4141
ensureTypstFileRegexMatches:
4242
-
43-
- 'background: align\(left\+top, box\(inset: 0.75in, image\("posit-logo-2024.svg", width: 1\.5in, alt: "dark logo"\)\)'
43+
- 'background: align\(left\+top, box\(inset: 0.75in, image\("/posit-logo-2024.svg", width: 1\.5in, alt: "dark logo"\)\)'
4444
- []
4545
---
4646

tests/docs/smoke-all/brand/logo/dark-mode-search-priority.qmd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ _quarto:
4646
typst:
4747
ensureTypstFileRegexMatches:
4848
-
49-
- 'background: align\(left\+top, box\(inset: 0.75in, image\("dark-logo.png", width: 1\.5in, alt: "dark logo"\)\)'
49+
- 'background: align\(left\+top, box\(inset: 0.75in, image\("/dark-logo.png", width: 1\.5in, alt: "dark logo"\)\)'
5050
- []
5151
---
5252

tests/docs/smoke-all/brand/logo/default-logo.qmd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ _quarto:
3131
typst:
3232
ensureTypstFileRegexMatches:
3333
-
34-
- 'background: align\(left\+top, box\(inset: 0.75in, image\("quarto.png", width: 1\.5in, alt: "quarto logo"\)\)'
34+
- 'background: align\(left\+top, box\(inset: 0.75in, image\("/quarto.png", width: 1\.5in, alt: "quarto logo"\)\)'
3535
- []
3636
---
3737

tests/docs/smoke-all/brand/logo/logo-extension-github/logo-brand-extension.qmd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ _quarto:
2929
typst:
3030
ensureTypstFileRegexMatches:
3131
-
32-
- 'background: align\(left\+top, box\(inset: 0.75in, image\("_extensions(/|\\\\)my-org(/|\\\\)my-brand(/|\\\\)images(/|\\\\)sun-face.png", width: 1\.5in, alt: "sun face"\)\)'
32+
- 'background: align\(left\+top, box\(inset: 0.75in, image\("/_extensions(/|\\\\)my-org(/|\\\\)my-brand(/|\\\\)images(/|\\\\)sun-face.png", width: 1\.5in, alt: "sun face"\)\)'
3333
-
3434
- 'image\.*moon-face'
3535
---

tests/docs/smoke-all/brand/logo/logo-extension/logo-brand-extension.qmd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ _quarto:
2929
typst:
3030
ensureTypstFileRegexMatches:
3131
-
32-
- 'background: align\(left\+top, box\(inset: 0.75in, image\("_extensions(/|\\\\)my-brand(/|\\\\)sun-face.png", width: 1\.5in, alt: "sun face"\)\)'
32+
- 'background: align\(left\+top, box\(inset: 0.75in, image\("/_extensions(/|\\\\)my-brand(/|\\\\)sun-face.png", width: 1\.5in, alt: "sun face"\)\)'
3333
-
3434
- 'image.*moon-face'
3535
---

tests/docs/smoke-all/brand/logo/missing-medium-dark-fallback.qmd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ _quarto:
4040
typst:
4141
ensureTypstFileRegexMatches:
4242
-
43-
- 'background: align\(left\+top, box\(inset: 0.75in, image\("quarto-dark.png", width: 1\.5in, alt: "quarto dark logo"\)\)'
43+
- 'background: align\(left\+top, box\(inset: 0.75in, image\("/quarto-dark.png", width: 1\.5in, alt: "quarto dark logo"\)\)'
4444
- []
4545
---
4646

tests/docs/smoke-all/brand/logo/mixed-resource-direct-path.qmd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ _quarto:
3737
typst:
3838
ensureTypstFileRegexMatches:
3939
-
40-
- 'background: align\(left\+top, box\(inset: 0.75in, image\("custom-dark.png", width: 1\.5in\)\)'
40+
- 'background: align\(left\+top, box\(inset: 0.75in, image\("/custom-dark.png", width: 1\.5in\)\)'
4141
- []
4242
---
4343

0 commit comments

Comments
 (0)