Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Doc] Fix link to documentation root #9602

Merged
merged 1 commit into from
Jan 23, 2024
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: 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',
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't understand why you chose 'navigation.html' here an not 'documentation.html'. Is it intentional?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No, it's a mistake!

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed by 6df8224

].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
Loading