Skip to content

Commit f67b5f5

Browse files
committed
more fixes
1 parent 0225338 commit f67b5f5

File tree

3 files changed

+14
-9
lines changed

3 files changed

+14
-9
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+
- [/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.
1818

1919
...and package-level documentation:
2020

21-
- [/docs/react/llms](../react/llms.mdx) — the LLms documentation for ReScript React.
21+
- [/docs/react/llms](/docs/react/llms) — 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+
- [/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.
1717

1818
...and the language documentation:
1919

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

2222
## Notes
2323

src/Mdx.res

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,12 @@ let remarkLinkPlugin = (tree, vfile) => {
135135
"unknown file",
136136
)}`,
137137
)
138-
if url->String.includes("https://rescript-lang.org") {
138+
139+
// Direct links to the homepage are OK
140+
if url == "https://rescript-lang.org" {
141+
()
142+
// Relative paths should be used as much as possible
143+
} else if url->String.includes("https://rescript-lang.org") {
139144
JsExn.throw(
140145
Error(
141146
`Links to rescript-lang.org are not allowed in MDX files, you should use a relative link instead: ${url} in file ${filePath}`,

0 commit comments

Comments
 (0)