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: 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 {