From 9b25b250ea31aeeb7e935a6ba332621fc21487f2 Mon Sep 17 00:00:00 2001 From: Lev Chelyadinov Date: Sat, 19 Oct 2024 10:58:31 +0200 Subject: [PATCH] fix: fix typos in the SvelteKit guides (#737) --- .../current/guides/tech/with-nuxtjs.mdx | 8 ++++---- .../current/guides/tech/with-sveltekit.mdx | 12 ++++++------ .../current/guides/tech/with-sveltekit.mdx | 6 +++--- 3 files changed, 13 insertions(+), 13 deletions(-) diff --git a/i18n/en/docusaurus-plugin-content-docs/current/guides/tech/with-nuxtjs.mdx b/i18n/en/docusaurus-plugin-content-docs/current/guides/tech/with-nuxtjs.mdx index 08855b686..929bdcaf5 100644 --- a/i18n/en/docusaurus-plugin-content-docs/current/guides/tech/with-nuxtjs.mdx +++ b/i18n/en/docusaurus-plugin-content-docs/current/guides/tech/with-nuxtjs.mdx @@ -66,7 +66,7 @@ Thus, the file structure will look like this: │ │ │ │ ├── home-page.vue │ │ │ ├── index.ts ``` -Finally, let's add a root to the config: +Finally, let's add a route to the config: ```ts title="app/router.config.ts" import type { RouterConfig } from '@nuxt/schema' @@ -111,8 +111,8 @@ Now, you can create routes for pages within `app` and connect pages from `pages` For example, to add a `Home` page to your project, you need to do the following steps: - Add a page slice inside the `pages` layer -- Add the corresponding root inside the `app` layer -- Align the page from the slice with the root +- Add the corresponding route inside the `app` layer +- Connect the page from the slice with the route To create a page slice, let's use the [CLI](https://github.com/feature-sliced/cli): @@ -126,7 +126,7 @@ Create a ``home-page.vue`` file inside the ui segment, access it using the Publi export { default as HomePage } from './ui/home-page'; ``` -Create a root for this page inside the `app` layer: +Create a route for this page inside the `app` layer: ```sh diff --git a/i18n/en/docusaurus-plugin-content-docs/current/guides/tech/with-sveltekit.mdx b/i18n/en/docusaurus-plugin-content-docs/current/guides/tech/with-sveltekit.mdx index 08c81813d..886b2381e 100644 --- a/i18n/en/docusaurus-plugin-content-docs/current/guides/tech/with-sveltekit.mdx +++ b/i18n/en/docusaurus-plugin-content-docs/current/guides/tech/with-sveltekit.mdx @@ -44,10 +44,10 @@ Thus, your file structure should look like this: │ ├── app │ │ ├── index.html │ │ ├── routes -│ ├── pages # Папка pages, закреплённая за FSD +│ ├── pages # FSD Pages folder ``` -Now, you can create roots for pages within `app` and connect pages from `pages` to them. +Now, you can create routes for pages within `app` and connect pages from `pages` to them. For example, to add a home page to your project, you need to do the following steps: - Add a page slice inside the `pages` layer @@ -60,13 +60,13 @@ To create a page slice, let's use the [CLI](https://github.com/feature-sliced/cl fsd pages home ``` -Create a ``home-page.vue`` file inside the ui segment, access it using the Public API +Create a ``home-page.svelte`` file inside the ui segment, access it using the Public API ```ts title="src/pages/home/index.ts" -export { default as HomePage } from './ui/home-page'; +export { default as HomePage } from './ui/home-page.svelte'; ``` -Create a root for this page inside the `app` layer: +Create a route for this page inside the `app` layer: ```sh @@ -82,7 +82,7 @@ Create a root for this page inside the `app` layer: │ │ │ ├── index.ts ``` -Add your page component inside the `index.svelte` file: +Add your page component inside the `+page.svelte` file: ```html title="src/app/routes/+page.svelte"