Skip to content

Commit eea0ba9

Browse files
Copilothotlong
andcommitted
Fix lychee.toml TOML syntax error in remap configuration
Co-authored-by: hotlong <50353452+hotlong@users.noreply.github.com>
1 parent dfab762 commit eea0ba9

File tree

1 file changed

+8
-9
lines changed

1 file changed

+8
-9
lines changed

lychee.toml

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -24,15 +24,14 @@ include_fragments = false
2424
verbose = true
2525

2626
# Remap internal documentation links to actual file paths
27-
# Maps /docs/(.+) routes to content/docs/$1.mdx or content/docs/$1.md
28-
[[remap]]
29-
pattern = "^/docs/(.+)$"
30-
replace = "content/docs/$1.mdx"
31-
32-
# Also check for .md files if .mdx doesn't exist
33-
[[remap]]
34-
pattern = "^/docs/(.+)$"
35-
replace = "content/docs/$1.md"
27+
# Maps /docs/* routes to content/docs/*.mdx or content/docs/*.md files
28+
# Lychee remap uses simple "pattern" = "replacement" syntax
29+
remap = [
30+
# Primary remapping for .mdx files
31+
"^/docs/(.*)$ content/docs/$1.mdx",
32+
# Fallback for .md files
33+
"^/docs/(.*)$ content/docs/$1.md"
34+
]
3635

3736
# Exclude patterns (loaded from .lycheeignore file)
3837
exclude_path = [".lycheeignore"]

0 commit comments

Comments
 (0)