Skip to content

🎥 Make videos programmatically with React

Update presentation.mdx

Jonny Burger0b93bd3fe5f2
diff --git a/packages/docs/docs/contributing/presentation.mdx b/packages/docs/docs/contributing/presentation.mdx
index 55b86253b7..b293749655 100644
--- a/packages/docs/docs/contributing/presentation.mdx
+++ b/packages/docs/docs/contributing/presentation.mdx
@@ -13,30 +13,16 @@ If this is your first contribution, see the <a href="https://github.com/remotion
## How to proceed
-<Step>1</Step> Create a custom transition. Loook at the <a href="/docs/transitions/presentations/custom">
- custom presentation
-</a> docs to see how it's done.
-<br />
-<Step>2</Step>Add your presentation to the remotion monorepository under <code>
- packages/transitions/src/presentations
-</code>
-.<br />
-<Step>3</Step> In the <code>bundle.ts</code>, add your presentation to the <code>
- presentations array
-</code>
-.
-<br />
+<Step>1</Step> Create a custom transition. Loook at the <a href="/docs/transitions/presentations/custom">custom presentation</a> docs to see how it's done.<br/>
+<Step>2</Step>Add your presentation to the remotion monorepository under <code>packages/transitions/src/presentations</code>.<br/>
+<Step>3</Step> In the <code>bundle.ts</code>, add your presentation to the <code>presentations array</code>.
+<br/>
```tsx
const presentations = ['slide', 'flip', 'wipe', 'fade', ..., 'yourPresentation'];
```
-<Step>4</Step> Add your presentation to the <code>exports</code> of the <code>
- package.json
-</code> at <code>packages/transition/package.json</code> as well as to the <code>
- typesVersions
-</code>
-, so it can be correctly imported in other remotion projects.
+<Step>4</Step> Add your presentation to the <code>exports</code> of the <code>package.json</code> at <code>packages/transition/package.json</code> as well as to the <code>typesVersions</code>, so it can be correctly imported in other remotion projects.
```json
"exports": {
@@ -58,11 +44,7 @@ If this is your first contribution, see the <a href="https://github.com/remotion
Make sure to `pnpm build` in `remotion/packages/transitions` so your transition gets usable in your remotion repository.
-<Step>5</Step> Write a documentation for your presentation. Have a look at the
-presentations linked in the <a href="/docs/transitions/presentations">
- presentation
-</a> docs for reference. The documentation should consist of the following
-parts:
+<Step>5</Step> Write a documentation for your presentation. Have a look at the presentations linked in the <a href="/docs/transitions/presentations">presentation</a> docs for reference. The documentation should consist of the following parts:
- A `short description` of what your presentation does.
- A `demo` of your presentation. For instructions, have a look at the `demo` paragraph in the [contributing to the documentation](/docs/contributing/docs#demos) page, or have a look at the source code of other presentation documentations ([presentationType].mdx files).
@@ -71,11 +53,7 @@ parts:
&nbsp;&nbsp;&nbsp;&nbsp; For more help on how to write a documentation, see the [contributing to the documentation](/docs/contributing/docs) page.
-<Step>6</Step> Add your presentation to the table of contents at <a href="/docs/transitions/presentations">
- docs/transitions/presentations
-</a> by creating a <code>&lt;TOCItem&gt;</code> containing a link to your
-documentation, a <code>&lt;PresentationPreview</code> displaying your
-presentation and a one-liner describing what your presentation does.
+<Step>6</Step> Add your presentation to the table of contents at <a href="/docs/transitions/presentations">docs/transitions/presentations</a> by creating a <code>&lt;TOCItem&gt;</code> containing a link to your documentation, a <code>&lt;PresentationPreview</code> displaying your presentation and a one-liner describing what your presentation does.
```tsx title="Example TOCItem"
<TOCItem link="/docs/transitions/presentations/yourPresentation">
@@ -84,9 +62,9 @@ presentation and a one-liner describing what your presentation does.
durationRestThreshold={0.001}
effect={yourPresentation()}
/>
- <div style={{flex: 1, marginLeft: 10}}>
+ <div style={{ flex: 1, marginLeft: 10 }}>
<strong>
- <code>{'yourPresentation()'}</code>
+ <code>{"yourPresentation()"}</code>
</strong>
<div>Insert one-liner describing your presentation</div>
</div>