Skip to content

Commit 78682d2

Browse files
committed
fix llm.txt links
1 parent f2c9dfc commit 78682d2

File tree

4 files changed

+13
-11
lines changed

4 files changed

+13
-11
lines changed

markdown-pages/docs/manual/llms.mdx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,13 @@ We adhere to the [llms.txt convention](https://llmstxt.org/) to make documentati
1212

1313
Currently, we have the following files...
1414

15-
- [/docs/manual/llms.txt](/llms/manual//llms.txt) — a list of the available files for ReScript language.
16-
- [/docs/manual/llm-full.txt](/llms/manual//llm-full.txt) — complete documentation for ReScript language.
17-
- [/docs/manual/llm-small.txt](/llms/manual//llm-small.txt) — compressed version of the former, without examples.
15+
- [/manual/llms.txt](/llms/manual/llms.txt) — a list of the available files for ReScript language.
16+
- [/manual/llm-full.txt](/llms/manual/llm-full.txt) — complete documentation for ReScript language.
17+
- [/manual/llm-small.txt](/llms/manual/llm-small.txt) — compressed version of the former, without examples.
1818

1919
...and package-level documentation:
2020

21-
- [/docs/react/llms](../react/llms.mdx) — the LLms documentation for ReScript React.
21+
- [/react/llms](../react/llms.mdx) — the LLms documentation for ReScript React.
2222

2323
## Notes
2424

markdown-pages/docs/react/llms.mdx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,13 @@ We adhere to the [llms.txt convention](https://llmstxt.org/) to make documentati
1111

1212
Currently, we have the following files...
1313

14-
- [/docs/react/llms.txt](/llms/react/llms.txt) — a list of the available files for ReScript React.
15-
- [/docs/react/llms-full.txt](/llms/react/llm-full.txt) — complete documentation for ReScript React.
16-
- [/docs/react/llms-small.txt](/llms/react/llm-small.txt) — compressed version of the former, without examples for ReScript React.
14+
- [/react/llms.txt](/llms/react/llms.txt) — a list of the available files for ReScript React.
15+
- [/react/llms-full.txt](/llms/react/llms-full.txt) — complete documentation for ReScript React.
16+
- [/react/llms-small.txt](/llms/react/llms-small.txt) — compressed version of the former, without examples for ReScript React.
1717

1818
...and the language documentation:
1919

20-
- [/docs/manual/llms](../manual/llms.mdx) — the LLms documentation for ReScript.
20+
- [/manual/llms](../manual/llms.mdx) — the LLms documentation for ReScript.
2121

2222
## Notes
2323

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
"res:watch": "rescript watch",
1515
"res:clean": "rescript clean",
1616
"res:build": "rescript build",
17-
"build": "patch-package && rescript build && react-router build",
17+
"build": "patch-package && rescript build && npm run update-index && react-router build",
1818
"test": "node scripts/test-examples.mjs && node scripts/test-hrefs.mjs",
1919
"reanalyze": "reanalyze -all-cmt .",
2020
"update-index": "npm run generate-llms && node scripts/generate_feed.mjs > public/blog/feed.xml",
@@ -84,4 +84,4 @@
8484
"vite-plugin-devtools-json": "^1.0.0",
8585
"vite-plugin-env-compatible": "^2.0.1"
8686
}
87-
}
87+
}

scripts/generate_llms.res

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,8 @@ let createLlmsFiles = (_version: string, docsDirectory: string, llmsDirectory: s
7575
let txtFileTemplatePath = llmsDirectory->Node.Path.join2("template.txt")
7676
let txtFilePath = llmsDirectory->Node.Path.join2("llms.txt")
7777

78+
Console.log(txtFilePath)
79+
7880
Node.Fs.writeFileSync(mdxFilePath, readMarkdownFile(mdxFileTemplatePath))
7981

8082
Node.Fs.writeFileSync(txtFilePath, readMarkdownFile(txtFileTemplatePath))
@@ -92,7 +94,7 @@ let generateFile = (docsDirectory: string, llmsDirectory: string): unit => {
9294
clearFile(fullFilePath)
9395
clearFile(smallFilePath)
9496

95-
createLlmsFiles("v12", docsDirectory, llmsDirectory)
97+
createLlmsFiles("", docsDirectory, llmsDirectory)
9698

9799
docsDirectory
98100
->collectFiles

0 commit comments

Comments
 (0)