From 5d23f59f35f3334f92b990d0f5978cacddfcca05 Mon Sep 17 00:00:00 2001 From: Christoph Knittel Date: Tue, 25 Nov 2025 09:24:29 +0100 Subject: [PATCH 1/2] Fix LLM links --- markdown-pages/docs/manual/llms.mdx | 6 +++--- markdown-pages/docs/react/llms.mdx | 6 +++--- public/llms/manual/template.mdx | 6 +++--- public/llms/react/template.mdx | 6 +++--- 4 files changed, 12 insertions(+), 12 deletions(-) diff --git a/markdown-pages/docs/manual/llms.mdx b/markdown-pages/docs/manual/llms.mdx index 74781a2a2..7e73b6153 100644 --- a/markdown-pages/docs/manual/llms.mdx +++ b/markdown-pages/docs/manual/llms.mdx @@ -12,9 +12,9 @@ We adhere to the [llms.txt convention](https://llmstxt.org/) to make documentati Currently, we have the following files... -- [/docs/manual/llms.txt](/llms/manual//llms.txt) — a list of the available files for ReScript language. -- [/docs/manual/llm-full.txt](/llms/manual//llm-full.txt) — complete documentation for ReScript language. -- [/docs/manual/llm-small.txt](/llms/manual//llm-small.txt) — compressed version of the former, without examples. +- [/llms/manual/llms.txt](/llms/manual/llms.txt) — a list of the available files for ReScript language. +- [/llms/manual/llm-full.txt](/llms/manual/llm-full.txt) — complete documentation for ReScript language. +- [/llms/manual/llm-small.txt](/llms/manual/llm-small.txt) — compressed version of the former, without examples. ...and package-level documentation: diff --git a/markdown-pages/docs/react/llms.mdx b/markdown-pages/docs/react/llms.mdx index d98e55757..de3672cd5 100644 --- a/markdown-pages/docs/react/llms.mdx +++ b/markdown-pages/docs/react/llms.mdx @@ -11,9 +11,9 @@ We adhere to the [llms.txt convention](https://llmstxt.org/) to make documentati Currently, we have the following files... -- [/docs/react/llms.txt](/llms/react/llms.txt) — a list of the available files for ReScript React. -- [/docs/react/llms-full.txt](/llms/react/llm-full.txt) — complete documentation for ReScript React. -- [/docs/react/llms-small.txt](/llms/react/llm-small.txt) — compressed version of the former, without examples for ReScript React. +- [/llms/react/llms.txt](/llms/react/llms.txt) — a list of the available files for ReScript React. +- [/llms/react/llms-full.txt](/llms/react/llm-full.txt) — complete documentation for ReScript React. +- [/llms/react/llms-small.txt](/llms/react/llm-small.txt) — compressed version of the former, without examples for ReScript React. ...and the language documentation: diff --git a/public/llms/manual/template.mdx b/public/llms/manual/template.mdx index 74781a2a2..7e73b6153 100644 --- a/public/llms/manual/template.mdx +++ b/public/llms/manual/template.mdx @@ -12,9 +12,9 @@ We adhere to the [llms.txt convention](https://llmstxt.org/) to make documentati Currently, we have the following files... -- [/docs/manual/llms.txt](/llms/manual//llms.txt) — a list of the available files for ReScript language. -- [/docs/manual/llm-full.txt](/llms/manual//llm-full.txt) — complete documentation for ReScript language. -- [/docs/manual/llm-small.txt](/llms/manual//llm-small.txt) — compressed version of the former, without examples. +- [/llms/manual/llms.txt](/llms/manual/llms.txt) — a list of the available files for ReScript language. +- [/llms/manual/llm-full.txt](/llms/manual/llm-full.txt) — complete documentation for ReScript language. +- [/llms/manual/llm-small.txt](/llms/manual/llm-small.txt) — compressed version of the former, without examples. ...and package-level documentation: diff --git a/public/llms/react/template.mdx b/public/llms/react/template.mdx index d98e55757..de3672cd5 100644 --- a/public/llms/react/template.mdx +++ b/public/llms/react/template.mdx @@ -11,9 +11,9 @@ We adhere to the [llms.txt convention](https://llmstxt.org/) to make documentati Currently, we have the following files... -- [/docs/react/llms.txt](/llms/react/llms.txt) — a list of the available files for ReScript React. -- [/docs/react/llms-full.txt](/llms/react/llm-full.txt) — complete documentation for ReScript React. -- [/docs/react/llms-small.txt](/llms/react/llm-small.txt) — compressed version of the former, without examples for ReScript React. +- [/llms/react/llms.txt](/llms/react/llms.txt) — a list of the available files for ReScript React. +- [/llms/react/llms-full.txt](/llms/react/llm-full.txt) — complete documentation for ReScript React. +- [/llms/react/llms-small.txt](/llms/react/llm-small.txt) — compressed version of the former, without examples for ReScript React. ...and the language documentation: From b905138373c7c1f6380f3372591ed1d5cc7cc1f1 Mon Sep 17 00:00:00 2001 From: Christoph Knittel Date: Tue, 25 Nov 2025 10:18:08 +0100 Subject: [PATCH 2/2] Fix navigation to llms.txt (static resources) --- src/components/Markdown.res | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/components/Markdown.res b/src/components/Markdown.res index 5aa400677..5222f5fae 100644 --- a/src/components/Markdown.res +++ b/src/components/Markdown.res @@ -373,8 +373,11 @@ module Hr = { module A = { @react.component let make = (~href, ~target=?, ~children) => { - // In case we are handling a relative URL, we will use the Next routing - if Util.Url.isAbsolute(href) { + // FIXME: can this be improved/generalized? + let shouldReloadDocument = href->String.startsWith("/llms") + + // In case we are handling a relative URL, we will use React Router's link component. + if Util.Url.isAbsolute(href) || shouldReloadDocument {