Skip to content

Commit 7b07ad3

Browse files
committed
docs: remove v11 llm manual links
1 parent a509a94 commit 7b07ad3

5 files changed

Lines changed: 23 additions & 17 deletions

File tree

apps/docs/markdown-pages/docs/manual/llms.mdx

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

1313
This ReScript manual major version: `v12 (current version)`.
1414

15-
The root `/llms.txt` file is the default entry point and always describes the current stable manual. Use the files under `/llms/manual/v13/` (pre-release version), `/llms/manual/v12/` (current version), or `/llms/manual/v11/` when you want an explicit major-version path. These major-version paths use the latest generated documentation for that major version and avoid full patch numbers in the URL.
15+
The root `/llms.txt` file is the default entry point and always describes the current stable manual. Use the files under `/llms/manual/v13/` (pre-release version) or `/llms/manual/v12/` (current version) when you want an explicit major-version path. These major-version paths use the latest generated documentation for that major version and avoid full patch numbers in the URL.
1616

1717
## Default Current Files
1818

@@ -36,6 +36,3 @@ The root `/llms.txt` file is the default entry point and always describes the cu
3636
- [v12 current LLMs index](/llms/manual/v12/llms.txt) - a list of the available files for the current ReScript v12 documentation.
3737
- [v12 current complete documentation](/llms/manual/v12/llm-full.txt) - complete current ReScript v12 documentation.
3838
- [v12 current abridged documentation](/llms/manual/v12/llm-small.txt) - abridged current ReScript v12 documentation.
39-
- [/llms/manual/v11/llms.txt](/llms/manual/v11/llms.txt) - a list of the available files for the latest ReScript v11 documentation.
40-
- [/llms/manual/v11/llm-full.txt](/llms/manual/v11/llm-full.txt) - complete latest ReScript v11 documentation.
41-
- [/llms/manual/v11/llm-small.txt](/llms/manual/v11/llm-small.txt) - abridged latest ReScript v11 documentation.

apps/docs/public/llms/manual/template.mdx

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

1313
This ReScript manual major version: `<MANUAL_VERSION_LABEL>`.
1414

15-
The root `/llms.txt` file is the default entry point and always describes the current stable manual. Use the files under `/llms/manual/v13/` (pre-release version), `/llms/manual/v12/` (current version), or `/llms/manual/v11/` when you want an explicit major-version path. These major-version paths use the latest generated documentation for that major version and avoid full patch numbers in the URL.
15+
The root `/llms.txt` file is the default entry point and always describes the current stable manual. Use the files under `/llms/manual/v13/` (pre-release version) or `/llms/manual/v12/` (current version) when you want an explicit major-version path. These major-version paths use the latest generated documentation for that major version and avoid full patch numbers in the URL.
1616

1717
## Default Current Files
1818

@@ -36,6 +36,3 @@ The root `/llms.txt` file is the default entry point and always describes the cu
3636
- [v12 current LLMs index](/llms/manual/v12/llms.txt) - a list of the available files for the current ReScript v12 documentation.
3737
- [v12 current complete documentation](/llms/manual/v12/llm-full.txt) - complete current ReScript v12 documentation.
3838
- [v12 current abridged documentation](/llms/manual/v12/llm-small.txt) - abridged current ReScript v12 documentation.
39-
- [/llms/manual/v11/llms.txt](/llms/manual/v11/llms.txt) - a list of the available files for the latest ReScript v11 documentation.
40-
- [/llms/manual/v11/llm-full.txt](/llms/manual/v11/llm-full.txt) - complete latest ReScript v11 documentation.
41-
- [/llms/manual/v11/llm-small.txt](/llms/manual/v11/llm-small.txt) - abridged latest ReScript v11 documentation.

apps/docs/public/llms/manual/template.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
This ReScript manual major version: <MANUAL_VERSION_LABEL>.
88

9-
The root `/llms.txt` file is the default entry point and always describes the current stable manual. Use the files under `/llms/manual/v13/` (pre-release version), `/llms/manual/v12/` (current version), or `/llms/manual/v11/` when you want an explicit major-version path. These major-version paths use the latest generated documentation for that major version and avoid full patch numbers in the URL.
9+
The root `/llms.txt` file is the default entry point and always describes the current stable manual. Use the files under `/llms/manual/v13/` (pre-release version) or `/llms/manual/v12/` (current version) when you want an explicit major-version path. These major-version paths use the latest generated documentation for that major version and avoid full patch numbers in the URL.
1010

1111
### Default Current Files
1212

apps/docs/scripts/__tests__/generate-llms.test.mjs

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,9 @@ Version label: <MANUAL_VERSION_LABEL>
6363
writeFile(root, "public/llms/manual/v10/llms.txt", "stale v10 index");
6464
writeFile(root, "public/llms/manual/v10/llm-full.txt", "stale v10 full");
6565
writeFile(root, "public/llms/manual/v10/llm-small.txt", "stale v10 small");
66+
writeFile(root, "public/llms/manual/v11/llms.txt", "stale v11 index");
67+
writeFile(root, "public/llms/manual/v11/llm-full.txt", "stale v11 full");
68+
writeFile(root, "public/llms/manual/v11/llm-small.txt", "stale v11 small");
6669

