Visualize Your Ideas With Code
docs: fix broken links (#653)
Jacoba0d6a1cc62fb
diff --git a/packages/2d/src/components/index.ts b/packages/2d/src/components/index.tsindex 9cabff31..57de2a6d 100644--- a/packages/2d/src/components/index.ts+++ b/packages/2d/src/components/index.ts@@ -1,5 +1,6 @@export * from './Circle';export * from './CubicBezier';+export * from './Curve';export * from './Icon';export * from './Img';export * from './Grid';diff --git a/packages/docs/docs/components/code-block.mdx b/packages/docs/docs/components/code-block.mdxindex 4a1b2542..99103dd7 100644--- a/packages/docs/docs/components/code-block.mdx+++ b/packages/docs/docs/components/code-block.mdx@@ -151,7 +151,7 @@ yield * codeRef().selection(lines(1, 2));```To remove a selection, the value of `.selection()` signal can be set to its-[`DEFAULT`](signal-default), i.e. "all selected". For example:+[`DEFAULT`][signal-default], i.e. "all selected". For example:```tsimport {DEFAULT} from '@motion-canvas/core/lib/signals';diff --git a/packages/docs/docs/getting-started/logging.mdx b/packages/docs/docs/getting-started/logging.mdxindex 3d7e665e..b85b4104 100644--- a/packages/docs/docs/getting-started/logging.mdx+++ b/packages/docs/docs/getting-started/logging.mdx@@ -40,9 +40,8 @@ side.## PayloadsIn some cases you might want to have a bit more detail in your log messages like-a `stacktrace` or an `object`. That's where-[`LogPayloads`](/api/core/index/LogPayload) come in. These can be used to-provide more information to your log messages.+a `stacktrace` or an `object`. You can use payloads to provide more information+to your log messages.```tslogger.debug({@@ -71,7 +70,7 @@ don't have to `useLogger` manually and create a payload.## ProfilingBesides logging messages its also possible to profile certain sections of code-with the [`Logger`](/api/core/index/Logger):+with the `Logger`:```tslogger.profile('id'); // <-- starts the profilingdiff --git a/packages/docs/docs/getting-started/media.mdx b/packages/docs/docs/getting-started/media.mdxindex e7c3103a..92885869 100644--- a/packages/docs/docs/getting-started/media.mdx+++ b/packages/docs/docs/getting-started/media.mdx@@ -4,6 +4,7 @@ slug: /media---import AnimationPlayer from '@site/src/components/AnimationPlayer';+import {VideoSettings} from '@site/src/Icon/VideoSettings';# Media@@ -26,9 +27,8 @@ import audio from '../audio/voice.mp3';```Once imported we need to let Motion Canvas know that we want to use this audio-file. We can do this by specifying the-[`audio`](/api/core/index/ProjectConfig#audio) property in the-[`ProjectConfiguration`](/api/core/index/ProjectConfig):+file. We can do this by specifying the `audio` property in the project+configuration:```tsexport default makeProject({@@ -42,17 +42,13 @@ If we open the editor now, we should see that your audio track has been added.However, it's not always ideal to start with the audio at the beginning.-Sometimes it's better to start with a bit of delay. This can be done by using-the [`audioOffset`](/api/core/index/ProjectConfig#audioOffset) property and-specifying a amount of seconds.--```ts-export default makeProject({- // ...- audio: audio,- audioOffset: 1.5, // delays the audio by 1.5 second-});-```+Sometimes it's better to start with a bit of delay. After configuring the audio,+you can edit the offset in the Video Settings <VideoSettings+ className="icon-inline"+ alt="Video Settings"+ title="Video Settings"+/> tab. You can also hold <kbd>SHIFT</kbd> and drag the audio track left and+right directly on the timeline.diff --git a/packages/docs/docs/migration/3.0.0.mdx b/packages/docs/docs/migration/3.0.0.mdxindex 08a24657..92044f4b 100644--- a/packages/docs/docs/migration/3.0.0.mdx+++ b/packages/docs/docs/migration/3.0.0.mdx@@ -19,15 +19,15 @@ This version introduces multiple name changes that are meant to make the codemore readable and less prone to collisions with already existing types. Makesure to replace the following names in your codebase:-| Old name | New name |-| ------------------------------- | ------------------------------------------------------------------------------- |-| `Image` | [`Img`](/api/2d/components/Img) |-| `Text` | [`Txt`](/api/2d/components/Txt) |-| `Rect` (the type, not the node) | [`BBox`](/api/core/types/BBox) |-| `Node.getCacheRect` | [`Node.getCacheBBox`](/api/2d/components/Node#getCacheBBox) |-| `Node.cacheRect` | [`Node.cacheBBox`](/api/2d/components/Node#cacheBBox) |-| `Node.fullCacheRect` | [`Node.fullCacheBBox`](/api/2d/components/Node#fullCacheBBox) |-| `CodeBlock.selectionOpacity` | [`CodeBlock.unselectedOpacity`](/api/2d/components/CodeBlock#unselectedOpacity) |+| Old name | New name |+| ------------------------------- | ------------------------------------------------------------- |+| `Image` | [`Img`](/api/2d/components/Img) |+| `Text` | [`Txt`](/api/2d/components/Txt) |+| `Rect` (the type, not the node) | [`BBox`](/api/core/types/BBox) |+| `Node.getCacheRect` | [`Node.getCacheBBox`](/api/2d/components/Node#getCacheBBox) |+| `Node.cacheRect` | [`Node.cacheBBox`](/api/2d/components/Node#cacheBBox) |+| `Node.fullCacheRect` | [`Node.fullCacheBBox`](/api/2d/components/Node#fullCacheBBox) |+| `CodeBlock.selectionOpacity` | `CodeBlock.unselectedOpacity` |## Project configurationdiff --git a/packages/docs/docusaurus.config.js b/packages/docs/docusaurus.config.jsindex 6bd10ce8..4b4ff915 100644--- a/packages/docs/docusaurus.config.js+++ b/packages/docs/docusaurus.config.js@@ -6,8 +6,8 @@ const config = {tagline: 'Visualize complex ideas programmatically',url: 'https://motioncanvas.io',baseUrl: '/',- onBrokenLinks: 'log',- onBrokenMarkdownLinks: 'warn',+ onBrokenLinks: 'throw',+ onBrokenMarkdownLinks: 'throw',favicon: 'img/favicon.svg',organizationName: 'motion-canvas',projectName: 'motion-canvas.github.io',