Skip to content

Commit c34321a

Browse files
Copilothotlong
andcommitted
Fix lychee.toml remap syntax - use array format
Fixed TOML parse error: "invalid type: map, expected a sequence" The remap configuration in lychee must be an array of strings in the format: remap = ["pattern replacement"] Changed from: [remap] "/docs/" = "file://./docs/" To: remap = ["^/docs/(.*)$ file://./docs/$1"] This uses regex pattern matching to map /docs/* URLs to local file:// paths. Co-authored-by: hotlong <50353452+hotlong@users.noreply.github.com>
1 parent 08fca1d commit c34321a

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

lychee.toml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -35,11 +35,12 @@ exclude = [
3535

3636
# Path remapping for fumadocs internal links
3737
# Maps Next.js routes to actual file paths
38-
# Note: Lychee remap is a simple key-value mapping
39-
[remap]
40-
# Map /docs/* links to docs/ filesystem paths
41-
# The file:// prefix tells lychee to check local files
42-
"/docs/" = "file://./docs/"
38+
# Format: ["pattern to match", "replacement"]
39+
remap = [
40+
# Map /docs/* links to docs/ filesystem paths
41+
# The file:// prefix tells lychee to check local files
42+
"^/docs/(.*)$ file://./docs/$1"
43+
]
4344

4445
# Cache configuration
4546
[cache]

0 commit comments

Comments
 (0)