You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Let consumers retain navigation targets while keeping the default
link-stripping behavior. The variadic option changes the function
type, so stored function values may need updating.
Copy file name to clipboardExpand all lines: AGENTS.md
+5Lines changed: 5 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -46,6 +46,11 @@
46
46
- All internal doc links and remaining markdown links are stripped to plain text (URL removed).
47
47
- Duplicate child names are deduplicated in search results.
48
48
49
+
### Shared transform API
50
+
-`docs.Transform(content, version, opts ...TransformOption)` accepts optional link formatting; its default still strips links, and the CLI continues to use that default until it updates its docs dependency.
51
+
-`docs.WithLinkSlugs()` formats current-version k6 links as text followed by an inline slug and preserves other markdown links; custom options set exported `TransformOptions.FormatLink`.
52
+
- This is a runtime transform; bundle generation and `mcp-k6` behavior remain unchanged, and existing bundles need no regeneration.
53
+
49
54
### Documentation version handling
50
55
- Auto-detects k6 version from Go build info.
51
56
- Maps to wildcard: `v1.5.0` → `v1.5.x`, `v1.6.0-rc.1` → `v1.6.x`.
0 commit comments