mirror of
https://github.com/Kaelio/ktx.git
synced 2026-07-13 11:22:11 +02:00
docs(docs-site): make core guides agent-friendly
This commit is contained in:
parent
dfa4651ebc
commit
9580bd243d
4 changed files with 191 additions and 1 deletions
|
|
@ -97,5 +97,9 @@ function toLlmDocsPage(page: ReturnType<typeof source.getPages>[number]) {
|
|||
}
|
||||
|
||||
function normalizeMarkdown(markdown: string) {
|
||||
return markdown.trim().replace(/\n{3,}/g, "\n\n");
|
||||
return markdown
|
||||
.trim()
|
||||
.replace(/^---\n[\s\S]*?\n---\n?/, "")
|
||||
.trim()
|
||||
.replace(/\n{3,}/g, "\n\n");
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue