Skip to content

Commit

Permalink
Merge pull request #9602 from marmelab/doc-fix-link-readme
Browse files Browse the repository at this point in the history
[Doc] Fix link to documentation root
  • Loading branch information
djhi authored Jan 23, 2024
2 parents 9287119 + 83a027a commit 71aaf60
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
6 changes: 5 additions & 1 deletion docs/404.html
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,11 @@
function replaceNavigationWithVersion(version) {
var location = document.location.href.split('#')[0];
var locationSlices = location.split('/');
var href = [...locationSlices.slice(0, locationSlices.length - 2), version, 'Readme.html'].join('/');
var href = [
...locationSlices.slice(0, locationSlices.length - 2),
version,
'navigation.html',
].join('/');
// fetch the new content
fetch(href)
.then(res => res.text())
Expand Down
2 changes: 1 addition & 1 deletion packages/ra-ui-materialui/src/layout/Error.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ export const Error = (
<ul>
<li>
Check the{' '}
<a href="https://marmelab.com/react-admin/Readme.html">
<a href="https://marmelab.com/react-admin/documentation.html">
react-admin documentation
</a>
</li>
Expand Down
2 changes: 1 addition & 1 deletion packages/react-admin/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ yarn add react-admin

1. Read the [Tutorial](https://marmelab.com/react-admin/Tutorial.html) for a 30 minutes introduction.
2. Read the source code of [the demos](https://marmelab.com/react-admin/Demos.html) for real-life examples.
3. Read the [Documentation](https://marmelab.com/react-admin/Readme.html) for a deep dive into the react-admin components and hooks.
3. Read the [Documentation](https://marmelab.com/react-admin/documentation.html) for a deep dive into the react-admin components and hooks.
4. Red the [Architecture decisions](https://marmelab.com/react-admin/Architecture.html) to better understand why features are implemented that way.
5. Check out the [API Reference](https://marmelab.com/react-admin/Reference.html) for a complete list of the public API.
6. Get [Support](#support) for fixing your own problems
Expand Down

0 comments on commit 71aaf60

Please sign in to comment.