🎥 Make videos programmatically with React
Docs: Move The core idea to /docs/idea
JonnyBurger78b2efc12817
diff --git a/packages/docs/docs/composition.mdx b/packages/docs/docs/composition.mdxindex 03d2f7d0b7..fb6b94d82f 100644--- a/packages/docs/docs/composition.mdx+++ b/packages/docs/docs/composition.mdx@@ -156,7 +156,7 @@ export const RemotionRoot = () => {- [Source code for this component](https://github.com/remotion-dev/remotion/blob/main/packages/core/src/Composition.tsx)- [`registerRoot()`](/docs/register-root)-- [The core idea](/docs/the-fundamentals)+- [The core idea](/docs/idea)- [CLI options](/docs/cli)- [`<Sequence />`](/docs/sequence)- [`<Still />`](/docs/still)diff --git a/packages/docs/docs/create-videos-with-code.mdx b/packages/docs/docs/create-videos-with-code.mdxindex a34240e826..faddb385b7 100644--- a/packages/docs/docs/create-videos-with-code.mdx+++ b/packages/docs/docs/create-videos-with-code.mdx@@ -12,7 +12,7 @@ How did people create videos back then? They wrote code themselves!By learning how Remotion markup works, you can do more sophisticated videos, optimize performance, make and publish your own components, connect data and become ready to build apps.<Grid>- <TOCItem link="/docs/the-fundamentals">+ <TOCItem link="/docs/idea"><strong>The core idea</strong></TOCItem><TOCItem link="/docs/timing">diff --git a/packages/docs/docs/the-fundamentals.mdx b/packages/docs/docs/idea.mdxsimilarity index 97%rename from packages/docs/docs/the-fundamentals.mdxrename to packages/docs/docs/idea.mdxindex 2ef005099e..f1846eb013 100644--- a/packages/docs/docs/the-fundamentals.mdx+++ b/packages/docs/docs/idea.mdx@@ -1,6 +1,7 @@----image: /generated/articles-docs-the-fundamentals.png-id: the-fundamentals+image: /generated/articles-docs-idea.png+id: idea+slug: /ideatitle: The core ideacrumb: Getting started---diff --git a/packages/docs/docs/passing-props.mdx b/packages/docs/docs/passing-props.mdxindex b8a38a96e5..e9d253453b 100644--- a/packages/docs/docs/passing-props.mdx+++ b/packages/docs/docs/passing-props.mdx@@ -189,7 +189,7 @@ const ChainedScenes = () => {};```-You may then register this "Master" component as an additional [`<Composition>`](/docs/the-fundamentals#compositions).+You may then register this "Master" component as an additional [`<Composition>`](/docs/idea#compositions).## See alsodiff --git a/packages/docs/docs/register-root.mdx b/packages/docs/docs/register-root.mdxindex d872b61e13..0f03ec29a9 100644--- a/packages/docs/docs/register-root.mdx+++ b/packages/docs/docs/register-root.mdx@@ -77,4 +77,4 @@ loadWebAssembly().then(() => {- [Source code for this function](https://github.com/remotion-dev/remotion/blob/main/packages/core/src/register-root.ts)- [`<Composition />` component](/docs/composition)-- [The core idea](/docs/the-fundamentals)+- [The core idea](/docs/idea)diff --git a/packages/docs/docs/terminology/composition.mdx b/packages/docs/docs/terminology/composition.mdxindex 5065e612d5..8e5ef11add 100644--- a/packages/docs/docs/terminology/composition.mdx+++ b/packages/docs/docs/terminology/composition.mdx@@ -26,4 +26,4 @@ You need the composition ID to reference what you would like to render, for exam## See-- [Defining compositions](/docs/the-fundamentals#compositions)+- [Defining compositions](/docs/idea#compositions)diff --git a/packages/docs/docs/use-current-frame.mdx b/packages/docs/docs/use-current-frame.mdxindex bf387f705b..ab28c40c86 100644--- a/packages/docs/docs/use-current-frame.mdx+++ b/packages/docs/docs/use-current-frame.mdx@@ -5,7 +5,7 @@ id: use-current-framecrumb: 'API'----With this hook, you can retrieve the current frame of the video. Frames are 0-indexed, meaning the first frame is `0`, the last frame is the duration of the composition in frames minus one. To learn more about how Remotion works with time, read the page about [the core idea](/docs/the-fundamentals).+With this hook, you can retrieve the current frame of the video. Frames are 0-indexed, meaning the first frame is `0`, the last frame is the duration of the composition in frames minus one. To learn more about how Remotion works with time, read the page about [the core idea](/docs/idea).If the component you are writing is inside a component with a [`from`](/docs/sequence#from) prop, `useCurrentFrame()` will return the frame relative to when the parent starts.diff --git a/packages/docs/docs/use-video-config.mdx b/packages/docs/docs/use-video-config.mdxindex c5ede04ec2..e4a0b9619b 100644--- a/packages/docs/docs/use-video-config.mdx+++ b/packages/docs/docs/use-video-config.mdx@@ -68,7 +68,7 @@ The default codec that is used for rendering this composition. Use [`calculateMeThe default [audio sample rate](/docs/sample-rate) that is used for rendering this composition. Use [`calculateMetadata()`](/docs/calculate-metadata) to modify it.-These properties are controlled by passing them as props to [`<Composition>`](/docs/composition). Read the page about [the core idea](/docs/the-fundamentals) to read how to setup a Remotion project.+These properties are controlled by passing them as props to [`<Composition>`](/docs/composition). Read the page about [the core idea](/docs/idea) to read how to setup a Remotion project.## Compatibilitydiff --git a/packages/docs/sidebars.ts b/packages/docs/sidebars.tsindex e72857f956..0ea0d7635b 100644--- a/packages/docs/sidebars.ts+++ b/packages/docs/sidebars.ts@@ -1200,12 +1200,7 @@ const sidebars: SidebarsConfig = {type: 'category',label: 'Create videos with code',link: {type: 'doc', id: 'create-videos-with-code'},- items: [- 'the-fundamentals',- 'timing',- 'animating-properties',- 'reusability',- ],+ items: ['idea', 'timing', 'animating-properties', 'reusability'],},{type: 'category',diff --git a/packages/docs/src/data/articles.ts b/packages/docs/src/data/articles.tsindex b38c02131b..493d4556b2 100644--- a/packages/docs/src/data/articles.ts+++ b/packages/docs/src/data/articles.ts@@ -4491,6 +4491,15 @@ export const articles = [noAi: false,slug: 'html5-video',},+ {+ id: 'idea',+ title: 'The core idea',+ relativePath: 'docs/idea.mdx',+ compId: 'articles-docs-idea',+ crumb: 'Getting started',+ noAi: false,+ slug: 'idea',+ },{id: 'iframe',title: '<IFrame>',@@ -9193,15 +9202,6 @@ export const articles = [noAi: false,slug: 'text-highlights',},- {- id: 'the-fundamentals',- title: 'The core idea',- relativePath: 'docs/the-fundamentals.mdx',- compId: 'articles-docs-the-fundamentals',- crumb: 'Getting started',- noAi: false,- slug: 'the-fundamentals',- },{id: 'third-party',title: 'Third party integrations',diff --git a/packages/docs/static/generated/articles-docs-the-fundamentals.png b/packages/docs/static/generated/articles-docs-idea.pngsimilarity index 100%rename from packages/docs/static/generated/articles-docs-the-fundamentals.pngrename to packages/docs/static/generated/articles-docs-idea.pngdiff --git a/packages/docs/static/llms.txt b/packages/docs/static/llms.txtindex bac71ac721..c3007b1406 100644--- a/packages/docs/static/llms.txt+++ b/packages/docs/static/llms.txt@@ -7,7 +7,7 @@ This is a guide to the main documentation topics. Fetch the linked Markdown page## Getting started- [Creating a new project](https://www.remotion.dev/docs/index.md)-- [The core idea](https://www.remotion.dev/docs/the-fundamentals.md)+- [The core idea](https://www.remotion.dev/docs/idea.md)- [API overview](https://www.remotion.dev/docs/api.md)## Creating videosdiff --git a/packages/docs/vercel.ts b/packages/docs/vercel.tsindex 14e3952492..b3dd5a7f53 100644--- a/packages/docs/vercel.ts+++ b/packages/docs/vercel.ts@@ -65,6 +65,12 @@ export const config: VercelConfig = {]),],redirects: [+ routes.redirect('/docs/the-fundamentals', '/docs/idea', {+ permanent: true,+ }),+ routes.redirect('/docs/the-fundamentals.md', '/docs/idea.md', {+ permanent: true,+ }),routes.redirect('/docs/preview', '/docs/your-first-video', {permanent: true,}),