Skip to content

🎥 Make videos programmatically with React

fix docs links

Jonny Burger4c30092aa11f
diff --git a/packages/docs/docs/config.mdx b/packages/docs/docs/config.mdx
index 76ed6416bd..b15499be15 100644
--- a/packages/docs/docs/config.mdx
+++ b/packages/docs/docs/config.mdx
@@ -308,7 +308,7 @@ The [command line flag](/docs/cli) `--quality` will take precedence over this op
_Available from Version 1.4._
-The "Constant Rate Factor" (CRF) of the output. [Use this setting to tell FFMPEG how to trade off size and quality.](encoding#controlling-quality-using-the-crf-setting)
+The "Constant Rate Factor" (CRF) of the output. [Use this setting to tell FFMPEG how to trade off size and quality.](/docs/encoding#controlling-quality-using-the-crf-setting)
Ranges for CRF scale, by codec:
diff --git a/packages/docs/docs/data-fetching.md b/packages/docs/docs/data-fetching.md
index a3ed6e17d0..d4ff301a7c 100644
--- a/packages/docs/docs/data-fetching.md
+++ b/packages/docs/docs/data-fetching.md
@@ -55,7 +55,7 @@ You need to clear all handles created by `delayRender` within 30 seconds after t
You can also customize duration, frame rate and dimensions based on asynchronous data fetching:
-- **See: [Dynamic duration, FPS & dimensions](dynamic-metadata)**
+- **See: [Dynamic duration, FPS & dimensions](/docs/dynamic-metadata)**
## See also
diff --git a/packages/docs/docs/dynamic-metadata.md b/packages/docs/docs/dynamic-metadata.md
index 1e1e1b2083..4c66788f12 100644
--- a/packages/docs/docs/dynamic-metadata.md
+++ b/packages/docs/docs/dynamic-metadata.md
@@ -20,7 +20,7 @@ export const VideoTesting: React.FC = () => <></>
_Available since v2.0._
-Using [Input props](parametrized-rendering) you can customize the content of your videos while rendering. But what about if you want to change the duration, frame rate or the dimensions of your video based on input props or asynchronous operations?
+Using [Input props](/docs/parametrized-rendering) you can customize the content of your videos while rendering. But what about if you want to change the duration, frame rate or the dimensions of your video based on input props or asynchronous operations?
Use the `getInputProps()` method to retrieve the props that you have passed as an input.
For example if you have passed `--props='{"hello": "world"}'` as a command line flag, you can read the value in your Remotion project like this:
@@ -136,4 +136,4 @@ Make sure to pass the parameter to both of these functions, so the input props a
## See also
-- [`getInputProps()`](get-input-props)
+- [`getInputProps()`](/docs/get-input-props)
diff --git a/packages/docs/docs/encoding.md b/packages/docs/docs/encoding.md
index a35894a930..77552d0e6f 100644
--- a/packages/docs/docs/encoding.md
+++ b/packages/docs/docs/encoding.md
@@ -148,7 +148,7 @@ VP9
</tr>
</table>
-You can [set a CRF in the config file using the `Config.Output.setCrf()`](config#setcrf) function or use the [`--crf`](/docs/cli#flags) command line flag.
+You can [set a CRF in the config file using the `Config.Output.setCrf()`](/docs/config#setcrf) function or use the [`--crf`](/docs/cli#flags) command line flag.
## Controlling quality using ProRes profile
diff --git a/packages/docs/docs/freeze.mdx b/packages/docs/docs/freeze.mdx
index 38e62b4f4b..8f58237bb3 100644
--- a/packages/docs/docs/freeze.mdx
+++ b/packages/docs/docs/freeze.mdx
@@ -47,5 +47,5 @@ const MyVideo = () => {
## See also
-- [`<Video/>` Playback speed](video#controlling-playback-speed)
-- [`useCurrentFrame()`](use-current-frame)
+- [`<Video/>` Playback speed](/docs/video#controlling-playback-speed)
+- [`useCurrentFrame()`](/docs/use-current-frame)
diff --git a/packages/docs/docs/get-audio-data.md b/packages/docs/docs/get-audio-data.md
index dbda8f4a01..8867165926 100644
--- a/packages/docs/docs/get-audio-data.md
+++ b/packages/docs/docs/get-audio-data.md
@@ -59,9 +59,9 @@ If you pass in the same argument to `src` multiple times, it will return a cache
## Alternatives
-If you need only the duration, prefer [`getAudioDuration()`](get-audio-duration) which is faster because it doesn't need to read waveform data.
+If you need only the duration, prefer [`getAudioDuration()`](/docs/get-audio-duration) which is faster because it doesn't need to read waveform data.
-Use the [`useAudioData()`](use-audio-data) helper hook to not have to do state management yourself and to wrap the call in [`delayRender()`](delay-render).
+Use the [`useAudioData()`](/docs/use-audio-data) helper hook to not have to do state management yourself and to wrap the call in [`delayRender()`](/docs/delay-render).
## See also
diff --git a/packages/docs/docs/get-input-props.md b/packages/docs/docs/get-input-props.md
index af3e853d1f..ba040963aa 100644
--- a/packages/docs/docs/get-input-props.md
+++ b/packages/docs/docs/get-input-props.md
@@ -33,4 +33,4 @@ In this example, the props also get passed to the component of the composition w
## See also
-- [Dynamic duration, FPS & dimensions](dynamic-metadata)
+- [Dynamic duration, FPS & dimensions](/docs/dynamic-metadata)
diff --git a/packages/docs/docs/gif.md b/packages/docs/docs/gif.md
index 4f657d68a6..517208b406 100644
--- a/packages/docs/docs/gif.md
+++ b/packages/docs/docs/gif.md
@@ -4,7 +4,7 @@ sidebar_label: API - @remotion/gif
title: "@remotion/gif"
---
-You can install this package from NPM to get a component for displaying GIFs that synchronize with Remotions [`useCurrentFrame()`](use-current-frame).
+You can install this package from NPM to get a component for displaying GIFs that synchronize with Remotions [`useCurrentFrame()`](/docs/use-current-frame).
```bash
npm i @remotion/gif
@@ -16,7 +16,7 @@ npm i @remotion/gif
_required_
-The source of the GIF. Can be an URL or a local image - see [Importing assets](assets).
+The source of the GIF. Can be an URL or a local image - see [Importing assets](/docs/assets).
### `width`
diff --git a/packages/docs/docs/legacy-babel-loader.md b/packages/docs/docs/legacy-babel-loader.md
index 457d9c33d1..d209da4456 100644
--- a/packages/docs/docs/legacy-babel-loader.md
+++ b/packages/docs/docs/legacy-babel-loader.md
@@ -5,7 +5,7 @@ id: legacy-babel
In Remotion 2.0, the traditional transpilation of Javascript and Typescript using the `babel-loader` has been replaced by the faster `esbuild-loader` by default.
-If you for some reason need to go back to the previous behavior, you may [override the Webpack configuration](webpack). Remember that overriding the Webpack configuration works reducer-style, where you get the default configuration in a function argument and you return the modified version of your config.
+If you for some reason need to go back to the previous behavior, you may [override the Webpack configuration](/docs/webpack). Remember that overriding the Webpack configuration works reducer-style, where you get the default configuration in a function argument and you return the modified version of your config.
We provide a compatibility package `@remotion/babel-loader` that you can install into your Remotion project and use the function `replaceLoadersWithBabel()` to swap out the ESBuild loader with the old Babel one that was in Remotion 1.0
@@ -29,4 +29,4 @@ Config.Bundling.overrideWebpackConfig((currentConfiguration) => {
## See also
-- [Custom Webpack config](webpack)
+- [Custom Webpack config](/docs/webpack)
diff --git a/packages/docs/docs/overwriting-webpack-config.md b/packages/docs/docs/overwriting-webpack-config.md
index c67aceeef1..9d82f16a4f 100644
--- a/packages/docs/docs/overwriting-webpack-config.md
+++ b/packages/docs/docs/overwriting-webpack-config.md
@@ -240,7 +240,7 @@ Config.Bundling.overrideWebpackConfig((currentConfiguration) => {
### Use legacy babel loader
-See [Using legacy Babel transpilation](legacy-babel).
+See [Using legacy Babel transpilation](/docs/legacy-babel).
## Customizing configuration file location
diff --git a/packages/docs/docs/visualize-audio.md b/packages/docs/docs/visualize-audio.md
index 4c231a93ef..5ac1e80c75 100644
--- a/packages/docs/docs/visualize-audio.md
+++ b/packages/docs/docs/visualize-audio.md
@@ -5,7 +5,7 @@ id: visualize-audio
_Part of the `@remotion/media-utils`_ package of helper functions.
-This function takes in `AudioData` (preferrably fetched by the [`useAudioData()`](use-audio-data) hook) and processes it in a way that makes visualizing the audio that is playing at the current frame easy.
+This function takes in `AudioData` (preferrably fetched by the [`useAudioData()`](/docs/use-audio-data) hook) and processes it in a way that makes visualizing the audio that is playing at the current frame easy.
## Arguments
@@ -13,7 +13,7 @@ This function takes in `AudioData` (preferrably fetched by the [`useAudioData()`
The only argument for this function is an object containing the following values:
-- `audioData`: `AudioData` - an object containing audio data. You can fetch this object using [`useAudioData()`](use-audio-data) or [`getAudioData()`](get-audio-data).
+- `audioData`: `AudioData` - an object containing audio data. You can fetch this object using [`useAudioData()`](/docs/use-audio-data) or [`getAudioData()`](/docs/get-audio-data).
- `frame`: `number` - the time of the track that you want to get the audio information for. The `frame` always refers to the position in the audio track - if you have shifted or trimmed the audio in your timeline, the frame returned by `useCurrentFrame` must also be tweaked before you pass it into this function.
@@ -31,7 +31,7 @@ Usually the values on left side of the array can become much larger than the val
## Example
-In this example, we render a bar chart visualizing the audio spectrum of an audio file we imported using [`useAudioData()`](use-audio-data) and `visualizeAudio()`.
+In this example, we render a bar chart visualizing the audio spectrum of an audio file we imported using [`useAudioData()`](/docs/use-audio-data) and `visualizeAudio()`.
```tsx twoslash
import {Audio, useCurrentFrame, useVideoConfig} from 'remotion'
@@ -72,7 +72,7 @@ export const MyComponent: React.FC = () => {
## See also
- [Audio visualization](/docs/audio-visualization)
-- [`useAudioData()`](/docs/use-audio-data)
+- [`useAudioData()`](/docs//docs/use-audio-data)
- [`getAudioData()`](/docs/get-audio-data)
- [`<Audio/>`](/docs/audio)
- [Using audio](/docs/using-audio)