Skip to content

Commit bec0bb2

Browse files
lachlancollinsenBonnet
authored andcommitted
docs: correct local relative links (TanStack#6027)
* docs: correct local relative links * Missing fixes * Fix lockfile
1 parent b563248 commit bec0bb2

File tree

135 files changed

+457
-483
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

135 files changed

+457
-483
lines changed

docs/router/eslint/eslint-plugin-router.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ Alternatively, add `@tanstack/eslint-plugin-router` to the plugins section, and
102102

103103
The following rules are available in the TanStack Router ESLint Plugin:
104104

105-
- [@tanstack/router/create-route-property-order](../create-route-property-order.md)
105+
- [@tanstack/router/create-route-property-order](./create-route-property-order.md)
106106

107107
## Conflicts with other ESLint plugins
108108

docs/router/framework/react/api/router.md

Lines changed: 79 additions & 79 deletions
Original file line numberDiff line numberDiff line change
@@ -4,86 +4,86 @@ title: Router API
44
---
55

66
- Functions
7-
- [`createFileRoute`](../router/createFileRouteFunction.md)
8-
- [`createLazyFileRoute`](../router/createLazyFileRouteFunction.md)
9-
- [`createRootRoute`](../router/createRootRouteFunction.md)
10-
- [`createRootRouteWithContext`](../router/createRootRouteWithContextFunction.md)
11-
- [`createRoute`](../router/createRouteFunction.md)
12-
- [`createLazyRoute`](../router/createLazyRouteFunction.md)
13-
- [`createRouteMask`](../router/createRouteMaskFunction.md)
14-
- [`createRouter`](../router/createRouterFunction.md)
15-
- [`defer`](../router/deferFunction.md)
16-
- [`getRouteApi`](../router/getRouteApiFunction.md)
17-
- [`isNotFound`](../router/isNotFoundFunction.md)
18-
- [`isRedirect`](../router/isRedirectFunction.md)
19-
- [`lazyRouteComponent`](../router/lazyRouteComponentFunction.md)
20-
- [`linkOptions`](../router/linkOptions.md)
21-
- [`notFound`](../router/notFoundFunction.md)
22-
- [`redirect`](../router/redirectFunction.md)
23-
- [`retainSearchParams`](../router/retainSearchParamsFunction.md)
24-
- [`stripSearchParams`](../router/stripSearchParamsFunction.md)
7+
- [`createFileRoute`](./router/createFileRouteFunction.md)
8+
- [`createLazyFileRoute`](./router/createLazyFileRouteFunction.md)
9+
- [`createRootRoute`](./router/createRootRouteFunction.md)
10+
- [`createRootRouteWithContext`](./router/createRootRouteWithContextFunction.md)
11+
- [`createRoute`](./router/createRouteFunction.md)
12+
- [`createLazyRoute`](./router/createLazyRouteFunction.md)
13+
- [`createRouteMask`](./router/createRouteMaskFunction.md)
14+
- [`createRouter`](./router/createRouterFunction.md)
15+
- [`defer`](./router/deferFunction.md)
16+
- [`getRouteApi`](./router/getRouteApiFunction.md)
17+
- [`isNotFound`](./router/isNotFoundFunction.md)
18+
- [`isRedirect`](./router/isRedirectFunction.md)
19+
- [`lazyRouteComponent`](./router/lazyRouteComponentFunction.md)
20+
- [`linkOptions`](./router/linkOptions.md)
21+
- [`notFound`](./router/notFoundFunction.md)
22+
- [`redirect`](./router/redirectFunction.md)
23+
- [`retainSearchParams`](./router/retainSearchParamsFunction.md)
24+
- [`stripSearchParams`](./router/stripSearchParamsFunction.md)
2525
- Components
26-
- [`<Await>`](../router/awaitComponent.md)
27-
- [`<CatchBoundary>`](../router/catchBoundaryComponent.md)
28-
- [`<CatchNotFound>`](../router/catchNotFoundComponent.md)
29-
- [`<ClientOnly>`](../router/clientOnlyComponent.md)
30-
- [`<DefaultGlobalNotFound>`](../router/defaultGlobalNotFoundComponent.md)
31-
- [`<ErrorComponent>`](../router/errorComponentComponent.md)
32-
- [`<Link>`](../router/linkComponent.md)
33-
- [`<MatchRoute>`](../router/matchRouteComponent.md)
34-
- [`<Navigate>`](../router/navigateComponent.md)
35-
- [`<NotFoundComponent>`](../router/notFoundComponentComponent.md)
36-
- [`<Outlet>`](../router/outletComponent.md)
26+
- [`<Await>`](./router/awaitComponent.md)
27+
- [`<CatchBoundary>`](./router/catchBoundaryComponent.md)
28+
- [`<CatchNotFound>`](./router/catchNotFoundComponent.md)
29+
- [`<ClientOnly>`](./router/clientOnlyComponent.md)
30+
- [`<DefaultGlobalNotFound>`](./router/defaultGlobalNotFoundComponent.md)
31+
- [`<ErrorComponent>`](./router/errorComponentComponent.md)
32+
- [`<Link>`](./router/linkComponent.md)
33+
- [`<MatchRoute>`](./router/matchRouteComponent.md)
34+
- [`<Navigate>`](./router/navigateComponent.md)
35+
- [`<NotFoundComponent>`](./router/notFoundComponentComponent.md)
36+
- [`<Outlet>`](./router/outletComponent.md)
3737
- Hooks
38-
- [`useAwaited`](../router/useAwaitedHook.md)
39-
- [`useBlocker`](../router/useBlockerHook.md)
40-
- [`useCanGoBack`](../router//useCanGoBack.md)
41-
- [`useChildMatches`](../router/useChildMatchesHook.md)
42-
- [`useLinkProps`](../router/useLinkPropsHook.md)
43-
- [`useLoaderData`](../router/useLoaderDataHook.md)
44-
- [`useLoaderDeps`](../router/useLoaderDepsHook.md)
45-
- [`useLocation`](../router/useLocationHook.md)
46-
- [`useMatch`](../router/useMatchHook.md)
47-
- [`useMatchRoute`](../router/useMatchRouteHook.md)
48-
- [`useMatches`](../router/useMatchesHook.md)
49-
- [`useNavigate`](../router/useNavigateHook.md)
50-
- [`useParentMatches`](../router/useParentMatchesHook.md)
51-
- [`useParams`](../router/useParamsHook.md)
52-
- [`useRouteContext`](../router/useRouteContextHook.md)
53-
- [`useRouter`](../router/useRouterHook.md)
54-
- [`useRouterState`](../router/useRouterStateHook.md)
55-
- [`useSearch`](../router/useSearchHook.md)
38+
- [`useAwaited`](./router/useAwaitedHook.md)
39+
- [`useBlocker`](./router/useBlockerHook.md)
40+
- [`useCanGoBack`](./router//useCanGoBack.md)
41+
- [`useChildMatches`](./router/useChildMatchesHook.md)
42+
- [`useLinkProps`](./router/useLinkPropsHook.md)
43+
- [`useLoaderData`](./router/useLoaderDataHook.md)
44+
- [`useLoaderDeps`](./router/useLoaderDepsHook.md)
45+
- [`useLocation`](./router/useLocationHook.md)
46+
- [`useMatch`](./router/useMatchHook.md)
47+
- [`useMatchRoute`](./router/useMatchRouteHook.md)
48+
- [`useMatches`](./router/useMatchesHook.md)
49+
- [`useNavigate`](./router/useNavigateHook.md)
50+
- [`useParentMatches`](./router/useParentMatchesHook.md)
51+
- [`useParams`](./router/useParamsHook.md)
52+
- [`useRouteContext`](./router/useRouteContextHook.md)
53+
- [`useRouter`](./router/useRouterHook.md)
54+
- [`useRouterState`](./router/useRouterStateHook.md)
55+
- [`useSearch`](./router/useSearchHook.md)
5656
- Types
57-
- [`ActiveLinkOptions Type`](../router/ActiveLinkOptionsType.md)
58-
- [`AsyncRouteComponent Type`](../router/AsyncRouteComponentType.md)
59-
- [`HistoryState Interface`](../router/historyStateInterface.md)
60-
- [`LinkOptions Type`](../router/LinkOptionsType.md)
61-
- [`LinkProps Type`](../router/LinkPropsType.md)
62-
- [`MatchRouteOptions Type`](../router/MatchRouteOptionsType.md)
63-
- [`NavigateOptions Type`](../router/NavigateOptionsType.md)
64-
- [`NotFoundError Type`](../router/NotFoundErrorType.md)
65-
- [`ParsedHistoryState Type`](../router/ParsedHistoryStateType.md)
66-
- [`ParsedLocation Type`](../router/ParsedLocationType.md)
67-
- [`Redirect Type`](../router/RedirectType.md)
68-
- [`Register Type`](../router/RegisterType.md)
69-
- [`Route Type`](../router/RouteType.md)
70-
- [`RouteApi Type`](../router/RouteApiType.md)
71-
- [`RouteMask Type`](../router/RouteMaskType.md)
72-
- [`RouteMatch Type`](../router/RouteMatchType.md)
73-
- [`RouteOptions Type`](../router/RouteOptionsType.md)
74-
- [`Router Type`](../router/RouterType.md)
75-
- [`RouterEvents Type`](../router/RouterEventsType.md)
76-
- [`RouterOptions Type`](../router/RouterOptionsType.md)
77-
- [`RouterState Type`](../router/RouterStateType.md)
78-
- [`ToMaskOptions Type`](../router/ToMaskOptionsType.md)
79-
- [`ToOptions Type`](../router/ToOptionsType.md)
80-
- [`UseMatchRouteOptions Type`](../router/UseMatchRouteOptionsType.md)
81-
- [`ViewTransitionOptions Type`](../router/ViewTransitionOptionsType.md)
57+
- [`ActiveLinkOptions Type`](./router/ActiveLinkOptionsType.md)
58+
- [`AsyncRouteComponent Type`](./router/AsyncRouteComponentType.md)
59+
- [`HistoryState Interface`](./router/historyStateInterface.md)
60+
- [`LinkOptions Type`](./router/LinkOptionsType.md)
61+
- [`LinkProps Type`](./router/LinkPropsType.md)
62+
- [`MatchRouteOptions Type`](./router/MatchRouteOptionsType.md)
63+
- [`NavigateOptions Type`](./router/NavigateOptionsType.md)
64+
- [`NotFoundError Type`](./router/NotFoundErrorType.md)
65+
- [`ParsedHistoryState Type`](./router/ParsedHistoryStateType.md)
66+
- [`ParsedLocation Type`](./router/ParsedLocationType.md)
67+
- [`Redirect Type`](./router/RedirectType.md)
68+
- [`Register Type`](./router/RegisterType.md)
69+
- [`Route Type`](./router/RouteType.md)
70+
- [`RouteApi Type`](./router/RouteApiType.md)
71+
- [`RouteMask Type`](./router/RouteMaskType.md)
72+
- [`RouteMatch Type`](./router/RouteMatchType.md)
73+
- [`RouteOptions Type`](./router/RouteOptionsType.md)
74+
- [`Router Type`](./router/RouterType.md)
75+
- [`RouterEvents Type`](./router/RouterEventsType.md)
76+
- [`RouterOptions Type`](./router/RouterOptionsType.md)
77+
- [`RouterState Type`](./router/RouterStateType.md)
78+
- [`ToMaskOptions Type`](./router/ToMaskOptionsType.md)
79+
- [`ToOptions Type`](./router/ToOptionsType.md)
80+
- [`UseMatchRouteOptions Type`](./router/UseMatchRouteOptionsType.md)
81+
- [`ViewTransitionOptions Type`](./router/ViewTransitionOptionsType.md)
8282
- ⚠️ Deprecated
83-
- [`FileRoute Class`](../router/FileRouteClass.md)
84-
- [`Route Class`](../router/RouteClass.md)
85-
- [`Router Class`](../router/RouterClass.md)
86-
- [`RouteApi Class`](../router/RouteApiClass.md)
87-
- [`RootRoute Class`](../router/RootRouteClass.md)
88-
- [`NotFoundRoute Class`](../router/NotFoundRouteClass.md)
89-
- [`rootRouteWithContext Function`](../router/rootRouteWithContextFunction.md)
83+
- [`FileRoute Class`](./router/FileRouteClass.md)
84+
- [`Route Class`](./router/RouteClass.md)
85+
- [`Router Class`](./router/RouterClass.md)
86+
- [`RouteApi Class`](./router/RouteApiClass.md)
87+
- [`RootRoute Class`](./router/RootRouteClass.md)
88+
- [`NotFoundRoute Class`](./router/NotFoundRouteClass.md)
89+
- [`rootRouteWithContext Function`](./router/rootRouteWithContextFunction.md)

docs/router/framework/react/api/router/ActiveLinkOptionsType.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ id: ActiveLinkOptionsType
33
title: ActiveLinkOptions type
44
---
55

6-
The `ActiveLinkOptions` type extends the [`LinkOptions`](../LinkOptionsType.md) type and contains additional options that can be used to describe how a link should be styled when it is active.
6+
The `ActiveLinkOptions` type extends the [`LinkOptions`](./LinkOptionsType.md) type and contains additional options that can be used to describe how a link should be styled when it is active.
77

88
```tsx
99
type ActiveLinkOptions = LinkOptions & {

docs/router/framework/react/api/router/FileRouteClass.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ title: FileRoute class
55

66
> [!CAUTION]
77
> This class has been deprecated and will be removed in the next major version of TanStack Router.
8-
> Please use the [`createFileRoute`](../createFileRouteFunction.md) function instead.
8+
> Please use the [`createFileRoute`](./createFileRouteFunction.md) function instead.
99
1010
The `FileRoute` class is a factory that can be used to create a file-based route instance. This route instance can then be used to automatically generate a route tree with the `tsr generate` and `tsr watch` commands.
1111

@@ -34,13 +34,13 @@ The `createRoute` method is a method that can be used to configure the file rout
3434
#### .createRoute options
3535

3636
- Type: `Omit<RouteOptions, 'getParentRoute' | 'path' | 'id'>`
37-
- [`RouteOptions`](../RouteOptionsType.md)
37+
- [`RouteOptions`](./RouteOptionsType.md)
3838
- Optional
3939
- The same options that are available to the `Route` class, but with the `getParentRoute`, `path`, and `id` options omitted since they are unnecessary for file-based routing.
4040

4141
#### .createRoute returns
4242

43-
A [`Route`](../RouteType.md) instance that can be used to configure the route to be inserted into the route-tree.
43+
A [`Route`](./RouteType.md) instance that can be used to configure the route to be inserted into the route-tree.
4444

4545
> ⚠️ Note: For `tsr generate` and `tsr watch` to work properly, the file route instance must be exported from the file using the `Route` identifier.
4646

docs/router/framework/react/api/router/LinkOptionsType.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ id: LinkOptionsType
33
title: LinkOptions type
44
---
55

6-
The `LinkOptions` type extends the [`NavigateOptions`](../NavigateOptionsType.md) type and contains additional options that can be used by TanStack Router when handling actual anchor element attributes.
6+
The `LinkOptions` type extends the [`NavigateOptions`](./NavigateOptionsType.md) type and contains additional options that can be used by TanStack Router when handling actual anchor element attributes.
77

88
```tsx
99
type LinkOptions = NavigateOptions & {
@@ -36,7 +36,7 @@ The `LinkOptions` object accepts/contains the following properties:
3636
- Type: `false | 'intent' | 'viewport' | 'render'`
3737
- Optional
3838
- If set, the link's preloading strategy will be set to this value.
39-
- See the [Preloading guide](../../../guide/preloading.md) for more information.
39+
- See the [Preloading guide](../../guide/preloading.md) for more information.
4040
4141
### `preloadDelay`
4242

docs/router/framework/react/api/router/LinkPropsType.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ id: LinkPropsType
33
title: LinkProps type
44
---
55

6-
The `LinkProps` type extends the [`ActiveLinkOptions`](../ActiveLinkOptionsType.md) and `React.AnchorHTMLAttributes<HTMLAnchorElement>` types and contains additional props specific to the `Link` component.
6+
The `LinkProps` type extends the [`ActiveLinkOptions`](./ActiveLinkOptionsType.md) and `React.AnchorHTMLAttributes<HTMLAnchorElement>` types and contains additional props specific to the `Link` component.
77

88
```tsx
99
type LinkProps = ActiveLinkOptions &
@@ -16,7 +16,7 @@ type LinkProps = ActiveLinkOptions &
1616
1717
## LinkProps properties
1818
19-
- All of the props from [`ActiveLinkOptions`](../ActiveLinkOptionsType.md)
19+
- All of the props from [`ActiveLinkOptions`](./ActiveLinkOptionsType.md)
2020
- All of the props from `React.AnchorHTMLAttributes<HTMLAnchorElement>`
2121
2222
#### `children`

docs/router/framework/react/api/router/NavigateOptionsType.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ The `NavigateOptions` object accepts the following properties:
5050
- Optional
5151
- Defaults to `false`.
5252
- If `true`, navigation will be called using `document.startViewTransition()`.
53-
- If [`ViewTransitionOptions`](../ViewTransitionOptionsType.md), route navigations will be called using `document.startViewTransition({update, types})` where `types` will determine the strings array passed with `ViewTransitionOptions["types"]`. If the browser does not support viewTransition types, the navigation will fall back to normal `document.startTransition()`, same as if `true` was passed.
53+
- If [`ViewTransitionOptions`](./ViewTransitionOptionsType.md), route navigations will be called using `document.startViewTransition({update, types})` where `types` will determine the strings array passed with `ViewTransitionOptions["types"]`. If the browser does not support viewTransition types, the navigation will fall back to normal `document.startTransition()`, same as if `true` was passed.
5454
- If the browser does not support this api, this option will be ignored.
5555
- See [MDN](https://developer.mozilla.org/en-US/docs/Web/API/Document/startViewTransition) for more information on how this function works.
5656
- See [Google](https://developer.chrome.com/docs/web-platform/view-transitions/same-document#view-transition-types) for more information on viewTransition types
@@ -75,4 +75,4 @@ The `NavigateOptions` object accepts the following properties:
7575
- Optional
7676
- This can be used instead of `to` to navigate to a fully built href, e.g. pointing to an external target.
7777
78-
- [`ToOptions`](../ToOptionsType.md)
78+
- [`ToOptions`](./ToOptionsType.md)

docs/router/framework/react/api/router/NotFoundRouteClass.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ title: NotFoundRoute class
66
> [!CAUTION]
77
> This class has been deprecated and will be removed in the next major version of TanStack Router.
88
> Please use the `notFoundComponent` route option that is present during route configuration.
9-
> See the [Not Found Errors guide](../../../guide/not-found-errors.md) for more information.
9+
> See the [Not Found Errors guide](../../guide/not-found-errors.md) for more information.
1010
1111
The `NotFoundRoute` class extends the `Route` class and can be used to create a not found route instance. A not found route instance can be passed to the `routerOptions.notFoundRoute` option to configure a default not-found/404 route for every branch of the route tree.
1212

@@ -28,7 +28,7 @@ Omit<
2828
>
2929
```
3030

31-
- [RouteOptions](../RouteOptionsType.md)
31+
- [RouteOptions](./RouteOptionsType.md)
3232
- Required
3333
- The options that will be used to configure the not found route instance.
3434

docs/router/framework/react/api/router/RedirectType.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ export type Redirect = {
1313
} & NavigateOptions
1414
```
1515
16-
- [`NavigateOptions`](../NavigateOptionsType.md)
16+
- [`NavigateOptions`](./NavigateOptionsType.md)
1717
1818
## Redirect properties
1919

docs/router/framework/react/api/router/RootRouteClass.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ title: RootRoute class
55

66
> [!CAUTION]
77
> This class has been deprecated and will be removed in the next major version of TanStack Router.
8-
> Please use the [`createRootRoute`](../createRootRouteFunction.md) function instead.
8+
> Please use the [`createRootRoute`](./createRootRouteFunction.md) function instead.
99
1010
The `RootRoute` class extends the `Route` class and can be used to create a root route instance. A root route instance can then be used to create a route tree.
1111

@@ -31,12 +31,12 @@ Omit<
3131
>
3232
```
3333

34-
- [`RouteOptions`](../RouteOptionsType.md)
34+
- [`RouteOptions`](./RouteOptionsType.md)
3535
- Optional
3636

3737
## Constructor returns
3838

39-
A new [`Route`](../RouteType.md) instance.
39+
A new [`Route`](./RouteType.md) instance.
4040

4141
## Examples
4242

0 commit comments

Comments
 (0)