From e767cad411ec8d9ecc1cb07aaa43d83ea6d8eb20 Mon Sep 17 00:00:00 2001 From: Szymon Kurek Date: Sat, 19 Sep 2026 15:36:41 +0200 Subject: [PATCH] docs: fix broken links - router-core: remove extra `/router/` segment from notFound @link - router-cli, router-plugin READMEs: point to /docs/installation/with-router-cli - setup-basic-search-params: point removed zodValidator/valibotValidator API pages to the Zod/Valibot sections of the search-params guide - solid getting-started: drop nonexistent start-bare example - .gitignore: update GitHub ignore-files docs URL --- .gitignore | 2 +- docs/router/how-to/setup-basic-search-params.md | 4 ++-- docs/start/framework/solid/getting-started.md | 1 - packages/router-cli/README.md | 2 +- packages/router-core/src/not-found.ts | 2 +- packages/router-plugin/README.md | 2 +- 6 files changed, 6 insertions(+), 7 deletions(-) diff --git a/.gitignore b/.gitignore index 70028b28607..df72b09bddd 100644 --- a/.gitignore +++ b/.gitignore @@ -1,5 +1,5 @@ .vite -# See https://help.github.com/ignore-files/ for more about ignoring files. +# See https://docs.github.com/en/get-started/getting-started-with-git/ignoring-files for more about ignoring files. # dependencies node_modules diff --git a/docs/router/how-to/setup-basic-search-params.md b/docs/router/how-to/setup-basic-search-params.md index e85579f5f46..071b051a487 100644 --- a/docs/router/how-to/setup-basic-search-params.md +++ b/docs/router/how-to/setup-basic-search-params.md @@ -427,7 +427,7 @@ After setting up basic search parameters, you might want to: - [Valibot Documentation](https://valibot.dev/) - Lightweight validation library - [Yup Documentation](https://github.com/jquense/yup) - Object schema validation - **TanStack Router:** - - [TanStack Zod Adapter](https://tanstack.com/router/latest/docs/framework/react/api/router/zodValidator) - Official Zod adapter - - [TanStack Valibot Adapter](https://tanstack.com/router/latest/docs/framework/react/api/router/valibotValidator) - Official Valibot adapter + - [TanStack Zod Adapter](../guide/search-params.md#zod) - Official Zod adapter + - [TanStack Valibot Adapter](../guide/search-params.md#valibot) - Official Valibot adapter - [Search Parameters Guide](../guide/search-params.md) - Comprehensive search parameters documentation - [Type Safety Guide](../guide/type-safety.md) - Understanding TanStack Router's type safety diff --git a/docs/start/framework/solid/getting-started.md b/docs/start/framework/solid/getting-started.md index 786648b16a6..39906318b2a 100644 --- a/docs/start/framework/solid/getting-started.md +++ b/docs/start/framework/solid/getting-started.md @@ -38,7 +38,6 @@ To use a different example, replace `start-basic` with one of the slugs below. #### Examples -- [Bare](https://github.com/TanStack/router/tree/main/examples/solid/start-bare) (`start-bare`) - [Basic](https://github.com/TanStack/router/tree/main/examples/solid/start-basic) (`start-basic`) - [Basic Static](https://github.com/TanStack/router/tree/main/examples/solid/start-basic-static) (`start-basic-static`) - [Counter](https://github.com/TanStack/router/tree/main/examples/solid/start-counter) (`start-counter`) diff --git a/packages/router-cli/README.md b/packages/router-cli/README.md index ee958166036..43ea33f2506 100644 --- a/packages/router-cli/README.md +++ b/packages/router-cli/README.md @@ -2,4 +2,4 @@ # TanStack Router CLI -See https://tanstack.com/router/latest/docs/framework/react/routing/installation/with-router-cli +See https://tanstack.com/router/latest/docs/installation/with-router-cli diff --git a/packages/router-core/src/not-found.ts b/packages/router-core/src/not-found.ts index ddf8f0a2597..a8c2700c869 100644 --- a/packages/router-core/src/not-found.ts +++ b/packages/router-core/src/not-found.ts @@ -27,7 +27,7 @@ export type NotFoundError = { * * @param options Optional settings including `routeId`, `headers`, and `throw`. * @returns A not-found error object that can be thrown or returned. - * @link https://tanstack.com/router/latest/docs/router/framework/react/api/router/notFoundFunction + * @link https://tanstack.com/router/latest/docs/framework/react/api/router/notFoundFunction */ export function notFound(options: NotFoundError = {}) { ;(options as any).isNotFound = true diff --git a/packages/router-plugin/README.md b/packages/router-plugin/README.md index b3f04849158..8f333aaa388 100644 --- a/packages/router-plugin/README.md +++ b/packages/router-plugin/README.md @@ -10,4 +10,4 @@ See https://tanstack.com/router/latest/docs/framework/react/routing/file-based-r npm install -D @tanstack/router-plugin ``` -See https://tanstack.com/router/latest/docs/framework/react/routing/installation/with-router-cli for usage instructions. +See https://tanstack.com/router/latest/docs/installation/with-router-cli for usage instructions.