Skip to content

Commit

Permalink
Make all internal links relative
Browse files Browse the repository at this point in the history
Otherwise the links will break when we start versioning the docs.
  • Loading branch information
clabe45 committed Jul 25, 2023
1 parent 801aca7 commit b4bfc36
Show file tree
Hide file tree
Showing 16 changed files with 49 additions and 49 deletions.
2 changes: 1 addition & 1 deletion docs/getting-started/add-effects.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,4 +30,4 @@ movie.effects.push(effect);

## Next

Now that you have an effect, you can [render the movie](/docs/getting-started/render-the-movie)!
Now that you have an effect, you can [render the movie](render-the-movie)!
2 changes: 1 addition & 1 deletion docs/getting-started/add-layers.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,4 +32,4 @@ movie.layers.push(layer);

## Next

Now that you have a layer, you can [add effects](/docs/getting-started/add-effects).
Now that you have a layer, you can [add effects](add-effects).
2 changes: 1 addition & 1 deletion docs/getting-started/create-a-movie.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,4 +44,4 @@ const movie = new etro.Movie({

## Next

Now that you have a movie, you can [add layers](/docs/getting-started/add-layers).
Now that you have a movie, you can [add layers](add-layers).
2 changes: 1 addition & 1 deletion docs/getting-started/installation.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,4 @@ yarn add etro

## Next

Now that you have Etro installed, you can [create a movie](/docs/getting-started/create-a-movie)!
Now that you have Etro installed, you can [create a movie](create-a-movie)!
2 changes: 1 addition & 1 deletion docs/reference/effects/brightness.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ const effect = new etro.effect.Brightness({

:::tip

This is a [Dynamic Property](/docs/reference/dynamic-properties).
This is a [Dynamic Property](../dynamic-properties).

:::

Expand Down
6 changes: 3 additions & 3 deletions docs/reference/effects/chroma-key.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ const effect = new etro.effect.ChromaKey({

:::tip

This is a [Dynamic Property](/docs/reference/dynamic-properties).
This is a [Dynamic Property](../dynamic-properties).

:::

Expand All @@ -38,7 +38,7 @@ The color to remove. Defaults to black (`{ r: 0, g: 0, b: 0 }`).

:::tip

This is a [Dynamic Property](/docs/reference/dynamic-properties).
This is a [Dynamic Property](../dynamic-properties).

:::

Expand All @@ -48,7 +48,7 @@ How much error to allow (ranging from 0 to 255). Defaults to 0.

:::tip

This is a [Dynamic Property](/docs/reference/dynamic-properties).
This is a [Dynamic Property](../dynamic-properties).

:::

Expand Down
2 changes: 1 addition & 1 deletion docs/reference/effects/contrast.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ const effect = new etro.effect.Contrast({

:::tip

This is a [Dynamic Property](/docs/reference/dynamic-properties).
This is a [Dynamic Property](../dynamic-properties).

:::

Expand Down
2 changes: 1 addition & 1 deletion docs/reference/effects/custom.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ export class ChromaKey extends etro.effect.Shader {
}
```

The constructor takes a [dynamic](/docs/reference/dynamic-properties) number that will be used to set the threshold uniform. The `etro.effect.Shader` class takes a single argument, which is an object containing the shader source code. We will fill this in in the next step.
The constructor takes a [dynamic](../dynamic-properties) number that will be used to set the threshold uniform. The `etro.effect.Shader` class takes a single argument, which is an object containing the shader source code. We will fill this in in the next step.

## Writing the Shader

Expand Down
16 changes: 8 additions & 8 deletions docs/reference/effects/elliptical-mask.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ const effect = new etro.effect.EllipticalMask({

:::tip

This is a [Dynamic Property](/docs/reference/dynamic-properties).
This is a [Dynamic Property](../dynamic-properties).

:::

Expand All @@ -37,7 +37,7 @@ The x-coordinate of the center of the ellipse.

:::tip

This is a [Dynamic Property](/docs/reference/dynamic-properties).
This is a [Dynamic Property](../dynamic-properties).

:::

Expand All @@ -47,7 +47,7 @@ The y-coordinate of the center of the ellipse.

:::tip

This is a [Dynamic Property](/docs/reference/dynamic-properties).
This is a [Dynamic Property](../dynamic-properties).

:::

Expand All @@ -57,7 +57,7 @@ The horizontal radius of the ellipse.

:::tip

This is a [Dynamic Property](/docs/reference/dynamic-properties).
This is a [Dynamic Property](../dynamic-properties).

:::

Expand All @@ -67,7 +67,7 @@ The vertical radius of the ellipse.

:::tip

This is a [Dynamic Property](/docs/reference/dynamic-properties).
This is a [Dynamic Property](../dynamic-properties).

:::

Expand All @@ -77,7 +77,7 @@ The rotation angle in radians. Defaults to `0`.

:::tip

This is a [Dynamic Property](/docs/reference/dynamic-properties).
This is a [Dynamic Property](../dynamic-properties).

:::

Expand All @@ -87,7 +87,7 @@ The start angle in radians. Defaults to `0`.

:::tip

This is a [Dynamic Property](/docs/reference/dynamic-properties).
This is a [Dynamic Property](../dynamic-properties).

:::

Expand All @@ -97,7 +97,7 @@ The end angle in radians. Defaults to `2 * Math.PI`.

:::tip

This is a [Dynamic Property](/docs/reference/dynamic-properties).
This is a [Dynamic Property](../dynamic-properties).

:::

Expand Down
2 changes: 1 addition & 1 deletion docs/reference/effects/pixelate.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ const effect = new etro.effect.Pixelate({

:::tip

This is a [Dynamic Property](/docs/reference/dynamic-properties).
This is a [Dynamic Property](../dynamic-properties).

:::

Expand Down
2 changes: 1 addition & 1 deletion docs/reference/effects/shader.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

`etro.effect.Shader` is the base class for all effects that render the target with a custom GLSL fragment shader.

When using this effect, you need to provide a fragment shader source and a list of uniforms. The uniforms are automatically updated when the effect is applied. There needs to be a property with the same name as each custom uniform in the effect class. The property can be a [`Dynamic`](/docs/reference/dynamic-properties) or a regular value.
When using this effect, you need to provide a fragment shader source and a list of uniforms. The uniforms are automatically updated when the effect is applied. There needs to be a property with the same name as each custom uniform in the effect class. The property can be a [`Dynamic`](../dynamic-properties) or a regular value.

## Usage

Expand Down
4 changes: 2 additions & 2 deletions docs/reference/layers/audio.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ The time to start playing the audio from. The default value is `0`.

:::tip

This is a [Dynamic Property](/docs/reference/dynamic-properties).
This is a [Dynamic Property](../dynamic-properties).

:::

Expand All @@ -44,7 +44,7 @@ Whether the audio is muted. The default value is `false`.

:::tip

This is a [Dynamic Property](/docs/reference/dynamic-properties).
This is a [Dynamic Property](../dynamic-properties).

:::

Expand Down
8 changes: 4 additions & 4 deletions docs/reference/layers/image.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ The `<img>` element to render.

:::tip

This is a [Dynamic Property](/docs/reference/dynamic-properties).
This is a [Dynamic Property](../dynamic-properties).

:::

Expand All @@ -47,7 +47,7 @@ The x position to crop the image from. The default value is `0`.

:::tip

This is a [Dynamic Property](/docs/reference/dynamic-properties).
This is a [Dynamic Property](../dynamic-properties).

:::

Expand All @@ -57,7 +57,7 @@ The y position to crop the image from. The default value is `0`.

:::tip

This is a [Dynamic Property](/docs/reference/dynamic-properties).
This is a [Dynamic Property](../dynamic-properties).

:::

Expand All @@ -67,7 +67,7 @@ The width to crop the image to. The default value is `null`, which means the ima

:::tip

This is a [Dynamic Property](/docs/reference/dynamic-properties).
This is a [Dynamic Property](../dynamic-properties).

:::

Expand Down
16 changes: 8 additions & 8 deletions docs/reference/layers/text.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ const layer = new etro.layer.Text({

:::tip

This is a [Dynamic Property](/docs/reference/dynamic-properties).
This is a [Dynamic Property](../dynamic-properties).

:::

Expand All @@ -44,7 +44,7 @@ The text to render.

:::tip

This is a [Dynamic Property](/docs/reference/dynamic-properties).
This is a [Dynamic Property](../dynamic-properties).

:::

Expand All @@ -54,7 +54,7 @@ The color of the text. The default value is `new etro.Color(0, 0, 0, 1)`.

:::tip

This is a [Dynamic Property](/docs/reference/dynamic-properties).
This is a [Dynamic Property](../dynamic-properties).

:::

Expand All @@ -64,7 +64,7 @@ The CSS font to use. The default value is `'10px sans-serif'`.

:::tip

This is a [Dynamic Property](/docs/reference/dynamic-properties).
This is a [Dynamic Property](../dynamic-properties).

:::

Expand All @@ -74,7 +74,7 @@ The x position to render the text at. The default value is `0`.

:::tip

This is a [Dynamic Property](/docs/reference/dynamic-properties).
This is a [Dynamic Property](../dynamic-properties).

:::

Expand All @@ -84,7 +84,7 @@ The y position to render the text at. The default value is `0`.

:::tip

This is a [Dynamic Property](/docs/reference/dynamic-properties).
This is a [Dynamic Property](../dynamic-properties).

:::

Expand All @@ -94,7 +94,7 @@ The alignment of the text. The default value is `'left'`.

:::tip

This is a [Dynamic Property](/docs/reference/dynamic-properties).
This is a [Dynamic Property](../dynamic-properties).

:::

Expand All @@ -104,7 +104,7 @@ The baseline of the text. The default value is `'alphabetic'`.

:::tip

This is a [Dynamic Property](/docs/reference/dynamic-properties).
This is a [Dynamic Property](../dynamic-properties).

:::

Expand Down
12 changes: 6 additions & 6 deletions docs/reference/layers/video.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ The `<video>` element to render.

:::tip

This is a [Dynamic Property](/docs/reference/dynamic-properties).
This is a [Dynamic Property](../dynamic-properties).

:::

Expand All @@ -49,7 +49,7 @@ The x position to crop the video from. The default value is `0`.

:::tip

This is a [Dynamic Property](/docs/reference/dynamic-properties).
This is a [Dynamic Property](../dynamic-properties).

:::

Expand All @@ -59,7 +59,7 @@ The y position to crop the video from. The default value is `0`.

:::tip

This is a [Dynamic Property](/docs/reference/dynamic-properties).
This is a [Dynamic Property](../dynamic-properties).

:::

Expand All @@ -69,7 +69,7 @@ The width to crop the video to. The default value is `null`, which means the vid

:::tip

This is a [Dynamic Property](/docs/reference/dynamic-properties).
This is a [Dynamic Property](../dynamic-properties).

:::

Expand All @@ -83,7 +83,7 @@ The time to start playing the video from. The default value is `0`.

:::tip

This is a [Dynamic Property](/docs/reference/dynamic-properties).
This is a [Dynamic Property](../dynamic-properties).

:::

Expand All @@ -93,7 +93,7 @@ Whether the video should be muted. The default value is `false`.

:::tip

This is a [Dynamic Property](/docs/reference/dynamic-properties).
This is a [Dynamic Property](../dynamic-properties).

:::

Expand Down
Loading

0 comments on commit b4bfc36

Please sign in to comment.