Skip to content

Commit b68ece7

Browse files
authored
feat: rewrite and complete the migration guide from custom arch (#725)
1 parent faa602a commit b68ece7

File tree

14 files changed

+1458
-831
lines changed

14 files changed

+1458
-831
lines changed

config/docusaurus/routes.js

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ const SECTIONS = {
1010
},
1111
MIGRATION: {
1212
shortPath: "/docs/guides/migration",
13-
fullPath: "/docs/guides/migration/from-legacy",
13+
fullPath: "/docs/guides/migration/from-custom",
1414
},
1515
};
1616

@@ -249,7 +249,7 @@ const LEGACY_ROUTES = [
249249
{
250250
title: "Migration from Legacy",
251251
from: "/docs/guides/migration-from-legacy",
252-
to: "/docs/guides/migration/from-legacy",
252+
to: "/docs/guides/migration/from-custom",
253253
},
254254
],
255255
},
@@ -264,6 +264,18 @@ const LEGACY_ROUTES = [
264264
},
265265
],
266266
},
267+
{
268+
group: "Rename 'legacy' to 'custom'",
269+
details:
270+
"'Legacy' is derogatory, we don't get to call people's projects legacy",
271+
children: [
272+
{
273+
title: "Rename 'legacy' to custom",
274+
from: "/docs/guides/migration/from-legacy",
275+
to: "/docs/guides/migration/from-custom",
276+
},
277+
],
278+
},
267279
];
268280

269281
// @returns { from, to }[]
@@ -314,7 +326,7 @@ const _TOTAL_ROUTES = [
314326
"/docs/guides/examples/theme",
315327
"/docs/guides/examples/types",
316328
"/docs/guides/examples/white-labels",
317-
"/docs/guides/migration/from-legacy",
329+
"/docs/guides/migration/from-custom",
318330
"/docs/guides/migration/from-v1",
319331
"/docs/guides/tech/with-nextjs",
320332
"/docs/",

i18n/en/docusaurus-plugin-content-docs/current/get-started/overview.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ It's advised to refrain from adding new large entities while refactoring or refa
131131

132132
[tutorial]: /docs/get-started/tutorial
133133
[examples]: /examples
134-
[migration]: /docs/guides/migration/from-legacy
134+
[migration]: /docs/guides/migration/from-custom
135135
[ext-steiger]: https://github.com/feature-sliced/steiger
136136
[ext-tools]: https://github.com/feature-sliced/awesome?tab=readme-ov-file#tools
137137
[ext-telegram]: https://t.me/feature_sliced

i18n/en/docusaurus-plugin-content-docs/current/guides/index.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,10 @@ import { ToolOutlined, ImportOutlined, BugOutlined, FunctionOutlined } from "@an
2525
/>
2626
<NavCard
2727
title="Migration"
28-
description="Migration guides for legacy projects"
28+
description="Migration guides from other architectures"
2929
to="/docs/guides/migration/from-v1"
3030
Icon={ImportOutlined}
31-
tags={['From legacy', 'From FSv1']}
31+
tags={['From custom architecture', 'From FSv1']}
3232
/>
3333
<NavCard
3434
title="Tech"

i18n/en/docusaurus-plugin-content-docs/current/guides/migration/from-custom.md

Lines changed: 313 additions & 0 deletions
Large diffs are not rendered by default.

i18n/en/docusaurus-plugin-content-docs/current/guides/migration/from-legacy.mdx

Lines changed: 0 additions & 120 deletions
This file was deleted.

i18n/kr/docusaurus-plugin-content-docs/current/get-started/overview.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ FSD로 마이그레이션하고자 하는 기존 코드베이스가 있다면,
130130

131131
[tutorial]: /docs/get-started/tutorial
132132
[examples]: /examples
133-
[migration]: /docs/guides/migration/from-legacy
133+
[migration]: /docs/guides/migration/from-custom
134134
[ext-steiger]: https://github.com/feature-sliced/steiger
135135
[ext-tools]: https://github.com/feature-sliced/awesome?tab=readme-ov-file#tools
136136
[ext-telegram]: https://t.me/feature_sliced

i18n/ru/docusaurus-plugin-content-docs/current/get-started/overview.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ _\* — эти слои, App и Shared, в отличие от других сл
131131

132132
[tutorial]: /docs/get-started/tutorial
133133
[examples]: /examples
134-
[migration]: /docs/guides/migration/from-legacy
134+
[migration]: /docs/guides/migration/from-custom
135135
[ext-steiger]: https://github.com/feature-sliced/steiger
136136
[ext-tools]: https://github.com/feature-sliced/awesome?tab=readme-ov-file#tools
137137
[ext-telegram]: https://t.me/feature_sliced

i18n/ru/docusaurus-plugin-content-docs/current/guides/index.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,10 @@ import { ToolOutlined, ImportOutlined, BugOutlined, FunctionOutlined } from "@an
2525
/>
2626
<NavCard
2727
title="Миграция"
28-
description="Гайды по миграции с легаси проектов"
28+
description="Гайды по миграции с других архитектур"
2929
to="/docs/guides/migration/from-v1"
3030
Icon={ImportOutlined}
31-
tags={['Легаси', 'FSv1']}
31+
tags={['Кастомная архитектура', 'FSv1']}
3232
/>
3333
<NavCard
3434
title="Технологии"

0 commit comments

Comments
 (0)