packages/docs/docs/contributing/docs.mdx
import Tabs from '@theme/Tabs'; import TabItem from '@theme/TabItem';
Good documentation makes the difference between frustration and joy! We happily accept contributions to the Remotion documentation.
At the bottom of each page, the Improve this page button is the easiest way to edit a page. You don't even need to setup the repository locally.
<Step>1</Step> Set up the Remotion repository <a href="/docs/contributing">according to the instructions here</a>.
<Step>2</Step> Create a new <code>.mdx</code> document in the <code>packages/docs/docs</code> folder.
<Step>3</Step> Add the document to <code>packages/docs/sidebars.ts</code>.
<Step>4</Step> Write what you have to say!
<Step>5</Step> Run <code>bun render-cards.ts</code> in <code>packages/docs</code> to generate preview cards that will show up if the documentation page is shared on social media.
useVideoConfig(), not useVideoConfig().useVideoConfig(), not useVideoConfig.You can add codesnippets by beginning a paragraph with three backticks: <code>```</code>. The code will be highlighted according to the language you specify after the backticks.
<p> <code>```ts</code> will highlight the code as TypeScript. </p>You can add a line stating <code>// ---cut---</code> and only the content below will be displayed.
</p>Add a title to a code snippet by adding a line with <code>```ts twoslash title="file.ts"</code>:
console.log('Hello World');
Use <Step> to create lists:
- <Step>1</Step> Step 1
- <Step>2</Step> Step 2
The formatting around <Step> is delicate. Keep one step per line, add a space after </Step>, and preserve an explicit line break ( or ) when the steps are written as a compact inline list.
Use <AvailableFrom> if an API, feature, option, parameter or behavior was added in a specific Remotion version:
# prefetch()<AvailableFrom v="4.0.0" />
For section headings:
## Saving to another cloud<AvailableFrom v="3.2.23" />
API reference pages should ideally have a compatibility table before ## See also:
## Compatibility
<CompatibilityTable chrome firefox safari nodejs bun serverlessFunctions clientSideRendering={false} serverSideRendering player studio />
Use <ExperimentalBadge /> to mark something as experimental:
<ExperimentalBadge>
<p>This feature is still experimental.</p>
</ExperimentalBadge>
Using <Demo type="[demo-name]" /> you can render a Remotion Player and specify props that can be updated.
<Demo type="rect"/>
The demo needs to be implemented in packages/docs/components/demos/index.tsx.