writing-docs
Installation
Summary
Guidelines and templates for writing Remotion API documentation in MDX format.
- Create one
.mdxfile per API inpackages/docs/docs, add it tosidebars.ts, and runbun render-cards.tsto generate social preview cards - Use
###headings for API properties (not bullet points), add?suffix for optional parameters, and include default values naturally in descriptions - Prefer type-safe code snippets with
twoslashvalidation; use// ---cut---to hide imports and always addtitleattributes to example blocks - Link Remotion-specific terms to the terminology page, keep language brief and direct, avoid filler words, and address readers as "you"
- Use special components like
<AvailableFrom>,<CompatibilityTable>,<ExperimentalBadge>, and<Step>for version indicators, compatibility matrices, warnings, and numbered lists
SKILL.md
Writing Remotion Documentation
Documentation lives in packages/docs/docs as .mdx files.
Adding a new page
- Create a new
.mdxfile inpackages/docs/docs - Add the document to
packages/docs/sidebars.ts - Write the content following guidelines below
- Run
bun render-cards.tsinpackages/docsto generate social preview cards
Breadcrumb (crumb): If a documentation page belongs to a package, add crumb: '@remotion/package-name' to the frontmatter. This displays the package name as a breadcrumb above the title.
---
image: /generated/articles-docs-my-package-my-api.png
title: '<MyComponent>'
crumb: '@remotion/my-package'
---
Related skills
More from remotion-dev/remotion
web-renderer-test
Add a test case to the web renderer
913make-pr
Open a pull request for the current feature
843video-report
Generate a report about a video
799docs-demo
Add an interactive demo to the Remotion documentation. Use when creating a new <Demo> component for docs pages.
665add-expert
Add a new expert to the Remotion experts page
632add-sfx
Add a new sound effect to @remotion/sfx
620