From 667286879eed067393387e9def904cb240dd4f77 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Chopin?= Date: Thu, 17 Nov 2022 13:09:43 +0100 Subject: [PATCH] docs: fix broken links in examples (#9119) --- docs/content/1.docs/1.getting-started/3.configuration.md | 2 +- docs/content/1.docs/1.getting-started/5.routing.md | 2 +- docs/content/1.docs/1.getting-started/5.seo-meta.md | 2 +- docs/content/1.docs/2.guide/2.directory-structure/1.server.md | 2 +- docs/content/1.docs/3.api/1.composables/use-app-config.md | 2 +- docs/content/1.docs/3.api/1.composables/use-router.md | 2 +- docs/content/1.docs/3.api/2.components/2.nuxt-page.md | 2 +- docs/content/1.docs/3.api/2.components/3.nuxt-layout.md | 2 +- docs/content/1.docs/3.api/3.utils/define-page-meta.md | 2 +- docs/content/1.docs/3.api/3.utils/navigate-to.md | 2 +- docs/content/1.docs/3.api/3.utils/update-app-config.md | 2 +- docs/content/1.docs/4.examples/1.app/app-config.md | 2 +- docs/content/1.docs/4.examples/1.app/plugins.md | 2 +- docs/content/1.docs/4.examples/2.auto-imports/components.md | 2 +- docs/content/1.docs/4.examples/2.auto-imports/composables.md | 2 +- docs/content/1.docs/4.examples/4.routing/layouts.md | 2 +- docs/content/1.docs/4.examples/4.routing/middleware.md | 2 +- docs/content/1.docs/4.examples/4.routing/pages.md | 2 +- docs/content/1.docs/4.examples/5.server/routes.md | 2 +- docs/scripts/nuxt-config.md | 2 +- 20 files changed, 20 insertions(+), 20 deletions(-) diff --git a/docs/content/1.docs/1.getting-started/3.configuration.md b/docs/content/1.docs/1.getting-started/3.configuration.md index dddf61fcd6..f7c420763b 100644 --- a/docs/content/1.docs/1.getting-started/3.configuration.md +++ b/docs/content/1.docs/1.getting-started/3.configuration.md @@ -93,7 +93,7 @@ const appConfig = useAppConfig() ``` -:ReadMore{link="/guide/directory-structure/app.config"} +:ReadMore{link="/docs/guide/directory-structure/app.config"} ## `runtimeConfig` vs `app.config` diff --git a/docs/content/1.docs/1.getting-started/5.routing.md b/docs/content/1.docs/1.getting-started/5.routing.md index 04f1d74da6..8aba9fdf59 100644 --- a/docs/content/1.docs/1.getting-started/5.routing.md +++ b/docs/content/1.docs/1.getting-started/5.routing.md @@ -116,7 +116,7 @@ definePageMeta({ :: -:ReadMore{link="/guide/directory-structure/middleware"} +:ReadMore{link="/docs/guide/directory-structure/middleware"} ## Route Validation diff --git a/docs/content/1.docs/1.getting-started/5.seo-meta.md b/docs/content/1.docs/1.getting-started/5.seo-meta.md index d79c03c690..95f8cde1a3 100644 --- a/docs/content/1.docs/1.getting-started/5.seo-meta.md +++ b/docs/content/1.docs/1.getting-started/5.seo-meta.md @@ -230,7 +230,7 @@ useHead({ ::LinkExample{link="/docs/examples/composables/use-head"} :: -:ReadMore{link="/guide/directory-structure/pages/#page-metadata"} +:ReadMore{link="/docs/guide/directory-structure/pages/#page-metadata"} ### Add Dynamic Title diff --git a/docs/content/1.docs/2.guide/2.directory-structure/1.server.md b/docs/content/1.docs/2.guide/2.directory-structure/1.server.md index f52580236a..1a9726c78d 100644 --- a/docs/content/1.docs/2.guide/2.directory-structure/1.server.md +++ b/docs/content/1.docs/2.guide/2.directory-structure/1.server.md @@ -310,4 +310,4 @@ Create a new file in `app.vue`: ``` -::ReadMore{link="/guide/directory-structure/server"} +::ReadMore{link="/docs/guide/directory-structure/server"} diff --git a/docs/content/1.docs/3.api/1.composables/use-app-config.md b/docs/content/1.docs/3.api/1.composables/use-app-config.md index 4357c2edde..8a7589ef5f 100644 --- a/docs/content/1.docs/3.api/1.composables/use-app-config.md +++ b/docs/content/1.docs/3.api/1.composables/use-app-config.md @@ -10,4 +10,4 @@ const appConfig = useAppConfig() console.log(appConfig) ``` -::ReadMore{link="/guide/directory-structure/app.config"} +::ReadMore{link="/docs/guide/directory-structure/app.config"} diff --git a/docs/content/1.docs/3.api/1.composables/use-router.md b/docs/content/1.docs/3.api/1.composables/use-router.md index 9eab3028f6..df19a1e983 100644 --- a/docs/content/1.docs/3.api/1.composables/use-router.md +++ b/docs/content/1.docs/3.api/1.composables/use-router.md @@ -49,7 +49,7 @@ router.replace({ hash: "#bio" }); However, Nuxt has a concept of **route middleware** that simplifies the implementation of navigation guards and provides a better developer experience. -::ReadMore{link="/guide/directory-structure/middleware"} +::ReadMore{link="/docs/guide/directory-structure/middleware"} :: ## Promise and Error Handling diff --git a/docs/content/1.docs/3.api/2.components/2.nuxt-page.md b/docs/content/1.docs/3.api/2.components/2.nuxt-page.md index 95ec0234a3..93e0c5056a 100644 --- a/docs/content/1.docs/3.api/2.components/2.nuxt-page.md +++ b/docs/content/1.docs/3.api/2.components/2.nuxt-page.md @@ -56,5 +56,5 @@ In addition, `NuxtPage` also accepts custom props that you may need to pass furt For example, in above example, value of `foobar` will be available using `attrs.foobar`. -::ReadMore{link="/guide/directory-structure/app"} +::ReadMore{link="/docs/guide/directory-structure/app"} :: diff --git a/docs/content/1.docs/3.api/2.components/3.nuxt-layout.md b/docs/content/1.docs/3.api/2.components/3.nuxt-layout.md index 2532da6a73..f168f1048d 100644 --- a/docs/content/1.docs/3.api/2.components/3.nuxt-layout.md +++ b/docs/content/1.docs/3.api/2.components/3.nuxt-layout.md @@ -61,5 +61,5 @@ Please note the layout name is normalized to kebab-case, so if your layout file ``` -::ReadMore{link="/guide/directory-structure/layouts"} +::ReadMore{link="/docs/guide/directory-structure/layouts"} :: diff --git a/docs/content/1.docs/3.api/3.utils/define-page-meta.md b/docs/content/1.docs/3.api/3.utils/define-page-meta.md index 129c04c8f4..5ef5d16477 100644 --- a/docs/content/1.docs/3.api/3.utils/define-page-meta.md +++ b/docs/content/1.docs/3.api/3.utils/define-page-meta.md @@ -14,7 +14,7 @@ title: "definePageMeta" ``` -::ReadMore{link="/guide/directory-structure/pages/#page-metadata"} +::ReadMore{link="/docs/guide/directory-structure/pages/#page-metadata"} :: ## Type diff --git a/docs/content/1.docs/3.api/3.utils/navigate-to.md b/docs/content/1.docs/3.api/3.utils/navigate-to.md index c00fc6b8a8..390c5459a9 100644 --- a/docs/content/1.docs/3.api/3.utils/navigate-to.md +++ b/docs/content/1.docs/3.api/3.utils/navigate-to.md @@ -101,7 +101,7 @@ export default defineNuxtRouteMiddleware((to, from) => { }) ``` -::ReadMore{link="/guide/directory-structure/middleware"} +::ReadMore{link="/docs/guide/directory-structure/middleware"} :: ### Navigating to an External URL diff --git a/docs/content/1.docs/3.api/3.utils/update-app-config.md b/docs/content/1.docs/3.api/3.utils/update-app-config.md index ba8da49635..41bf57aac4 100644 --- a/docs/content/1.docs/3.api/3.utils/update-app-config.md +++ b/docs/content/1.docs/3.api/3.utils/update-app-config.md @@ -14,4 +14,4 @@ updateAppConfig(newAppConfig) console.log(appConfig) // { foo: 'baz' } ``` -::ReadMore{link="/guide/directory-structure/app.config"} +::ReadMore{link="/docs/guide/directory-structure/app.config"} diff --git a/docs/content/1.docs/4.examples/1.app/app-config.md b/docs/content/1.docs/4.examples/1.app/app-config.md index 374f381edf..fdcd4db31c 100644 --- a/docs/content/1.docs/4.examples/1.app/app-config.md +++ b/docs/content/1.docs/4.examples/1.app/app-config.md @@ -8,7 +8,7 @@ toc: false This example shows how to use `app.config` feature. -::ReadMore{link="/guide/features/app-config"} +::ReadMore{link="/docs/guide/features/app-config"} :: ::sandbox{repo="nuxt/framework" branch="main" dir="examples/app-config" file="app.vue"} diff --git a/docs/content/1.docs/4.examples/1.app/plugins.md b/docs/content/1.docs/4.examples/1.app/plugins.md index 33176a9701..7c6a98a931 100644 --- a/docs/content/1.docs/4.examples/1.app/plugins.md +++ b/docs/content/1.docs/4.examples/1.app/plugins.md @@ -6,7 +6,7 @@ toc: false This example shows how to use the plugins/ directory to auto-register plugins. -:ReadMore{link="/guide/directory-structure/plugins"} +:ReadMore{link="/docs/guide/directory-structure/plugins"} :: ::sandbox{repo="nuxt/framework" branch="main" dir="examples/app/plugins" file="app.vue"} diff --git a/docs/content/1.docs/4.examples/2.auto-imports/components.md b/docs/content/1.docs/4.examples/2.auto-imports/components.md index 991dcb6523..a08b56d1fe 100644 --- a/docs/content/1.docs/4.examples/2.auto-imports/components.md +++ b/docs/content/1.docs/4.examples/2.auto-imports/components.md @@ -6,7 +6,7 @@ toc: false Components in the `components/` directory are auto-imported and can be used directly in your templates. You can configure other directories to support components auto-imports. -::ReadMore{link="/guide/directory-structure/components"} +::ReadMore{link="/docs/guide/directory-structure/components"} :: ::sandbox{repo="nuxt/framework" branch="main" dir="examples/auto-imports/components" file="app.vue"} diff --git a/docs/content/1.docs/4.examples/2.auto-imports/composables.md b/docs/content/1.docs/4.examples/2.auto-imports/composables.md index a57a47bcdc..b1e067ae6f 100644 --- a/docs/content/1.docs/4.examples/2.auto-imports/composables.md +++ b/docs/content/1.docs/4.examples/2.auto-imports/composables.md @@ -8,7 +8,7 @@ This example shows how to use the composables/ directory to auto-import composab If the composable file provides a default export, the name of the composable will be mapped to the name of the file. Named exports can be used as-is. -::ReadMore{link="/guide/directory-structure/composables"} +::ReadMore{link="/docs/guide/directory-structure/composables"} :: ::sandbox{repo="nuxt/framework" branch="main" dir="examples/auto-imports/composables" file="app.vue"} diff --git a/docs/content/1.docs/4.examples/4.routing/layouts.md b/docs/content/1.docs/4.examples/4.routing/layouts.md index 9f072e4bc5..48c84f0b8b 100644 --- a/docs/content/1.docs/4.examples/4.routing/layouts.md +++ b/docs/content/1.docs/4.examples/4.routing/layouts.md @@ -6,7 +6,7 @@ toc: false This example shows how to define default and custom layouts. -::ReadMore{link="/guide/directory-structure/layouts"} +::ReadMore{link="/docs/guide/directory-structure/layouts"} :: ::sandbox{repo="nuxt/framework" branch="main" dir="examples/routing/layouts" file="pages/index.vue"} diff --git a/docs/content/1.docs/4.examples/4.routing/middleware.md b/docs/content/1.docs/4.examples/4.routing/middleware.md index 51365bca16..155219b203 100644 --- a/docs/content/1.docs/4.examples/4.routing/middleware.md +++ b/docs/content/1.docs/4.examples/4.routing/middleware.md @@ -6,7 +6,7 @@ toc: false This example shows how to add route middleware with the middleware/ directory or with a plugin, and how to use them globally or per page. -::ReadMore{link="/guide/directory-structure/middleware"} +::ReadMore{link="/docs/guide/directory-structure/middleware"} :: ::sandbox{repo="nuxt/framework" branch="main" dir="examples/routing/middleware" file="app.vue"} diff --git a/docs/content/1.docs/4.examples/4.routing/pages.md b/docs/content/1.docs/4.examples/4.routing/pages.md index f300a8c14c..c4e284b513 100644 --- a/docs/content/1.docs/4.examples/4.routing/pages.md +++ b/docs/content/1.docs/4.examples/4.routing/pages.md @@ -6,7 +6,7 @@ toc: false This example shows how to use the pages/ directory to create application routes. -::ReadMore{link="/guide/directory-structure/pages"} +::ReadMore{link="/docs/guide/directory-structure/pages"} :: ::sandbox{repo="nuxt/framework" branch="main" dir="examples/routing/pages" file="app.vue"} diff --git a/docs/content/1.docs/4.examples/5.server/routes.md b/docs/content/1.docs/4.examples/5.server/routes.md index 8666e02968..848d9db59f 100644 --- a/docs/content/1.docs/4.examples/5.server/routes.md +++ b/docs/content/1.docs/4.examples/5.server/routes.md @@ -6,7 +6,7 @@ toc: false This example shows how to create server routes inside the `server/api` directory. -::ReadMore{link="/guide/directory-structure/server"} +::ReadMore{link="/docs/guide/directory-structure/server"} :: ::sandbox{repo="nuxt/framework" branch="main" dir="examples/server/routes" file="app.vue"} diff --git a/docs/scripts/nuxt-config.md b/docs/scripts/nuxt-config.md index 59ea81953c..1a4f799962 100644 --- a/docs/scripts/nuxt-config.md +++ b/docs/scripts/nuxt-config.md @@ -8,7 +8,7 @@ head.title: Nuxt Configuration Reference ::AutoGenerated :: -::ReadMore{link="/guide/directory-structure/nuxt.config"} +::ReadMore{link="/docs/guide/directory-structure/nuxt.config"} ::