🎥 Make videos programmatically with React
[docs]: refactor TableOfContents component locations and imports
copilot-swe-agent[bot]23ec55094a8c
diff --git a/packages/docs/components/TableOfContents/LayoutUtils.tsx b/packages/docs/components/TableOfContents/LayoutUtils.tsxdeleted file mode 100644index 0064e2f026..0000000000--- a/packages/docs/components/TableOfContents/LayoutUtils.tsx+++ /dev/null@@ -1,28 +0,0 @@-import React from "react";-import { Grid } from "./Grid";-import { TOCItem } from "./TOCItem";--export const TableOfContents: React.FC = () => {- return (- <div>- <Grid>- <TOCItem link="/docs/layout-utils/measure-text">- <strong>measureText()</strong>- <div>Get dimensions of text</div>- </TOCItem>- <TOCItem link="/docs/layout-utils/fill-text-box">- <strong>fillTextBox()</strong>- <div>Find line breaks and overflows in a text box</div>- </TOCItem>- <TOCItem link="/docs/layout-utils/fit-text">- <strong>fitText()</strong>- <div>Get font size to fit text in a box</div>- </TOCItem>- <TOCItem link="/docs/layout-utils/fit-text-on-n-lines">- <strong>fitTextOnNLines()</strong>- <div>Get font size to fit text on n lines</div>- </TOCItem>- </Grid>- </div>- );-};diff --git a/packages/docs/components/TableOfContents/animation-utils.tsx b/packages/docs/components/TableOfContents/animation-utils.tsxdeleted file mode 100644index 8d6082fbd1..0000000000--- a/packages/docs/components/TableOfContents/animation-utils.tsx+++ /dev/null@@ -1,24 +0,0 @@-import React from "react";-import { Grid } from "./Grid";-import { TOCItem } from "./TOCItem";--export const TableOfContents: React.FC = () => {- return (- <div>- <Grid>- <TOCItem link="/docs/animation-utils/make-transform">- <strong>makeTransform()</strong>- <div>- Create a value for the CSS <code>transform</code> property- </div>- </TOCItem>- <TOCItem link="/docs/animation-utils/interpolate-styles">- <strong>interpolateStyles()</strong>- <div>- Map a range of values to CSS <code>style</code> values- </div>- </TOCItem>- </Grid>- </div>- );-};diff --git a/packages/docs/components/TableOfContents/bundler.tsx b/packages/docs/components/TableOfContents/bundler.tsxdeleted file mode 100644index 197d91b053..0000000000--- a/packages/docs/components/TableOfContents/bundler.tsx+++ /dev/null@@ -1,16 +0,0 @@-import React from "react";-import { Grid } from "./Grid";-import { TOCItem } from "./TOCItem";--export const TableOfContents: React.FC = () => {- return (- <div>- <Grid>- <TOCItem link="/docs/bundle">- <strong>{"bundle()"}</strong>- <div>Create a Webpack bundle</div>- </TOCItem>- </Grid>- </div>- );-};diff --git a/packages/docs/components/TableOfContents/cli.tsx b/packages/docs/components/TableOfContents/cli.tsxdeleted file mode 100644index c7f462170e..0000000000--- a/packages/docs/components/TableOfContents/cli.tsx+++ /dev/null@@ -1,76 +0,0 @@-import React from "react";-import { Grid } from "./Grid";-import { TOCItem } from "./TOCItem";--export const TableOfContents: React.FC = () => {- return (- <div>- <Grid>- <TOCItem link="/docs/cli/studio">- <strong>studio</strong>- <div>Start the Remotion Studio</div>- </TOCItem>- <TOCItem link="/docs/cli/render">- <strong>render</strong>- <div>Render video or audio</div>- </TOCItem>- <TOCItem link="/docs/cli/still">- <strong>still</strong>- <div>Render a still image</div>- </TOCItem>- <TOCItem link="/docs/cli/compositions">- <strong>compositions</strong>- <div>List available compositions</div>- </TOCItem>- <TOCItem link="/docs/lambda/cli">- <strong>lambda</strong>- <div>Control Remotion Lambda</div>- </TOCItem>- <TOCItem link="/docs/cli/bundle">- <strong>bundle</strong>- <div>Create a Remotion Bundle</div>- </TOCItem>- <TOCItem link="/docs/cli/browser">- <strong>browser</strong>- <div>Ensure Remotion has a browser to use</div>- </TOCItem>- <TOCItem link="/docs/cloudrun/cli">- <strong>cloudrun</strong>- <div>Control Remotion Cloud Run</div>- </TOCItem>- <TOCItem link="/docs/cli/benchmark">- <strong>benchmark</strong>- <div>Measure and optimize render time</div>- </TOCItem>- <TOCItem link="/docs/cli/versions">- <strong>versions</strong>- <div>List and validate Remotion package versions</div>- </TOCItem>- <TOCItem link="/docs/cli/upgrade">- <strong>upgrade</strong>- <div>Upgrade to a newer version</div>- </TOCItem>- <TOCItem link="/docs/cli/gpu">- <strong>gpu</strong>- <div>Print information about {"Chrome's"} usage of the GPU</div>- </TOCItem>- <TOCItem link="/docs/cli/ffmpeg">- <strong>ffmpeg</strong>- <div>- Execute an <code>ffmpeg</code> command- </div>- </TOCItem>- <TOCItem link="/docs/cli/ffprobe">- <strong>ffprobe</strong>- <div>- Execute an <code>ffprobe</code> command- </div>- </TOCItem>- <TOCItem link="/docs/cli/help">- <strong>help</strong>- <div>Show CLI commands</div>- </TOCItem>- </Grid>- </div>- );-};diff --git a/packages/docs/components/TableOfContents/cli/browser.tsx b/packages/docs/components/TableOfContents/cli/browser.tsxdeleted file mode 100644index 173b36d514..0000000000--- a/packages/docs/components/TableOfContents/cli/browser.tsx+++ /dev/null@@ -1,16 +0,0 @@-import React from "react";-import { Grid } from "../Grid";-import { TOCItem } from "../TOCItem";--export const TableOfContents: React.FC = () => {- return (- <div>- <Grid>- <TOCItem link="/docs/cli/browser/ensure">- <strong>browser ensure</strong>- <div>Ensure Remotion has a browser to render</div>- </TOCItem>- </Grid>- </div>- );-};diff --git a/packages/docs/components/TableOfContents/cloudrun.tsx b/packages/docs/components/TableOfContents/cloudrun.tsxdeleted file mode 100644index 00e8049a3c..0000000000--- a/packages/docs/components/TableOfContents/cloudrun.tsx+++ /dev/null@@ -1,64 +0,0 @@-import React from "react";-import { Grid } from "./Grid";-import { TOCItem } from "./TOCItem";--export const TableOfContents: React.FC = () => {- return (- <div>- <Grid>- <TOCItem link="/docs/cloudrun/getserviceinfo">- <strong>getServiceInfo()</strong>- <div>Gets information about a service</div>- </TOCItem>- <TOCItem link="/docs/cloudrun/deployservice">- <strong>deployService()</strong>- <div>Create a new service in GCP Cloud Run</div>- </TOCItem>- <TOCItem link="/docs/cloudrun/deleteservice">- <strong>deleteService()</strong>- <div>Delete a service in GCP Cloud Run</div>- </TOCItem>- <TOCItem link="/docs/cloudrun/getservices">- <strong>getServices()</strong>- <div>Lists available Remotion Cloud Run services</div>- </TOCItem>- <TOCItem link="/docs/cloudrun/speculateservicename">- <strong>speculateServiceName()</strong>- <div>Speculate a service name based on its configuration</div>- </TOCItem>- <TOCItem link="/docs/cloudrun/getregions">- <strong>getRegions()</strong>- <div>Get all available regions</div>- </TOCItem>- <TOCItem link="/docs/cloudrun/deploysite">- <strong>deploySite()</strong>- <div>Bundle and upload a site to Cloud Storage</div>- </TOCItem>- <TOCItem link="/docs/cloudrun/deletesite">- <strong>deleteSite()</strong>- <div>Delete a bundle from Cloud Storage</div>- </TOCItem>- <TOCItem link="/docs/cloudrun/getsites">- <strong>getSites()</strong>- <div>Get all available sites from Cloud Storage</div>- </TOCItem>- <TOCItem link="/docs/cloudrun/getorcreatebucket">- <strong>getOrCreateBucket()</strong>- <div>Ensure a Remotion Cloud Storage bucket exists</div>- </TOCItem>- <TOCItem link="/docs/cloudrun/rendermediaoncloudrun">- <strong>renderMediaOnCloudrun()</strong>- <div>Trigger a video or audio render</div>- </TOCItem>- <TOCItem link="/docs/cloudrun/renderstilloncloudrun">- <strong>renderStillOnCloudrun()</strong>- <div>Trigger a still render</div>- </TOCItem>- <TOCItem link="/docs/cloudrun/testpermissions">- <strong>testPermissions()</strong>- <div>Ensure permissions are correctly set up in GCP</div>- </TOCItem>- </Grid>- </div>- );-};diff --git a/packages/docs/components/TableOfContents/gif.tsx b/packages/docs/components/TableOfContents/gif.tsxdeleted file mode 100644index 0f2b447d74..0000000000--- a/packages/docs/components/TableOfContents/gif.tsx+++ /dev/null@@ -1,24 +0,0 @@-import React from "react";-import { Grid } from "./Grid";-import { TOCItem } from "./TOCItem";--export const TableOfContents: React.FC = () => {- return (- <div>- <Grid>- <TOCItem link="/docs/gif/gif">- <strong>{"<Gif>"}</strong>- <div>Render a GIF</div>- </TOCItem>- <TOCItem link="/docs/gif/get-gif-duration-in-seconds">- <strong>getGifDurationInSeconds()</strong>- <div>Get the runtime of a GIF</div>- </TOCItem>- <TOCItem link="/docs/gif/preload-gif">- <strong>preloadGif()</strong>- <div>Prepare a GIF for displaying in the Player</div>- </TOCItem>- </Grid>- </div>- );-};diff --git a/packages/docs/components/TableOfContents/lambda.tsx b/packages/docs/components/TableOfContents/lambda.tsxdeleted file mode 100644index 91e5c61707..0000000000--- a/packages/docs/components/TableOfContents/lambda.tsx+++ /dev/null@@ -1,118 +0,0 @@-import React from 'react';-import {Grid} from './Grid';-import {TOCItem} from './TOCItem';--export const TableOfContents: React.FC = () => {- return (- <div>- <Grid>- <TOCItem link="/docs/lambda/estimateprice">- <strong>estimatePrice()</strong>- <div>Estimate the price of a render</div>- </TOCItem>- <TOCItem link="/docs/lambda/deployfunction">- <strong>deployFunction()</strong>- <div>Create a new function in AWS Lambda</div>- </TOCItem>- <TOCItem link="/docs/lambda/deletefunction">- <strong>deleteFunction()</strong>- <div>Delete a function in AWS Lambda</div>- </TOCItem>- <TOCItem link="/docs/lambda/getfunctioninfo">- <strong>getFunctionInfo()</strong>- <div>Gets information about a function</div>- </TOCItem>- <TOCItem link="/docs/lambda/getfunctions">- <strong>getFunctions()</strong>- <div>Lists available Remotion Lambda functions</div>- </TOCItem>- <TOCItem link="/docs/lambda/getcompositionsonlambda">- <strong>getCompositionsOnLambda()</strong>- <div>Gets list of compositions inside a Lambda function</div>- </TOCItem>- <TOCItem link="/docs/lambda/deletesite">- <strong>deleteSite()</strong>- <div>Delete a bundle from S3</div>- </TOCItem>- <TOCItem link="/docs/lambda/deploysite">- <strong>deploySite()</strong>- <div>Bundle and upload a site to S3</div>- </TOCItem>- <TOCItem link="/docs/lambda/getawsclient">- <strong>getAwsClient()</strong>- <div>Access the AWS SDK directly</div>- </TOCItem>- <TOCItem link="/docs/lambda/getregions">- <strong>getRegions()</strong>- <div>Get all available regions</div>- </TOCItem>- <TOCItem link="/docs/lambda/getsites">- <strong>getSites()</strong>- <div>Get all available sites</div>- </TOCItem>- <TOCItem link="/docs/lambda/downloadmedia">- <strong>downloadMedia()</strong>- <div>Download a render artifact from S3</div>- </TOCItem>- <TOCItem link="/docs/lambda/getuserpolicy">- <strong>getUserPolicy()</strong>- <div>Get the policy JSON for your AWS user</div>- </TOCItem>- <TOCItem link="/docs/lambda/getrolepolicy">- <strong>getRolePolicy()</strong>- <div>Get the policy JSON for your AWS role</div>- </TOCItem>- <TOCItem link="/docs/lambda/getorcreatebucket">- <strong>getOrCreateBucket()</strong>- <div>Ensure a Remotion S3 bucket exists</div>- </TOCItem>- <TOCItem link="/docs/lambda/getrenderprogress">- <strong>getRenderProgress()</strong>- <div>Query the progress of a render</div>- </TOCItem>- <TOCItem link="/docs/lambda/presignurl">- <strong>presignUrl()</strong>- <div>Make a private file public to those with the link</div>- </TOCItem>- <TOCItem link="/docs/lambda/rendermediaonlambda">- <strong>renderMediaOnLambda()</strong>- <div>Trigger a video or audio render</div>- </TOCItem>- <TOCItem link="/docs/lambda/renderstillonlambda">- <strong>renderStillOnLambda()</strong>- <div>Trigger a still render</div>- </TOCItem>- <TOCItem link="/docs/lambda/simulatepermissions">- <strong>simulatePermissions()</strong>- <div>Ensure permissions are correctly set up</div>- </TOCItem>- <TOCItem link="/docs/lambda/speculatefunctionname">- <strong>speculateFunctionName()</strong>- <div>Get the lambda function name based on its configuration</div>- </TOCItem>- <TOCItem link="/docs/lambda/validatewebhooksignature">- <strong>validateWebhookSignature()</strong>- <div>Validate an incoming webhook request is authentic</div>- </TOCItem>- <TOCItem link="/docs/lambda/approuterwebhook">- <strong>appRouterWebhook()</strong>- <div>- Handle incoming webhooks specifically for the Next.js app router- </div>- </TOCItem>- <TOCItem link="/docs/lambda/pagesrouterwebhook">- <strong>pagesRouterWebhook()</strong>- <div>- Handle incoming webhooks specifically for the Next.js pages router- </div>- </TOCItem>- <TOCItem link="/docs/lambda/expresswebhook">- <strong>expressWebhook()</strong>- <div>- Handle incoming webhooks specifically for Express.js- </div>- </TOCItem>- </Grid>- </div>- );-};diff --git a/packages/docs/components/TableOfContents/lottie.tsx b/packages/docs/components/TableOfContents/lottie.tsxdeleted file mode 100644index 895d2c95bb..0000000000--- a/packages/docs/components/TableOfContents/lottie.tsx+++ /dev/null@@ -1,36 +0,0 @@-import React from 'react';-import {Grid} from './Grid';-import {TOCItem} from './TOCItem';--export const TableOfContents: React.FC<{- readonly apisOnly?: boolean;-}> = ({apisOnly}) => {- return (- <div>- <Grid>- <TOCItem link="/docs/lottie/lottie">- <strong>{'<Lottie>'}</strong>- <div>Embed a Lottie animation in Remotion</div>- </TOCItem>- <TOCItem link="/docs/lottie/getlottiemetadata">- <strong>getLottieMetadata()</strong>- <div>Get metadata of a Lottie animation</div>- </TOCItem>- <TOCItem link="/docs/lottie/staticfile">- <strong>staticFile()</strong>- <div>Load Lottie animations from a static file</div>- </TOCItem>- {apisOnly ? null : (- <>- <TOCItem link="/docs/lottie/remote">- <div>Loading Lottie animations from a remote URL</div>- </TOCItem>- <TOCItem link="/docs/lottie/lottiefiles">- <div>Where to find Lottie files</div>- </TOCItem>- </>- )}- </Grid>- </div>- );-};diff --git a/packages/docs/components/TableOfContents/media-utils.tsx b/packages/docs/components/TableOfContents/media-utils.tsxdeleted file mode 100644index f4699808f3..0000000000--- a/packages/docs/components/TableOfContents/media-utils.tsx+++ /dev/null@@ -1,57 +0,0 @@-import React from 'react';-import {Grid} from './Grid';-import {TOCItem} from './TOCItem';--export const TableOfContents: React.FC = () => {- return (- <div>- <Grid>- <TOCItem link="/docs/audio-buffer-to-data-url">- <strong>audioBufferToDataUrl()</strong>- <div>Serialize an audio buffer</div>- </TOCItem>- <TOCItem link="/docs/get-audio-data">- <strong>getAudioData()</strong>- <div>Get metadata of an audio source</div>- </TOCItem>- <TOCItem link="/docs/get-audio-duration-in-seconds">- <strong>getAudioDurationInSeconds()</strong>- <div>Get the duration of an audio source</div>- </TOCItem>- <TOCItem link="/docs/get-video-metadata">- <strong>getVideoMetadata()</strong>- <div>Get metadata of a video source</div>- </TOCItem>- <TOCItem link="/docs/get-waveform-portion">- <strong>getWaveformPortion()</strong>- <div>Trims audio data into a waveform</div>- </TOCItem>- <TOCItem link="/docs/use-audio-data">- <strong>useAudioData()</strong>- <div>- <code>getAudioData()</code> as a hook- </div>- </TOCItem>- <TOCItem link="/docs/use-windowed-audio-data">- <strong>useWindowedAudioData()</strong>- <div>- Optimized for fetching only current data, works only with{' '}- <code>.wav</code>- </div>- </TOCItem>- <TOCItem link="/docs/visualize-audio">- <strong>visualizeAudio()</strong>- <div>Process a music waveform for visualization</div>- </TOCItem>- <TOCItem link="/docs/media-utils/visualize-audio-waveform">- <strong>visualizeAudioWaveform()</strong>- <div>Process a voice waveform for visualization</div>- </TOCItem>- <TOCItem link="/docs/media-utils/create-smooth-svg-path">- <strong>createSmoothSvgPath()</strong>- <div>Turn waveform points into a smooth SVG path</div>- </TOCItem>- </Grid>- </div>- );-};diff --git a/packages/docs/components/TableOfContents/motion-blur.tsx b/packages/docs/components/TableOfContents/motion-blur.tsxdeleted file mode 100644index 7bb0b1e4b5..0000000000--- a/packages/docs/components/TableOfContents/motion-blur.tsx+++ /dev/null@@ -1,20 +0,0 @@-import React from "react";-import { Grid } from "./Grid";-import { TOCItem } from "./TOCItem";--export const TableOfContents: React.FC = () => {- return (- <div>- <Grid>- <TOCItem link="/docs/motion-blur/trail">- <strong>{"<Trail>"}</strong>- <div>Add a trail effect to children</div>- </TOCItem>- <TOCItem link="/docs/motion-blur/camera-motion-blur">- <strong>{"<CameraMotionBlur>"}</strong>- <div>Add a natural camera motion blur effect to children</div>- </TOCItem>- </Grid>- </div>- );-};diff --git a/packages/docs/components/TableOfContents/noise.tsx b/packages/docs/components/TableOfContents/noise.tsxdeleted file mode 100644index fb901f43ee..0000000000--- a/packages/docs/components/TableOfContents/noise.tsx+++ /dev/null@@ -1,24 +0,0 @@-import React from "react";-import { Grid } from "./Grid";-import { TOCItem } from "./TOCItem";--export const TableOfContents: React.FC = () => {- return (- <div>- <Grid>- <TOCItem link="/docs/noise/noise-2d">- <strong>noise2D()</strong>- <div>Create 2D noise</div>- </TOCItem>- <TOCItem link="/docs/noise/noise-3d">- <strong>noise3D()</strong>- <div>Create 3D noise</div>- </TOCItem>- <TOCItem link="/docs/noise/noise-4d">- <strong>noise4D()</strong>- <div>Create 4D noise</div>- </TOCItem>- </Grid>- </div>- );-};diff --git a/packages/docs/components/TableOfContents/paths.tsx b/packages/docs/components/TableOfContents/paths.tsxdeleted file mode 100644index 67f0465f40..0000000000--- a/packages/docs/components/TableOfContents/paths.tsx+++ /dev/null@@ -1,85 +0,0 @@-import React from "react";-import { Grid } from "./Grid";-import { TOCItem } from "./TOCItem";--export const TableOfContents: React.FC = () => {- return (- <div>- <Grid>- <TOCItem link="/docs/paths/get-length">- <strong>getLength()</strong>- <div>Obtain length of an SVG path</div>- </TOCItem>- <TOCItem link="/docs/paths/get-point-at-length">- <strong>getPointAtLength()</strong>- <div>Get coordinates at a certain point of an SVG path</div>- </TOCItem>- <TOCItem link="/docs/paths/get-tangent-at-length">- <strong>getTangentAtLength()</strong>- <div>- Gets tangents <code>x</code> and <code>y</code> of a point which is- on an SVG path- </div>- </TOCItem>- <TOCItem link="/docs/paths/reverse-path">- <strong>reversePath()</strong>- <div>Switch direction of an SVG path</div>- </TOCItem>- <TOCItem link="/docs/paths/normalize-path">- <strong>normalizePath()</strong>- <div>Replace relative with absolute coordinates</div>- </TOCItem>- <TOCItem link="/docs/paths/interpolate-path">- <strong>interpolatePath()</strong>- <div>Interpolates between two SVG paths</div>- </TOCItem>- <TOCItem link="/docs/paths/evolve-path">- <strong>evolvePath()</strong>- <div>Animate an SVG path</div>- </TOCItem>- <TOCItem link="/docs/paths/translate-path">- <strong>translatePath()</strong>- <div>Translates the position of an path against X/Y coordinates</div>- </TOCItem>- <TOCItem link="/docs/paths/warp-path">- <strong>warpPath()</strong>- <div>Remap the coordinates of a path</div>- </TOCItem>- <TOCItem link="/docs/paths/scale-path">- <strong>scalePath()</strong>- <div>Grow or shrink the size of the path</div>- </TOCItem>- <TOCItem link="/docs/paths/get-bounding-box">- <strong>getBoundingBox()</strong>- <div>Get the bounding box of a SVG path</div>- </TOCItem>- <TOCItem link="/docs/paths/reset-path">- <strong>resetPath()</strong>- <div>- Translates an SVG path to <code>(0, 0)</code>- </div>- </TOCItem>- <TOCItem link="/docs/paths/extend-viewbox">- <strong>extendViewBox()</strong>- <div>Widen an SVG viewBox in all directions</div>- </TOCItem>- <TOCItem link="/docs/paths/get-subpaths">- <strong>getSubpaths()</strong>- <div>Split SVG path into its parts</div>- </TOCItem>- <TOCItem link="/docs/paths/parse-path">- <strong>parsePath()</strong>- <div>Parse a string into an array of instructions</div>- </TOCItem>- <TOCItem link="/docs/paths/serialize-instructions">- <strong>serializeInstructions()</strong>- <div>Turn an array of instructions into a SVG path</div>- </TOCItem>{" "}- <TOCItem link="/docs/paths/reduce-instructions">- <strong>reduceInstructions()</strong>- <div>Reduce the amount of instruction types</div>- </TOCItem>{" "}- </Grid>- </div>- );-};diff --git a/packages/docs/components/TableOfContents/preload.tsx b/packages/docs/components/TableOfContents/preload.tsxdeleted file mode 100644index 0b603b2a23..0000000000--- a/packages/docs/components/TableOfContents/preload.tsx+++ /dev/null@@ -1,32 +0,0 @@-import React from "react";-import { Grid } from "./Grid";-import { TOCItem } from "./TOCItem";--export const TableOfContents: React.FC = () => {- return (- <div>- <Grid>- <TOCItem link="/docs/preload/preload-video">- <strong>preloadVideo()</strong>- <div>Preload a video source</div>- </TOCItem>- <TOCItem link="/docs/preload/preload-audio">- <strong>preloadAudio()</strong>- <div>Preload an audio source</div>- </TOCItem>- <TOCItem link="/docs/preload/preload-font">- <strong>preloadFont()</strong>- <div>Preload a font</div>- </TOCItem>- <TOCItem link="/docs/preload/preload-image">- <strong>preloadImage()</strong>- <div>Preload an image</div>- </TOCItem>- <TOCItem link="/docs/preload/preload-audio">- <strong>resolveRedirect()</strong>- <div>Get the definitive URL after all redirects</div>- </TOCItem>- </Grid>- </div>- );-};diff --git a/packages/docs/components/TableOfContents/remotion.tsx b/packages/docs/components/TableOfContents/remotion.tsxdeleted file mode 100644index cedde3f01f..0000000000--- a/packages/docs/components/TableOfContents/remotion.tsx+++ /dev/null@@ -1,142 +0,0 @@-import React from 'react';-import {Grid} from './Grid';-import {TOCItem} from './TOCItem';--export const TableOfContents: React.FC = () => {- return (- <div>- <Grid>- <TOCItem link="/docs/composition">- <strong>{'<Composition>'}</strong>- <div>Define a video</div>- </TOCItem>- <TOCItem link="/docs/still">- <strong>{'<Still>'}</strong>- <div>Define a still</div>- </TOCItem>- <TOCItem link="/docs/folder">- <strong>{'<Folder>'}</strong>- <div>Organize compositions in the Studio sidebar</div>- </TOCItem>- <TOCItem link="/docs/register-root">- <strong>{'registerRoot()'}</strong>- <div>Initialize a Remotion project</div>- </TOCItem>- <TOCItem link="/docs/use-current-frame">- <strong>useCurrentFrame()</strong>- <div>Obtain the current time</div>- </TOCItem>- <TOCItem link="/docs/use-video-config">- <strong>useVideoConfig()</strong>- <div>Get the duration, dimensions and FPS of a composition</div>- </TOCItem>- <TOCItem link="/docs/interpolate">- <strong>interpolate()</strong>- <div>Map a range of values to another</div>- </TOCItem>- <TOCItem link="/docs/spring">- <strong>spring()</strong>- <div>Physics-based animation primitive</div>- </TOCItem>- <TOCItem link="/docs/interpolate-colors">- <strong>interpolateColors()</strong>- <div>Map a range of values to colors</div>- </TOCItem>- <TOCItem link="/docs/measure-spring">- <strong>measureSpring()</strong>- <div>Determine the duration of a spring</div>- </TOCItem>- <TOCItem link="/docs/easing">- <strong>Easing</strong>- <div>- Customize animation curve of <code>interpolate()</code>- </div>- </TOCItem>- <TOCItem link="/docs/img">- <strong>{'<Img>'}</strong>- <div>- Render an <code>{'<img>'}</code> tag and wait for it to load- </div>- </TOCItem>- <TOCItem link="/docs/video">- <strong>{'<Video>'}</strong>- <div>- Synchronize a <code>{'<video>'}</code> with Remotion{"'"}s time- </div>- </TOCItem>- <TOCItem link="/docs/audio">- <strong>{'<Audio>'}</strong>- <div>- Synchronize <code>{'<audio>'}</code> with Remotion{"'"}s time- </div>- </TOCItem>- <TOCItem link="/docs/offthreadvideo">- <strong>{'<OffthreadVideo>'}</strong>- <div>- Alternative to <code>{'<Video>'}</code>- </div>- </TOCItem>- <TOCItem link="/docs/animatedimage">- <strong>{'<AnimatedImage>'}</strong>- <div>Disply a GIF, AVIF or animated WebP image</div>- </TOCItem>- <TOCItem link="/docs/iframe">- <strong>{'<IFrame>'}</strong>- <div>- Render an <code>{'<iframe>'}</code> tag and wait for it to load- </div>- </TOCItem>- <TOCItem link="/docs/sequence">- <strong>{'<Sequence>'}</strong>- <div>Time-shifts it{"'"}s children</div>- </TOCItem>- <TOCItem link="/docs/series">- <strong>{'<Series>'}</strong>- <div>Display contents after another</div>- </TOCItem>- <TOCItem link="/docs/freeze">- <strong>{'<Freeze>'}</strong>- <div>Freeze some content in time</div>- </TOCItem>- <TOCItem link="/docs/loop">- <strong>{'<Loop>'}</strong>- <div>Play some content repeatedly</div>- </TOCItem>- <TOCItem link="/docs/delay-render">- <strong>delayRender()</strong>- <div>Block a render from continuing</div>- </TOCItem>- <TOCItem link="/docs/continue-render">- <strong>continueRender()</strong>- <div>Unblock a render</div>- </TOCItem>- <TOCItem link="/docs/cancel-render">- <strong>cancelRender()</strong>- <div>Abort an error</div>- </TOCItem>{' '}- <TOCItem link="/docs/get-input-props">- <strong>getInputProps()</strong>- <div>Receive the user-defined input data</div>- </TOCItem>- <TOCItem link="/docs/get-remotion-environment">- <strong>getRemotionEnvironment()</strong>- <div>Determine if you are currently previewing or rendering</div>- </TOCItem>- <TOCItem link="/docs/staticfile">- <strong>staticFile()</strong>- <div>- Access file from <code>public{'/'}</code> folder- </div>- </TOCItem>- <TOCItem link="/docs/absolute-fill">- <strong>{'<AbsoluteFill>'}</strong>- <div>Position content absolutely and in full size</div>- </TOCItem>- <TOCItem link="/docs/version">- <strong>{'VERSION'}</strong>- <div>Get the current version of Remotion</div>- </TOCItem>- </Grid>- </div>- );-};diff --git a/packages/docs/components/TableOfContents/rive.tsx b/packages/docs/components/TableOfContents/rive.tsxdeleted file mode 100644index da995911c8..0000000000--- a/packages/docs/components/TableOfContents/rive.tsx+++ /dev/null@@ -1,16 +0,0 @@-import React from "react";-import { Grid } from "./Grid";-import { TOCItem } from "./TOCItem";--export const TableOfContents: React.FC = () => {- return (- <div>- <Grid>- <TOCItem link="/docs/rive/remotionrivecanvas">- <strong>{"<RemotionRiveCanvas>"}</strong>- <div>Render a Rive animation</div>- </TOCItem>- </Grid>- </div>- );-};diff --git a/packages/docs/components/TableOfContents/shapes.tsx b/packages/docs/components/TableOfContents/shapes.tsxdeleted file mode 100644index 948f37dca1..0000000000--- a/packages/docs/components/TableOfContents/shapes.tsx+++ /dev/null@@ -1,27 +0,0 @@-import React from "react";-import { shapeComponents } from "../shapes/shapes-info";-import { Grid } from "./Grid";-import { TOCItem } from "./TOCItem";--export const TableOfContents: React.FC = () => {- return (- <div>- <Grid>- {shapeComponents.map((c) => {- return (- <React.Fragment key={c.shape}>- <TOCItem link={"/docs/shapes/make-" + c.shape.toLowerCase()}>- <strong>make{c.shape}()</strong>- <div>Generate SVG Path for a {c.shape.toLowerCase()}</div>- </TOCItem>- <TOCItem link={"/docs/shapes/" + c.shape.toLowerCase()}>- <strong>{"<" + c.shape + "/>"}</strong>- <div>Render a {c.shape.toLowerCase()}</div>- </TOCItem>- </React.Fragment>- );- })}- </Grid>- </div>- );-};diff --git a/packages/docs/docs/animation-utils/index.mdx.bak b/packages/docs/docs/animation-utils/index.mdx.bakdeleted file mode 100644index 73a0f54367..0000000000--- a/packages/docs/docs/animation-utils/index.mdx.bak+++ /dev/null@@ -1,53 +0,0 @@-----image: /generated/articles-docs-animation-utils-index.png-title: "@remotion/animation-utils"------_Available from v4.0.92_--Functions that support you in animating CSS styles.--import Tabs from '@theme/Tabs';-import TabItem from '@theme/TabItem';-import {TableOfContents} from '../../components/TableOfContents/animation-utils';--<Tabs-defaultValue="npm"-values={[-{ label: 'npm', value: 'npm', },-{ label: 'pnpm', value: 'pnpm', },-{ label: 'yarn', value: 'yarn', },-]-}>-<TabItem value="npm">--```bash-npm i @remotion/animation-utils-```-- </TabItem>-- <TabItem value="pnpm">--```bash-pnpm i @remotion/animation-utils-```-- </TabItem>-- <TabItem value="yarn">--```bash-yarn add @remotion/animation-utils-```-- </TabItem>-</Tabs>--## Functions--<TableOfContents/>--## License--MITdiff --git a/packages/docs/docs/animation-utils/table-of-contents.tsx b/packages/docs/docs/animation-utils/table-of-contents.tsxindex 8d6082fbd1..e0ffbbfb52 100644--- a/packages/docs/docs/animation-utils/table-of-contents.tsx+++ b/packages/docs/docs/animation-utils/table-of-contents.tsx@@ -1,6 +1,6 @@import React from "react";-import { Grid } from "./Grid";-import { TOCItem } from "./TOCItem";+import { Grid } from "../../components/TableOfContents/Grid";+import { TOCItem } from "../../components/TableOfContents/TOCItem";export const TableOfContents: React.FC = () => {return (diff --git a/packages/docs/docs/api.mdx.bak b/packages/docs/docs/api.mdx.bakdeleted file mode 100644index f3044678db..0000000000--- a/packages/docs/docs/api.mdx.bak+++ /dev/null@@ -1,8 +0,0 @@-----image: /generated/articles-docs-api.png-title: API overview------import { TableOfContents } from "../components/TableOfContents/api";--<TableOfContents />diff --git a/packages/docs/docs/bundler.mdx.bak b/packages/docs/docs/bundler.mdx.bakdeleted file mode 100644index 6cb0b5abce..0000000000--- a/packages/docs/docs/bundler.mdx.bak+++ /dev/null@@ -1,20 +0,0 @@-----image: /generated/articles-docs-bundler.png-title: "@remotion/bundler"------import {TableOfContents} from '../components/TableOfContents/bundler';--A package containing the [`bundle()`](/docs/bundle) function, which takes a Remotion project and bundles it using Webpack, preparing it to be used by server-side rendering functions such as [`getCompositions()`](/docs/renderer/get-compositions) and [`renderMedia()`](/docs/renderer/render-media)--## Installation--<Installation pkg="@remotion/bundler"/>--## API--<TableOfContents />--## License--[Remotion License](https://remotion.dev/license)diff --git a/packages/docs/docs/bundler/table-of-contents.tsx b/packages/docs/docs/bundler/table-of-contents.tsxindex 197d91b053..2f05aa73ef 100644--- a/packages/docs/docs/bundler/table-of-contents.tsx+++ b/packages/docs/docs/bundler/table-of-contents.tsx@@ -1,6 +1,6 @@import React from "react";-import { Grid } from "./Grid";-import { TOCItem } from "./TOCItem";+import { Grid } from "../../components/TableOfContents/Grid";+import { TOCItem } from "../../components/TableOfContents/TOCItem";export const TableOfContents: React.FC = () => {return (diff --git a/packages/docs/docs/cli/browser/index.mdx.bak b/packages/docs/docs/cli/browser/index.mdx.bakdeleted file mode 100644index 64bd9cc557..0000000000--- a/packages/docs/docs/cli/browser/index.mdx.bak+++ /dev/null@@ -1,21 +0,0 @@-----image: /generated/articles-docs-cli-browser-index.png-title: npx remotion browser-crumb: "@remotion/cli"-sidebar_label: "browser"------import { TableOfContents } from "../../../components/TableOfContents/cli/browser";--# npx remotion browser<AvailableFrom v="4.0.137"/>--Commands for managing the browser used by Remotion.--## Commands--<TableOfContents />--## See also--- [Chrome Headless Shell](/docs/miscellaneous/chrome-headless-shell)-- [`ensureBrowser()`](/docs/renderer/ensure-browser)diff --git a/packages/docs/docs/cli/cli.mdx.bak b/packages/docs/docs/cli/cli.mdx.bakdeleted file mode 100644index 1482cf50ab..0000000000--- a/packages/docs/docs/cli/cli.mdx.bak+++ /dev/null@@ -1,73 +0,0 @@-----image: /generated/articles-docs-cli-cli.png-title: Command line reference-sidebar_label: CLI reference-id: cli------import {TableOfContents} from '../../components/TableOfContents/cli';--## How to use--You can run the CLI by installing `@remotion/cli` and running:--- `npx remotion` inside a npm project-- `yarn remotion` inside a Yarn project-- `pnpm exec remotion` inside a pnpm project.-- `bunx remotion` inside a Bun project--For brevity, in the documentation we always say `npx remotion`.--Inside an npm script, you don't need the `npx` prefix:--```json title="package.json"-{- "scripts": {- "render": "remotion render"- }-}-```--### Using Bun<AvailableFrom v="4.0.118" />--By default, the `npx remotion` command is being executed using Node.-Even `bunx remotion` is using Node, unless you add the `--bun` flag.-To use Bun, replace `remotion` with `remotionb`.--```json title="package.json"-{- "scripts": {- "render": "remotionb render"- }-}-```--### Using Deno<AvailableFrom v="4.0.227" />--Deno is not supported by Remotion.-If you like to experiment nonetheless, use `npx remotiond` to run the Deno version of the CLI.--```json title="package.json"-{- "scripts": {- "render": "remotiond render"- }-}-```--## Commands--The following commands are available - you can always run them using `npx remotion` or even without the `npx` prefix if you put the command inside an npm script.--<TableOfContents />--## Example command--```-npx remotion render --codec=vp8 HelloWorld out/video.webm-```--## See also--- [Render your video](/docs/render)-- [Configuration file](/docs/config)diff --git a/packages/docs/docs/cli/table-of-contents.tsx b/packages/docs/docs/cli/table-of-contents.tsxindex c7f462170e..9b3ca37251 100644--- a/packages/docs/docs/cli/table-of-contents.tsx+++ b/packages/docs/docs/cli/table-of-contents.tsx@@ -1,6 +1,6 @@import React from "react";-import { Grid } from "./Grid";-import { TOCItem } from "./TOCItem";+import { Grid } from "../../components/TableOfContents/Grid";+import { TOCItem } from "../../components/TableOfContents/TOCItem";export const TableOfContents: React.FC = () => {return (diff --git a/packages/docs/docs/cloudrun/api.mdx.bak b/packages/docs/docs/cloudrun/api.mdx.bakdeleted file mode 100644index 4ebf454030..0000000000--- a/packages/docs/docs/cloudrun/api.mdx.bak+++ /dev/null@@ -1,28 +0,0 @@-----image: /generated/articles-docs-cloudrun-api.png-title: '@remotion/cloudrun'-crumb: 'Render videos without servers on GCP'------<ExperimentalBadge>- <p>- Cloud Run is in <a href="/docs/cloudrun/status">Alpha status and not actively being developed.</a>- </p>-</ExperimentalBadge>--import {TableOfContents} from '../../components/TableOfContents/cloudrun';--<Installation pkg="@remotion/cloudrun" />-<br />--**See the [setup guide](/docs/cloudrun/setup) for complete instructions on how to get started.**--## APIs--The following Node.JS are available:--<TableOfContents />--## CLI--See [here](/docs/cloudrun/cli) for a list of CLI commands.diff --git a/packages/docs/docs/cloudrun/table-of-contents.tsx b/packages/docs/docs/cloudrun/table-of-contents.tsxindex 00e8049a3c..fe06dc02e5 100644--- a/packages/docs/docs/cloudrun/table-of-contents.tsx+++ b/packages/docs/docs/cloudrun/table-of-contents.tsx@@ -1,6 +1,6 @@import React from "react";-import { Grid } from "./Grid";-import { TOCItem } from "./TOCItem";+import { Grid } from "../../components/TableOfContents/Grid";+import { TOCItem } from "../../components/TableOfContents/TOCItem";export const TableOfContents: React.FC = () => {return (diff --git a/packages/docs/docs/gif/index.mdx.bak b/packages/docs/docs/gif/index.mdx.bakdeleted file mode 100644index b03c6ae933..0000000000--- a/packages/docs/docs/gif/index.mdx.bak+++ /dev/null@@ -1,17 +0,0 @@-----image: /generated/articles-docs-gif-index.png-sidebar_label: "@remotion/gif"-title: "@remotion/gif"------import {TableOfContents} from '../../components/TableOfContents/gif';--You can install this package from NPM to get a component for displaying GIFs that synchronize with Remotions [`useCurrentFrame()`](/docs/use-current-frame).--<Installation pkg="@remotion/gif"/>--## APIs--The following APIs are available:--<TableOfContents />diff --git a/packages/docs/docs/gif/table-of-contents.tsx b/packages/docs/docs/gif/table-of-contents.tsxindex 0f2b447d74..15cbd1c6ae 100644--- a/packages/docs/docs/gif/table-of-contents.tsx+++ b/packages/docs/docs/gif/table-of-contents.tsx@@ -1,6 +1,6 @@import React from "react";-import { Grid } from "./Grid";-import { TOCItem } from "./TOCItem";+import { Grid } from "../../components/TableOfContents/Grid";+import { TOCItem } from "../../components/TableOfContents/TOCItem";export const TableOfContents: React.FC = () => {return (diff --git a/packages/docs/docs/lambda/api.mdx.bak b/packages/docs/docs/lambda/api.mdx.bakdeleted file mode 100644index ff5b32348b..0000000000--- a/packages/docs/docs/lambda/api.mdx.bak+++ /dev/null@@ -1,22 +0,0 @@-----image: /generated/articles-docs-lambda-api.png-title: "@remotion/lambda"-crumb: "Render videos without servers on AWS"------import {TableOfContents} from '../../components/TableOfContents/lambda';--<Installation pkg="@remotion/lambda"/>-<br/>--**See the [setup guide](/docs/lambda/setup) for complete instructions on how to get started.**--## APIs--The following Node.JS are available:--<TableOfContents />--## CLI--See [here](/docs/lambda/cli) for a list of CLI commands.diff --git a/packages/docs/docs/layout-utils/index.mdx.bak b/packages/docs/docs/layout-utils/index.mdx.bakdeleted file mode 100644index 374c8b4a41..0000000000--- a/packages/docs/docs/layout-utils/index.mdx.bak+++ /dev/null@@ -1,53 +0,0 @@-----image: /generated/articles-docs-layout-utils-index.png-title: "@remotion/layout-utils"------_Available from v4.0.50_--Utility functions for creating dynamic layouts.--import Tabs from '@theme/Tabs';-import TabItem from '@theme/TabItem';-import {TableOfContents} from '../../components/TableOfContents/LayoutUtils';--<Tabs-defaultValue="npm"-values={[-{ label: 'npm', value: 'npm', },-{ label: 'pnpm', value: 'pnpm', },-{ label: 'yarn', value: 'yarn', },-]-}>-<TabItem value="npm">--```bash-npm i @remotion/layout-utils-```-- </TabItem>-- <TabItem value="pnpm">--```bash-pnpm i @remotion/layout-utils-```-- </TabItem>-- <TabItem value="yarn">--```bash-yarn add @remotion/layout-utils-```-- </TabItem>-</Tabs>--## Functions--<TableOfContents/>--## License--MITdiff --git a/packages/docs/docs/layout-utils/table-of-contents.tsx b/packages/docs/docs/layout-utils/table-of-contents.tsxindex 0064e2f026..76559588b2 100644--- a/packages/docs/docs/layout-utils/table-of-contents.tsx+++ b/packages/docs/docs/layout-utils/table-of-contents.tsx@@ -1,6 +1,6 @@import React from "react";-import { Grid } from "./Grid";-import { TOCItem } from "./TOCItem";+import { Grid } from "../../components/TableOfContents/Grid";+import { TOCItem } from "../../components/TableOfContents/TOCItem";export const TableOfContents: React.FC = () => {return (diff --git a/packages/docs/docs/lottie/index.mdx.bak b/packages/docs/docs/lottie/index.mdx.bakdeleted file mode 100644index ea3b94637c..0000000000--- a/packages/docs/docs/lottie/index.mdx.bak+++ /dev/null@@ -1,77 +0,0 @@-----image: /generated/articles-docs-lottie-index.png-id: lottie-index-sidebar_label: Overview-title: "@remotion/lottie"------import Tabs from '@theme/Tabs';-import TabItem from '@theme/TabItem';-import {TableOfContents} from "../../components/TableOfContents/lottie"--This package provides a component for displaying [Lottie](http://airbnb.io/lottie/) animations in Remotion.--## Installation--Install, `@remotion/lottie` as well as `lottie-web`.--<Tabs-defaultValue="npm"-values={[-{ label: 'npm', value: 'npm', },-{ label: 'yarn', value: 'yarn', },-{ label: 'pnpm', value: 'pnpm', },-]-}>-<TabItem value="npm">--```bash-npm i @remotion/lottie lottie-web-```-- </TabItem>-- <TabItem value="yarn">--```bash-yarn add @remotion/lottie lottie-web-```-- </TabItem>-- <TabItem value="pnpm">--```bash-pnpm i @remotion/lottie lottie-web-```-- </TabItem>-</Tabs>--You can now start using the [`<Lottie>`](/docs/lottie/lottie) component in your Remotion project.--## Supported features--- Playing Lottie animations using `lottie-web`-- Change the speed of the animation-- Playing animation forwards and backwards-- Playing remote files-- Determining dimensions and duration of a Lottie animation--## Unsupported features--- Rendering on other renderers as `svg`-- `setSubFrame()`, `setLocationHref()`-- Limited expression support: Remotion uses the `.goToAndStop()` method from `lottie-web` to seek through the Lottie file. Depending on the expression, the frame might not render deterministally, leading to [flickering](/docs/flickering) in the Remotion output. Remotion cannot fix this without a change in `lottie-web` upstream. You need to evaluate on a case-by-case basis whether the expression you are using is supported by Remotion.--:::note-[Open an issue](https://remotion.dev/issue) if you want to request a currently unsupported feature.-:::--## Table of contents--<TableOfContents />--## License--[Remotion License](https://remotion.dev/license)diff --git a/packages/docs/docs/media-utils/index.mdx.bak b/packages/docs/docs/media-utils/index.mdx.bakdeleted file mode 100644index 4d8fc5a9e2..0000000000--- a/packages/docs/docs/media-utils/index.mdx.bak+++ /dev/null@@ -1,20 +0,0 @@-----image: /generated/articles-docs-media-utils-index.png-title: "@remotion/media-utils"------import {TableOfContents} from '../../components/TableOfContents/media-utils';--A package providing utility functions for getting information about video and audio, and for visualizing audio.--Except for [`useAudioData()`](/docs/use-audio-data), all functions can also be used outside of Remotion.--<Installation pkg="@remotion/media-utils"/>--## Functions--<TableOfContents />--## License--MITdiff --git a/packages/docs/docs/motion-blur/index.mdx.bak b/packages/docs/docs/motion-blur/index.mdx.bakdeleted file mode 100644index 3d87c147f6..0000000000--- a/packages/docs/docs/motion-blur/index.mdx.bak+++ /dev/null@@ -1,20 +0,0 @@-----image: /generated/articles-docs-motion-blur-index.png-title: "@remotion/motion-blur"------_Available from v3.2.31_--Higher order components that create a motion blur and trail effects.--import { TableOfContents } from "../../components/TableOfContents/motion-blur";--<Installation pkg="@remotion/motion-blur" />--## Components--<TableOfContents />--## License--MITdiff --git a/packages/docs/docs/motion-blur/motion-blur.mdx.bak b/packages/docs/docs/motion-blur/motion-blur.mdx.bakdeleted file mode 100644index a5e98ccc2c..0000000000--- a/packages/docs/docs/motion-blur/motion-blur.mdx.bak+++ /dev/null@@ -1,11 +0,0 @@-----image: /generated/articles-docs-motion-blur-motion-blur.png-title: "<MotionBlur>"-slug: motion-blur------import {TableOfContents} from '../../components/TableOfContents/motion-blur';--_Deprecated_. Use `<Trail>` or `<CameraMotionBlur>` instead.--<TableOfContents />diff --git a/packages/docs/docs/motion-blur/table-of-contents.tsx b/packages/docs/docs/motion-blur/table-of-contents.tsxindex 7bb0b1e4b5..0185619486 100644--- a/packages/docs/docs/motion-blur/table-of-contents.tsx+++ b/packages/docs/docs/motion-blur/table-of-contents.tsx@@ -1,6 +1,6 @@import React from "react";-import { Grid } from "./Grid";-import { TOCItem } from "./TOCItem";+import { Grid } from "../../components/TableOfContents/Grid";+import { TOCItem } from "../../components/TableOfContents/TOCItem";export const TableOfContents: React.FC = () => {return (diff --git a/packages/docs/docs/noise/index.mdx.bak b/packages/docs/docs/noise/index.mdx.bakdeleted file mode 100644index 87680b9e21..0000000000--- a/packages/docs/docs/noise/index.mdx.bak+++ /dev/null@@ -1,54 +0,0 @@-----image: /generated/articles-docs-noise-index.png-title: "@remotion/noise"-------_Available from v3.2.32_--Utility functions that create a noise effect.--import Tabs from '@theme/Tabs';-import TabItem from '@theme/TabItem';-import {TableOfContents} from '../../noise/table-of-contents';--<Tabs-defaultValue="npm"-values={[-{ label: 'npm', value: 'npm', },-{ label: 'pnpm', value: 'pnpm', },-{ label: 'yarn', value: 'yarn', },-]-}>-<TabItem value="npm">--```bash-npm i @remotion/noise-```-- </TabItem>-- <TabItem value="pnpm">--```bash-pnpm i @remotion/noise-```-- </TabItem>-- <TabItem value="yarn">--```bash-yarn add @remotion/noise-```-- </TabItem>-</Tabs>--## Functions--<TableOfContents/>--## License--MITdiff --git a/packages/docs/docs/preload/preload.mdx.bak b/packages/docs/docs/preload/preload.mdx.bakdeleted file mode 100644index e5d295ec1f..0000000000--- a/packages/docs/docs/preload/preload.mdx.bak+++ /dev/null@@ -1,20 +0,0 @@-----image: /generated/articles-docs-preload-preload.png-id: preload-sidebar_label: Overview-title: "@remotion/preload"------import Tabs from '@theme/Tabs';-import TabItem from '@theme/TabItem';-import {TableOfContents} from '../../components/TableOfContents/preload';--This package provides functions for preloading assets. While preload is not necessary for rendering, it can help with seamless playback in the [`<Player />`](/docs/player) and in the Studio. Currently, three functions are implemented:--<TableOfContents />--An alternative to `@remotion/preload` is the [`prefetch()`](/docs/prefetch) API. See [`@remotion/preload` vs `prefetch()`](/docs/player/preloading#remotionpreload-vs-prefetch) to decide which one is better for your usecase.--## Installation--<Installation pkg="@remotion/preload"/>diff --git a/packages/docs/docs/preload/table-of-contents.tsx b/packages/docs/docs/preload/table-of-contents.tsxindex 0b603b2a23..667156fd68 100644--- a/packages/docs/docs/preload/table-of-contents.tsx+++ b/packages/docs/docs/preload/table-of-contents.tsx@@ -1,6 +1,6 @@import React from "react";-import { Grid } from "./Grid";-import { TOCItem } from "./TOCItem";+import { Grid } from "../../components/TableOfContents/Grid";+import { TOCItem } from "../../components/TableOfContents/TOCItem";export const TableOfContents: React.FC = () => {return (diff --git a/packages/docs/docs/remotion.mdx.bak b/packages/docs/docs/remotion.mdx.bakdeleted file mode 100644index 299f34f80c..0000000000--- a/packages/docs/docs/remotion.mdx.bak+++ /dev/null@@ -1,67 +0,0 @@-----image: /generated/articles-docs-remotion.png-title: 'remotion'-crumb: 'Core API Reference'------import {TableOfContents} from '../components/TableOfContents/remotion';--A package containing the essential building blocks of expressing videos in Remotion.--Some pure functions such as [`interpolate()`](/docs/interpolate) and [`interpolateColors()`](/docs/interpolate-colors) can also be used outside of Remotion.--## Installation--import Tabs from '@theme/Tabs';-import TabItem from '@theme/TabItem';--<Tabs-defaultValue="npm"-values={[-{ label: 'npm', value: 'npm', },-{ label: 'bun', value: 'bun', },-{ label: 'pnpm', value: 'pnpm', },-{ label: 'yarn', value: 'yarn', },-]-}>-<TabItem value="npm">--```bash-npm i remotion-```-- </TabItem>-<TabItem value="bun">--```bash-bun i remotion-```-- </TabItem>-- <TabItem value="pnpm">--```bash-pnpm i remotion-```-- </TabItem>-- <TabItem value="yarn">--```bash-yarn add remotion-```-- </TabItem>-</Tabs>--## API--The following functions and components are exposed:--<TableOfContents />--## License--[Remotion License](https://remotion.dev/license)diff --git a/packages/docs/docs/rive/index.mdx.bak b/packages/docs/docs/rive/index.mdx.bakdeleted file mode 100644index 5767a691ad..0000000000--- a/packages/docs/docs/rive/index.mdx.bak+++ /dev/null@@ -1,53 +0,0 @@-----image: /generated/articles-docs-rive-index.png-sidebar_label: Overview-title: "@remotion/rive"-crumb: Integrations------import Tabs from "@theme/Tabs";-import TabItem from "@theme/TabItem";-import {TableOfContents} from '../../components/TableOfContents/rive';--This package provides a component for rendering [Rive](https://rive.app) animations in Remotion.--## Installation--Install `@remotion/rive`--<Tabs defaultValue="npm" values={[-{ label: 'npm', value: 'npm', },-{ label: 'yarn', value: 'yarn', },-{ label: 'pnpm', value: 'pnpm', },-]-}>-<TabItem value="npm">--```bash-npm i @remotion/rive-```--</TabItem>-<TabItem value="yarn">--```bash-yarn add @remotion/rive-```--</TabItem>-<TabItem value="pnpm">--```bash-pnpm i @remotion/rive-```--</TabItem>-</Tabs>--## API--<TableOfContents />--## License--[Remotion License](https://remotion.dev/license)diff --git a/packages/docs/docs/rive/table-of-contents.tsx b/packages/docs/docs/rive/table-of-contents.tsxindex da995911c8..1b73a586ef 100644--- a/packages/docs/docs/rive/table-of-contents.tsx+++ b/packages/docs/docs/rive/table-of-contents.tsx@@ -1,6 +1,6 @@import React from "react";-import { Grid } from "./Grid";-import { TOCItem } from "./TOCItem";+import { Grid } from "../../components/TableOfContents/Grid";+import { TOCItem } from "../../components/TableOfContents/TOCItem";export const TableOfContents: React.FC = () => {return (diff --git a/packages/docs/docs/shapes/index.mdx.bak b/packages/docs/docs/shapes/index.mdx.bakdeleted file mode 100644index 4ffee8a235..0000000000--- a/packages/docs/docs/shapes/index.mdx.bak+++ /dev/null@@ -1,53 +0,0 @@-----image: /generated/articles-docs-shapes-index.png-title: "@remotion/shapes"-crumb: "SVG component library"------import {TableOfContents} from '../../components/TableOfContents/shapes';--A package providing utility functions for generate SVG shapes.--import Tabs from '@theme/Tabs';-import TabItem from '@theme/TabItem';--<Tabs-defaultValue="npm"-values={[-{ label: 'npm', value: 'npm', },-{ label: 'pnpm', value: 'pnpm', },-{ label: 'yarn', value: 'yarn', },-]-}>-<TabItem value="npm">--```bash-npm i @remotion/shapes-```-- </TabItem>-- <TabItem value="pnpm">--```bash-pnpm i @remotion/shapes-```-- </TabItem>-- <TabItem value="yarn">--```bash-yarn add @remotion/shapes-```-- </TabItem>-</Tabs>--## Functions--<TableOfContents />--## License--MITdiff --git a/packages/docs/docs/shapes/table-of-contents.tsx b/packages/docs/docs/shapes/table-of-contents.tsxindex 948f37dca1..ac4c0e63b9 100644--- a/packages/docs/docs/shapes/table-of-contents.tsx+++ b/packages/docs/docs/shapes/table-of-contents.tsx@@ -1,7 +1,7 @@import React from "react";-import { shapeComponents } from "../shapes/shapes-info";-import { Grid } from "./Grid";-import { TOCItem } from "./TOCItem";+import { shapeComponents } from "../../components/shapes/shapes-info";+import { Grid } from "../../components/TableOfContents/Grid";+import { TOCItem } from "../../components/TableOfContents/TOCItem";export const TableOfContents: React.FC = () => {return (diff --git a/packages/docs/docs/transitions.mdx.bak b/packages/docs/docs/transitions.mdx.bakdeleted file mode 100644index cb1c9c1226..0000000000--- a/packages/docs/docs/transitions.mdx.bak+++ /dev/null@@ -1,111 +0,0 @@-----image: /generated/articles-docs-transitions.png-id: transitioning-title: Transitions-crumb: "Techniques"------# Transitions<AvailableFrom v="4.0.59"/>--import { TransitionsDuration } from "../components/TransitionsDuration";-import { Presentations } from "../components/TableOfContents/transitions/presentations";-import { Timings } from "../components/TableOfContents/transitions/timings";--To transition between two types of absolutely positioned content, you can use the [`<TransitionSeries>`](/docs/transitions/transitionseries) component.--```tsx twoslash title="SlideTransition.tsx"-import { AbsoluteFill } from "remotion";--const Letter: React.FC<{- children: React.ReactNode;- color: string;-}> = ({ children, color }) => {- return (- <AbsoluteFill- style={{- backgroundColor: color,- opacity: 0.9,- justifyContent: "center",- alignItems: "center",- fontSize: 200,- color: "white",- }}- >- {children}- </AbsoluteFill>- );-};-// ---cut----import { linearTiming, TransitionSeries } from "@remotion/transitions";-import { slide } from "@remotion/transitions/slide";--const BasicTransition = () => {- return (- <TransitionSeries>- <TransitionSeries.Sequence durationInFrames={40}>- <Letter color="#0b84f3">A</Letter>- </TransitionSeries.Sequence>- <TransitionSeries.Transition- presentation={slide()}- timing={linearTiming({ durationInFrames: 30 })}- />- <TransitionSeries.Sequence durationInFrames={60}>- <Letter color="pink">B</Letter>- </TransitionSeries.Sequence>- </TransitionSeries>- );-};-```--<Demo type="slide" />--## Enter and exit animations--You don't necessarily have to use `<TransitionSeries>` for transitions between scenes. You can also use it to animate the entrace or exit of a scene by putting a transition first or last in the `<TransitionSeries>`.--[See example](/docs/transitions/transitionseries#enter-and-exit-animations)--## Duration--In the above example, `A` is visible for 40 frames, `B` for 60 frames and the duration of the transition is 30 frames.-During this time, both slides are rendered. This means the total duration of the animation is `60 + 40 - 30 = 70`.--<TransitionsDuration />--## Presentations--A presentation determines the visual of animation.--<Presentations />--## Timings--A timing determines how long the animation takes and the animation curve.--<Timings />--## Audio transitions--See here how to include [audio effects](/docs/transitions/audio-transitions) in your transitions.--## Getting the duration of a transition--You can get the duration of a transition by calling `getDurationInFrames()` on the timing:--```tsx twoslash title="Assuming a framerate of 30fps"-import { springTiming } from "@remotion/transitions";--springTiming({ config: { damping: 200 } }).getDurationInFrames({ fps: 30 }); // 23-```--## Rules--<Step>1</Step> It is forbidden to have a transition that is longer than the duration-of the previous or next sequence. <br />-<Step>2</Step> There can be no two transitions next to each other. <br />-<Step>3</Step> There must be at least one sequence before or after a transition.--## See also--- [`@remotion/transitions`](/docs/transitions)-- [`<TransitionSeries>`](/docs/transitions/transitionseries)diff --git a/packages/docs/docs/transitions/index.mdx.bak b/packages/docs/docs/transitions/index.mdx.bakdeleted file mode 100644index 79de1d4fd4..0000000000--- a/packages/docs/docs/transitions/index.mdx.bak+++ /dev/null@@ -1,25 +0,0 @@-----image: /generated/articles-docs-transitions-index.png-sidebar_label: Overview-title: "@remotion/transitions"------_available from v4.0.53_--import Tabs from "@theme/Tabs";-import TabItem from "@theme/TabItem";-import { TableOfContents } from "../../components/TableOfContents/transitions";--This package provides the [`<TransitionSeries>`](/docs/transitions/transitionseries) component for transitioning between two scenes as well as timing presets.--## Installation--<Installation pkg="@remotion/transitions"/>--## API--<TableOfContents />--## License--[Remotion License](https://remotion.dev/license)diff --git a/packages/docs/docs/transitions/presentations/index.mdx.bak b/packages/docs/docs/transitions/presentations/index.mdx.bakdeleted file mode 100644index 887675de8f..0000000000--- a/packages/docs/docs/transitions/presentations/index.mdx.bak+++ /dev/null@@ -1,14 +0,0 @@-----image: /generated/articles-docs-transitions-presentations-index.png-title: Presentations-crumb: "@remotion/transitions"------A **presentation** together with a timing forms a transition.-Remotion provides certain presentations out of the box, but you can also [create your own](/docs/transitions/presentations/custom).--## Table of contents--import { Presentations } from "../../../components/TableOfContents/transitions/presentations";--<Presentations />diff --git a/packages/docs/docs/transitions/timings/index.mdx.bak b/packages/docs/docs/transitions/timings/index.mdx.bakdeleted file mode 100644index 85b4c79acd..0000000000--- a/packages/docs/docs/transitions/timings/index.mdx.bak+++ /dev/null@@ -1,24 +0,0 @@-----image: /generated/articles-docs-transitions-timings-index.png-title: Timings-crumb: "@remotion/transitions"------A **timing** together with a presentation forms a transition.-Remotion provides certain timings out of the box, but you can also [create your own](/docs/transitions/timings/custom).--## Available timings--import { Timings } from "../../../components/TableOfContents/transitions/timings";--<Timings />--## Getting the duration of a timing--You can get the duration of a transition by calling `getDurationInFrames()` on the timing:--```tsx twoslash title="Assuming a framerate of 30fps"-import { springTiming } from "@remotion/transitions";--springTiming({ config: { damping: 200 } }).getDurationInFrames({ fps: 30 }); // 23-```