File tree Expand file tree Collapse file tree 5 files changed +17
-14
lines changed
Expand file tree Collapse file tree 5 files changed +17
-14
lines changed Original file line number Diff line number Diff line change @@ -12,9 +12,9 @@ We adhere to the [llms.txt convention](https://llmstxt.org/) to make documentati
1212
1313Currently, 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+ - [ /llms /manual/llms.txt] ( /llms/manual/llms.txt ) — a list of the available files for ReScript language.
16+ - [ /llms /manual/llm-full.txt] ( /llms/manual/llm-full.txt ) — complete documentation for ReScript language.
17+ - [ /llms /manual/llm-small.txt] ( /llms/manual/llm-small.txt ) — compressed version of the former, without examples.
1818
1919...and package-level documentation:
2020
Original file line number Diff line number Diff line change @@ -11,9 +11,9 @@ We adhere to the [llms.txt convention](https://llmstxt.org/) to make documentati
1111
1212Currently, 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+ - [ /llms /react/llms.txt] ( /llms/react/llms.txt ) — a list of the available files for ReScript React.
15+ - [ /llms /react/llms-full.txt] ( /llms/react/llm-full.txt ) — complete documentation for ReScript React.
16+ - [ /llms /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
Original file line number Diff line number Diff line change @@ -12,9 +12,9 @@ We adhere to the [llms.txt convention](https://llmstxt.org/) to make documentati
1212
1313Currently, 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+ - [ /llms /manual/llms.txt] ( /llms/manual/llms.txt ) — a list of the available files for ReScript language.
16+ - [ /llms /manual/llm-full.txt] ( /llms/manual/llm-full.txt ) — complete documentation for ReScript language.
17+ - [ /llms /manual/llm-small.txt] ( /llms/manual/llm-small.txt ) — compressed version of the former, without examples.
1818
1919...and package-level documentation:
2020
Original file line number Diff line number Diff line change @@ -11,9 +11,9 @@ We adhere to the [llms.txt convention](https://llmstxt.org/) to make documentati
1111
1212Currently, 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+ - [ /llms /react/llms.txt] ( /llms/react/llms.txt ) — a list of the available files for ReScript React.
15+ - [ /llms /react/llms-full.txt] ( /llms/react/llm-full.txt ) — complete documentation for ReScript React.
16+ - [ /llms /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
Original file line number Diff line number Diff line change @@ -373,8 +373,11 @@ module Hr = {
373373module A = {
374374 @react.component
375375 let make = (~href , ~target = ?, ~children ) => {
376- // In case we are handling a relative URL, we will use the Next routing
377- if Util .Url .isAbsolute (href ) {
376+ // FIXME: can this be improved/generalized?
377+ let shouldReloadDocument = href -> String .startsWith ("/llms" )
378+
379+ // In case we are handling a relative URL, we will use React Router's link component.
380+ if Util .Url .isAbsolute (href ) || shouldReloadDocument {
378381 <a
379382 href
380383 rel = "noopener noreferrer"
You can’t perform that action at this time.
0 commit comments