Skip to content

🎥 Make videos programmatically with React

Docs: Rename reusable components guide to Composing components

JonnyBurger27cd7168d973
diff --git a/packages/docs/docs/sequences.mdx b/packages/docs/docs/composing.mdx
similarity index 98%
rename from packages/docs/docs/sequences.mdx
rename to packages/docs/docs/composing.mdx
index 1c1537b369..71dfcbe817 100644
--- a/packages/docs/docs/sequences.mdx
+++ b/packages/docs/docs/composing.mdx
@@ -1,8 +1,8 @@
---
-image: /generated/articles-docs-sequences.png
-id: reusability
-title: Making components reusable
-sidebar_label: Reuse components
+image: /generated/articles-docs-composing.png
+id: composing
+slug: /composing
+title: Composing components
crumb: 'The power of React'
---
diff --git a/packages/docs/docs/create-videos-with-code.mdx b/packages/docs/docs/create-videos-with-code.mdx
index e827cca90b..a33467bf5f 100644
--- a/packages/docs/docs/create-videos-with-code.mdx
+++ b/packages/docs/docs/create-videos-with-code.mdx
@@ -25,7 +25,7 @@ By learning how Remotion markup works, you can do more sophisticated videos, opt
<TOCItem link="/docs/animating-properties">
<strong>Animating properties</strong>
</TOCItem>
- <TOCItem link="/docs/reusability">
- <strong>Reuse components</strong>
+ <TOCItem link="/docs/composing">
+ <strong>Composing components</strong>
</TOCItem>
</Grid>
diff --git a/packages/docs/docs/miscellaneous/snippets/combine-compositions.mdx b/packages/docs/docs/miscellaneous/snippets/combine-compositions.mdx
index 03be63a4b1..f4ce8f8a16 100644
--- a/packages/docs/docs/miscellaneous/snippets/combine-compositions.mdx
+++ b/packages/docs/docs/miscellaneous/snippets/combine-compositions.mdx
@@ -176,4 +176,4 @@ As more scenes are added, consider:
- [`<Series>` component](/docs/series)
- [`<TransitionSeries>` component](/docs/transitions/transitionseries)
-- [Making components reusable](/docs/reusability)
+- [Composing components](/docs/composing)
diff --git a/packages/docs/docs/sequence.mdx b/packages/docs/docs/sequence.mdx
index 63a34b1556..ddee306202 100644
--- a/packages/docs/docs/sequence.mdx
+++ b/packages/docs/docs/sequence.mdx
@@ -374,6 +374,6 @@ Example: `<Sequence layout="none">`.
## See also
- [Source code for this component](https://github.com/remotion-dev/remotion/blob/main/packages/core/src/Sequence.tsx)
-- [Reuse components using Sequences](/docs/reusability)
+- [Composing components](/docs/composing)
- [`<Composition />`](/docs/composition)
- [`<Series />`](/docs/series)
diff --git a/packages/docs/sidebars.ts b/packages/docs/sidebars.ts
index 78f93f1f99..aa3c07c007 100644
--- a/packages/docs/sidebars.ts
+++ b/packages/docs/sidebars.ts
@@ -1200,7 +1200,7 @@ const sidebars: SidebarsConfig = {
'components',
'timing',
'animating-properties',
- 'reusability',
+ 'composing',
],
},
{
diff --git a/packages/docs/src/data/articles.ts b/packages/docs/src/data/articles.ts
index ab090c20ee..a6549c8e63 100644
--- a/packages/docs/src/data/articles.ts
+++ b/packages/docs/src/data/articles.ts
@@ -7887,13 +7887,13 @@ export const articles = [
slug: 'sequence',
},
{
- id: 'reusability',
- title: 'Making components reusable',
- relativePath: 'docs/sequences.mdx',
- compId: 'articles-docs-sequences',
+ id: 'composing',
+ title: 'Composing components',
+ relativePath: 'docs/composing.mdx',
+ compId: 'articles-docs-composing',
crumb: 'The power of React',
noAi: false,
- slug: 'reusability',
+ slug: 'composing',
},
{
id: 'series',
diff --git a/packages/docs/static/generated/articles-docs-composing.png b/packages/docs/static/generated/articles-docs-composing.png
new file mode 100644
index 0000000000..bf47fa00a0
Binary files /dev/null and b/packages/docs/static/generated/articles-docs-composing.png differ
diff --git a/packages/docs/static/generated/articles-docs-sequences.png b/packages/docs/static/generated/articles-docs-sequences.png
deleted file mode 100644
index 7f322228fc..0000000000
Binary files a/packages/docs/static/generated/articles-docs-sequences.png and /dev/null differ
diff --git a/packages/docs/vercel.ts b/packages/docs/vercel.ts
index b3dd5a7f53..1c77a6b235 100644
--- a/packages/docs/vercel.ts
+++ b/packages/docs/vercel.ts
@@ -65,6 +65,12 @@ export const config: VercelConfig = {
]),
],
redirects: [
+ routes.redirect('/docs/reusability', '/docs/composing', {
+ permanent: true,
+ }),
+ routes.redirect('/docs/reusability.md', '/docs/composing.md', {
+ permanent: true,
+ }),
routes.redirect('/docs/the-fundamentals', '/docs/idea', {
permanent: true,
}),