Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions markdown-pages/docs/manual/llms.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -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:

Expand Down
6 changes: 3 additions & 3 deletions markdown-pages/docs/react/llms.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -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:

Expand Down
6 changes: 3 additions & 3 deletions public/llms/manual/template.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -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:

Expand Down
6 changes: 3 additions & 3 deletions public/llms/react/template.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -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:

Expand Down
7 changes: 5 additions & 2 deletions src/components/Markdown.res
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
<a
href
rel="noopener noreferrer"
Expand Down