@tsdoctor/pages 0.3.3 → 0.3.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Llms.js +2 -2
- package/package.json +3 -3
package/Llms.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
//#region src/Llms.ts
|
|
2
2
|
/** Pre-compiled regex for parsing llms.txt link lines. */
|
|
3
|
-
const LLMS_TXT_LINE_RE = /^-\s+\[([^\]]+)\]\(([^)]+)\)(?::\s*(
|
|
3
|
+
const LLMS_TXT_LINE_RE = /^-\s+\[([^\]]+)\]\(([^)]+)\)(?::\s*(\S.*))?$/;
|
|
4
4
|
/**
|
|
5
5
|
* Parse a single line from llms.txt format.
|
|
6
6
|
*
|
|
@@ -153,7 +153,7 @@ function generateStructuredLlmsTxt(content, apiRoutes, packages) {
|
|
|
153
153
|
function parseSections(content) {
|
|
154
154
|
if (content.trim() === "") return [];
|
|
155
155
|
const sections = [];
|
|
156
|
-
const frontmatterPattern = /^---\nurl:\s*(
|
|
156
|
+
const frontmatterPattern = /^---\nurl:\s*(\S.*)\n---$/gm;
|
|
157
157
|
let match = frontmatterPattern.exec(content);
|
|
158
158
|
const boundaries = [];
|
|
159
159
|
while (match !== null) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tsdoctor/pages",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.4",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Framework-neutral documentation page IR for static TypeScript API sites: typed doc blocks over an API Extractor model, per-API navigation trees, display/source code preparation, a plain-markdown emitter and the llms.txt text transforms.",
|
|
6
6
|
"keywords": [
|
|
@@ -40,8 +40,8 @@
|
|
|
40
40
|
},
|
|
41
41
|
"dependencies": {
|
|
42
42
|
"@microsoft/api-extractor-model": "7.33.12",
|
|
43
|
-
"@tsdoctor/model": "0.8.
|
|
44
|
-
"@tsdoctor/seo": "0.4.
|
|
43
|
+
"@tsdoctor/model": "0.8.3",
|
|
44
|
+
"@tsdoctor/seo": "0.4.2",
|
|
45
45
|
"prettier": "^3.9.9"
|
|
46
46
|
},
|
|
47
47
|
"peerDependencies": {
|