Skip to content

Commit

Permalink
docs: fix broken links in examples (nuxt#9119)
Browse files Browse the repository at this point in the history
  • Loading branch information
atinux authored Nov 17, 2022
1 parent 5a3e3a5 commit 6672868
Show file tree
Hide file tree
Showing 20 changed files with 20 additions and 20 deletions.
2 changes: 1 addition & 1 deletion docs/content/1.docs/1.getting-started/3.configuration.md
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ const appConfig = useAppConfig()
</script>
```

:ReadMore{link="/guide/directory-structure/app.config"}
:ReadMore{link="/docs/guide/directory-structure/app.config"}

## `runtimeConfig` vs `app.config`

Expand Down
2 changes: 1 addition & 1 deletion docs/content/1.docs/1.getting-started/5.routing.md
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ definePageMeta({

::

:ReadMore{link="/guide/directory-structure/middleware"}
:ReadMore{link="/docs/guide/directory-structure/middleware"}

## Route Validation

Expand Down
2 changes: 1 addition & 1 deletion docs/content/1.docs/1.getting-started/5.seo-meta.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -310,4 +310,4 @@ Create a new file in `app.vue`:
</script>
```

::ReadMore{link="/guide/directory-structure/server"}
::ReadMore{link="/docs/guide/directory-structure/server"}
2 changes: 1 addition & 1 deletion docs/content/1.docs/3.api/1.composables/use-app-config.md
Original file line number Diff line number Diff line change
Expand Up @@ -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"}
2 changes: 1 addition & 1 deletion docs/content/1.docs/3.api/1.composables/use-router.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion docs/content/1.docs/3.api/2.components/2.nuxt-page.md
Original file line number Diff line number Diff line change
Expand Up @@ -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"}
::
2 changes: 1 addition & 1 deletion docs/content/1.docs/3.api/2.components/3.nuxt-layout.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,5 +61,5 @@ Please note the layout name is normalized to kebab-case, so if your layout file
</template>
```

::ReadMore{link="/guide/directory-structure/layouts"}
::ReadMore{link="/docs/guide/directory-structure/layouts"}
::
2 changes: 1 addition & 1 deletion docs/content/1.docs/3.api/3.utils/define-page-meta.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ title: "definePageMeta"
</script>
```

::ReadMore{link="/guide/directory-structure/pages/#page-metadata"}
::ReadMore{link="/docs/guide/directory-structure/pages/#page-metadata"}
::

## Type
Expand Down
2 changes: 1 addition & 1 deletion docs/content/1.docs/3.api/3.utils/navigate-to.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion docs/content/1.docs/3.api/3.utils/update-app-config.md
Original file line number Diff line number Diff line change
Expand Up @@ -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"}
2 changes: 1 addition & 1 deletion docs/content/1.docs/4.examples/1.app/app-config.md
Original file line number Diff line number Diff line change
Expand Up @@ -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"}
2 changes: 1 addition & 1 deletion docs/content/1.docs/4.examples/1.app/plugins.md
Original file line number Diff line number Diff line change
Expand Up @@ -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"}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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"}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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"}
Expand Down
2 changes: 1 addition & 1 deletion docs/content/1.docs/4.examples/4.routing/layouts.md
Original file line number Diff line number Diff line change
Expand Up @@ -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"}
Expand Down
2 changes: 1 addition & 1 deletion docs/content/1.docs/4.examples/4.routing/middleware.md
Original file line number Diff line number Diff line change
Expand Up @@ -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"}
Expand Down
2 changes: 1 addition & 1 deletion docs/content/1.docs/4.examples/4.routing/pages.md
Original file line number Diff line number Diff line change
Expand Up @@ -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"}
Expand Down
2 changes: 1 addition & 1 deletion docs/content/1.docs/4.examples/5.server/routes.md
Original file line number Diff line number Diff line change
Expand Up @@ -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"}
Expand Down
2 changes: 1 addition & 1 deletion docs/scripts/nuxt-config.md
Original file line number Diff line number Diff line change
Expand Up @@ -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"}
::

<!-- GENERATED_CONFIG_DOCS -->
Expand Down

0 comments on commit 6672868

Please sign in to comment.