🎥 Make videos programmatically with React
better
Patric Salvisberg040b1f0f425a
diff --git a/packages/docs/docs/contributing/presentation.md b/packages/docs/docs/contributing/presentation.mdindex 0265ca5f11..72e98a7688 100644--- a/packages/docs/docs/contributing/presentation.md+++ b/packages/docs/docs/contributing/presentation.md@@ -1,26 +1,28 @@---image: /generated/articles-docs-contributing-feature.png-title: Contributing your own presentation-crumb: Transition+title: Contribute your own presentation+sidebar_label: Adding new presentations+crumb: Contributing----Make your custom presentation accessible for others.+Make your custom presentation accessible for others in the `@remotion/transitions` package.-## Setup+## Setup the remotion project-If not already done, see the [CONTRIBUTING.md](https://github.com/remotion-dev/remotion/blob/main/CONTRIBUTING.md) file for instructions on how to set up the remotion project.+If this is your first contribution, see the <a href="https://github.com/remotion-dev/remotion/blob/main/CONTRIBUTING.md">CONTRIBUTING.md</a> file for general information and instructions on how to set up the remotion project.## How to proceed-1. Create a custom transition. Loook at the [custom presentation](/docs/transitions/presentations/custom) docs to see how it's done.-2. Add your presentation to the remotion monorepository under `packages/transitions/src/presentations`.-3. In the `rollup.config.js`, add your presentation to the `presentations` array.+<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></code>packages/transitions/src/presentations`.<br/>+<Step>3</Step> In the <code></code>`rollup.config.js`, add your presentation to the `presentations` array.+<br/>```tsxconst presentations = ['slide', 'flip', 'wipe', 'fade', ..., 'yourPresentation'];```-4. Add your presentation to the `exports` of the `package.json` at `packages/transition/package.json` as well as to the `typesVersions`, 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": {@@ -32,7 +34,7 @@ If not already done, see the [CONTRIBUTING.md](https://github.com/remotion-dev/r},},"typesVersions": {- ">=1.0": {+ ">=1.0": {"yourPresentation": ["dist/presentations/yourPresentation.d.ts"],@@ -42,11 +44,14 @@ If not already done, see the [CONTRIBUTING.md](https://github.com/remotion-dev/rMake sure to rebuild `remotion/packages/transitions` so your transition gets usable in your remotion repository.-5. Write a documentation for your presentation. Take a look at the presentations linked in the [presentation](/docs/transitions/presentations) docs to get an idea. The documentation should consist of:+<Step>5</Step> Write a documentation for your presentation. Have a lookat the presentations linked in the <a href="/docs/transitions/presentations">presentation</a> docs for reference. The documentation should consist of the following parts:- - A demo of your presentation. See [this](/docs/contributing/docs#demos) documentation for instructions on how to create a demo, or have a look at the source code of other presentation documentations ([presentationType].mdx files).- - Example code showing how to use your presentation and a short description of what it does. See the [type safe snippets] docs for instructions on how to create a snippet.- - The API of your presentation+- A short description of what your presentation does.+- A demo of your presentation. For instructions, have a look at 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).+- An example code snippet showing how to use your presentation . See the [type safe snippets](/docs/contributing/docs#type-safe-snippets) docs for instructions on how to create typesafe code snippets.+- The API of your presentation++ For more information on how to write documentation, see the [contributing to the documentation](/docs/contributing/docs) page.## See alsodiff --git a/packages/docs/sidebars.js b/packages/docs/sidebars.jsindex 2f5f88a490..5fe8a1e628 100644--- a/packages/docs/sidebars.js+++ b/packages/docs/sidebars.js@@ -793,6 +793,7 @@ module.exports = {"contributing/formatting","contributing/bounty","contributing/rust",+ "contributing/presentation","authoring-packages","prereleases",],