@tsdoctor/pages 0.3.2 → 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.
Files changed (2) hide show
  1. package/Llms.js +2 -2
  2. package/package.json +4 -4
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*(.+)\n---$/gm;
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.2",
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,13 +40,13 @@
40
40
  },
41
41
  "dependencies": {
42
42
  "@microsoft/api-extractor-model": "7.33.12",
43
- "@tsdoctor/model": "0.8.2",
44
- "@tsdoctor/seo": "0.4.0",
43
+ "@tsdoctor/model": "0.8.3",
44
+ "@tsdoctor/seo": "0.4.2",
45
45
  "prettier": "^3.9.9"
46
46
  },
47
47
  "peerDependencies": {
48
48
  "@effected/markdown": "^0.12.0",
49
- "@effected/package-json": "^0.17.0",
49
+ "@effected/package-json": "^0.18.0",
50
50
  "@effected/schema-org": "^0.5.0",
51
51
  "@effected/tsconfig-json": "^0.11.0",
52
52
  "effect": "4.0.0-rc.117"