Skip to content

Commit 1b79e12

Browse files
authored
fix: change file routing in the Nuxt guide (#683)
1 parent 2c291ac commit 1b79e12

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

β€Ži18n/en/docusaurus-plugin-content-docs/current/guides/tech/with-nuxtjs.mdxβ€Ž

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -73,8 +73,7 @@ Create a root for this page inside the `app` layer:
7373
β”œβ”€β”€ src
7474
β”‚ β”œβ”€β”€ app
7575
β”‚ β”‚ β”œβ”€β”€ routes
76-
β”‚ β”‚ β”‚ β”œβ”€β”€ home
77-
β”‚ β”‚ β”‚ β”‚ β”œβ”€β”€ index.vue
76+
β”‚ β”‚ β”‚ β”œβ”€β”€ index.vue
7877
β”‚ β”œβ”€β”€ pages
7978
β”‚ β”‚ β”œβ”€β”€ home
8079
β”‚ β”‚ β”‚ β”œβ”€β”€ ui
@@ -84,7 +83,7 @@ Create a root for this page inside the `app` layer:
8483

8584
Add your page component inside the `index.vue` file:
8685

87-
```html title="pages/home/ui/home-page.vue"
86+
```html title="src/app/routes/index.vue"
8887
<script setup>
8988
import { HomePage } from '@/pages/home';
9089
</script>

β€Ži18n/ru/docusaurus-plugin-content-docs/current/guides/tech/with-nuxtjs.mdxβ€Ž

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -72,8 +72,7 @@ export { default as HomePage } from './ui/home-page';
7272
β”œβ”€β”€ src
7373
β”‚ β”œβ”€β”€ app
7474
β”‚ β”‚ β”œβ”€β”€ routes
75-
β”‚ β”‚ β”‚ β”œβ”€β”€ home
76-
β”‚ β”‚ β”‚ β”‚ β”œβ”€β”€ index.vue
75+
β”‚ β”‚ β”‚ β”œβ”€β”€ index.vue
7776
β”‚ β”œβ”€β”€ pages
7877
β”‚ β”‚ β”œβ”€β”€ home
7978
β”‚ β”‚ β”‚ β”œβ”€β”€ ui
@@ -83,7 +82,7 @@ export { default as HomePage } from './ui/home-page';
8382

8483
Π”ΠΎΠ±Π°Π²ΡŒΡ‚Π΅ Π²Π½ΡƒΡ‚Ρ€ΡŒ `index.vue` Ρ„Π°ΠΉΠ»Π° ΠΊΠΎΠΌΠΏΠΎΠ½Π΅Π½Ρ‚ вашСй страницы:
8584

86-
```html title="pages/home/ui/home-page.vue"
85+
```html title="src/app/routes/index.vue"
8786
<script setup>
8887
import { HomePage } from '@/pages/home';
8988
</script>

0 commit comments

Comments
Β (0)