6770
writeFile(
6871
root,
@@ -126,7 +129,7 @@ test("generate_llms writes the default manual index at the site root", () => {
126129
let currentLlms = readFile(root, "public/llms.txt");
127130
let versionedLlms = readFile(root, "public/llms/manual/v12/llms.txt");
128131
let preReleaseLlms = readFile(root, "public/llms/manual/v13/llms.txt");
129-
let manualVersions = ["v11", "v12", "v13"];
132+
let manualVersions = ["v12", "v13"];
130133

131134
assert.doesNotMatch(currentLlms, /<VERSION>/);
132135
assert.doesNotMatch(currentLlms, /<MANUAL_VERSION_LABEL>/);
@@ -143,6 +146,7 @@ test("generate_llms writes the default manual index at the site root", () => {
143146
/https:\/\/rescript-lang\.org\/llms\/manual\/v12\/llm-small\.txt/,
144147
);
145148
assert.doesNotMatch(currentLlms, /\/llms\/manual\/v10\//);
149+
assert.doesNotMatch(currentLlms, /\/llms\/manual\/v11\//);
146150

147151
assert.equal(
148152
fs.existsSync(path.join(root, "public/llms/manual/llms.txt")),
@@ -160,6 +164,18 @@ test("generate_llms writes the default manual index at the site root", () => {
160164
fs.existsSync(path.join(root, "public/llms/manual/v10/llm-small.txt")),
161165
false,
162166
);
167+
assert.equal(
168+
fs.existsSync(path.join(root, "public/llms/manual/v11/llms.txt")),
169+
false,
170+
);
171+
assert.equal(
172+
fs.existsSync(path.join(root, "public/llms/manual/v11/llm-full.txt")),
173+
false,
174+
);
175+
assert.equal(
176+
fs.existsSync(path.join(root, "public/llms/manual/v11/llm-small.txt")),
177+
false,
178+
);
163179
assert.equal(versionedLlms, currentLlms);
164180
assert.match(preReleaseLlms, /Version label: v13 \(pre-release version\)/);
165181

@@ -191,7 +207,6 @@ test("generate_llms writes the default manual index at the site root", () => {
191207
assertOccursInOrder(majorVersionLinks, [
192208
"/llms/manual/v13/llm-full.txt",
193209
"/llms/manual/v12/llm-full.txt",
194-
"/llms/manual/v11/llm-full.txt",
195210
]);
196211
});
197212

apps/docs/scripts/generate_llms.res

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -246,7 +246,7 @@ let generateFile = (
246246
}
247247

248248
let currentManualVersion = "v12"
249-
let manualMajorVersions = ["v11", "v12", "v13"]
249+
let manualMajorVersions = ["v12", "v13"]
250250

251251
let currentReactVersion = "v0.14.2"
252252
let currentReactRuntimeVersion = "v19.2.4"
@@ -256,10 +256,7 @@ let manualVersionLinks = `- [v13 pre-release LLMs index](https://rescript-lang.o
256256
- [v13 pre-release abridged documentation](https://rescript-lang.org/llms/manual/v13/llm-small.txt): A minimal latest ReScript v13 pre-release reference
257257
- [v12 current LLMs index](https://rescript-lang.org/llms/manual/v12/llms.txt): The LLM file list for the current ReScript v12 documentation
258258
- [v12 current complete documentation](https://rescript-lang.org/llms/manual/v12/llm-full.txt): The complete current ReScript v12 documentation
259-
- [v12 current abridged documentation](https://rescript-lang.org/llms/manual/v12/llm-small.txt): A minimal current ReScript v12 reference
260-
- [v11 LLMs index](https://rescript-lang.org/llms/manual/v11/llms.txt): The LLM file list for the latest ReScript v11 documentation
261-
- [v11 complete documentation](https://rescript-lang.org/llms/manual/v11/llm-full.txt): The complete latest ReScript v11 documentation
262-
- [v11 abridged documentation](https://rescript-lang.org/llms/manual/v11/llm-small.txt): A minimal latest ReScript v11 reference`
259+
- [v12 current abridged documentation](https://rescript-lang.org/llms/manual/v12/llm-small.txt): A minimal current ReScript v12 reference`
263260

264261
let manualDocsDirectory = "markdown-pages/docs/manual"
265262
let reactDocsDirectory = "markdown-pages/docs/react"
@@ -275,7 +272,7 @@ generateFile(
275272
~reactVersion="",
276273
~txtFilePath="public/llms.txt",
277274
~staleTxtFilePath="public/llms/manual/llms.txt",
278-
~staleVersions=["v10"],
275+
~staleVersions=["v10", "v11"],
279276
manualDocsDirectory,
280277
manualLlmsDirectory,
281278
)

0 commit comments

Comments
 (0)