🎥 Make videos programmatically with React
finish articles
Jonny Burger10d5f27c1b68
diff --git a/packages/docs/docs/contributing/docs.md b/packages/docs/docs/contributing/docs.mdnew file mode 100644index 0000000000..87a385960e--- /dev/null+++ b/packages/docs/docs/contributing/docs.md@@ -0,0 +1,104 @@+---+image: /generated/articles-docs-contributing-docs.png+title: Contributing to the documentation+sidebar_label: Writing docs+crumb: Contributing+---++Good documentation makes the difference between frustration and joy! We are happy to accept contributions to the Remotion documentation.++## Editing an existing page++Each page has a button `Improve this page` at the bottom. This is the easiest way to edit a page, since you do not need to setup the repository locally.++## Submitting a new page++:::note+**Easy mode**: Create a [GitHub Gist](https://gist.github.com/) with the content of the page, then send it to us via GitHub issue or Email. We will be happy to add it to the docs!+:::++<Step>1</Step> Set up the Remotion repository <a href="/docs/contributing">according the instructions here</a>. <br/>+<Step>2</Step> Create a new <code>.md</code> document in the <code>packages/docs/docs</code> folder. <br/>+<Step>3</Step> Add the document to <code>packages/docs/sidebars.js</code>.<br/>+<Step>4</Step> Write what you have to say!<br/>+<Step>5</Step> Run <code>node extract-articles.mjs</code> in <code>packages/docs</code> to generate preview cards that will show up if the documentation page is shared on social media.<br/>++## Language guidelines++- **Keep it brief**: Developers don't like to read, so adding too much words will lead to information being lost.+- **Link to terminology**: When using a Remotion-specific term, link to the [terminology](/docs/terminology) page that explains it.+- **Avoid emotions** and filler language ("Great! Let's move on to the next step"). Usually it can be removed without losing any information.+- **Separate into multiple paragraphs** if a section is becoming too long.+- **Address the reader as "you"** and not "we".++## Adding code snippets++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>++### Type safe snippets++<p>+<code>```ts twoslash</code> will make a snippet type-safe - it will be checked against the TypeScript compiler. This is the preferred way of writing docs, but if it is too hard, you don't have to do it.+</p>++<p>+When writing typesafe snippets, sometimes it does not make sense to list all import statements at the top.<br />You can add a line stating <code>// ---cut---</code> and only the content below will be displayed.+</p>++### Titles++Add a title to a code snippet by adding a line with <code>```ts twoslash title="file.ts"</code>:<br/>++```ts twoslash title="file.ts"+console.log("Hello World");+```++## Special formatting++### Steps++Use `<Step>` to create lists:++```md+- <Step>1</Step> Step 1+- <Step>2</Step> Step 2+```++- <Step>1</Step> Step 1+- <Step>2</Step> Step 2++### Mark as experimental++Use `<ExperimentalBadge />` to mark something as experimental:++```md+<ExperimentalBadge>+<p>This feature is still experimental.</p>+</ExperimentalBadge>+```++<ExperimentalBadge>+<p>This feature is still experimental.</p>+</ExperimentalBadge>++### Demos++Using `<Demo type="[demo-name]" />` you can render a [Remotion Player](/terminology#remotion-player) and specify props that can be updated.++```md+<Demo type="rect"/>+```++<Demo type="rect"/>++The demo needs to be implemented in `packages/docs/components/demos/index.tsx`.++## See also++- [General information](/docs/contributing)+- [Implementing a new feature](/docs/contributing/feature)+- [Implementing a new option](/docs/contributing/option)diff --git a/packages/docs/docs/contributing/feature.md b/packages/docs/docs/contributing/feature.mdindex c1343ccec5..b84c8e69ec 100644--- a/packages/docs/docs/contributing/feature.md+++ b/packages/docs/docs/contributing/feature.md@@ -1,5 +1,7 @@---+image: /generated/articles-docs-contributing-feature.pngtitle: Implementing a new feature+crumb: Contributing---We are happy to accept contributions to the Remotion project that implement new features.@@ -31,3 +33,5 @@ Use the `#development` channel on [Discord](https://remotion.dev/discord) to qui## See also- [Implementing a new option](/docs/contributing/option)+- [Writing documentation](/docs/contributing/docs)+- [Implement a new feature](/docs/contributing/features)diff --git a/packages/docs/docs/contributing/index.md b/packages/docs/docs/contributing/index.mdindex 55387f9746..93cdf52d81 100644--- a/packages/docs/docs/contributing/index.md+++ b/packages/docs/docs/contributing/index.md@@ -1,6 +1,8 @@---+image: /generated/articles-docs-contributing-index.pngtitle: Contributing to Remotionsidebar_label: General information+crumb: How to be awesome---Issues and pull requests of all sorts are welcome!@@ -109,3 +111,4 @@ To develop the Rust parts of Remotion, see the README in [packages/renderer/READ- [Implementing a new feature](/docs/contributing/feature)- [Implementing a new option](/docs/contributing/option)+- [Writing documentation](/docs/contributing/docs)diff --git a/packages/docs/docs/contributing/option.md b/packages/docs/docs/contributing/option.mdindex e834eae5db..1b947fe47c 100644--- a/packages/docs/docs/contributing/option.md+++ b/packages/docs/docs/contributing/option.md@@ -1,5 +1,7 @@---+image: /generated/articles-docs-contributing-option.pngtitle: Implementing a new option+crumb: Contributing---Adding a new option to a feature is a great way to contribute to Remotion and enable more use cases.@@ -41,3 +43,5 @@ Note from which version the option is available.## See also- [Implementing a new feature](/docs/contributing/feature)+- [Implement a new feature](/docs/contributing/features)+- [Writing documentation](/docs/contributing/docs)diff --git a/packages/docs/sidebars.js b/packages/docs/sidebars.jsindex 47e2069af0..4045086400 100644--- a/packages/docs/sidebars.js+++ b/packages/docs/sidebars.js@@ -506,6 +506,7 @@ module.exports = {"contributing/index","contributing/feature","contributing/option",+ "contributing/docs",],},"license",diff --git a/packages/docs/src/data/articles.ts b/packages/docs/src/data/articles.tsindex 31942cdd79..cb8fe98061 100644--- a/packages/docs/src/data/articles.ts+++ b/packages/docs/src/data/articles.ts@@ -188,6 +188,34 @@ export const articles = [compId: "articles-docs-continue-render",crumb: "API",},+ {+ id: "contributing/docs",+ title: "Contributing to the documentation",+ relativePath: "docs/contributing/docs.md",+ compId: "articles-docs-contributing-docs",+ crumb: "Contributing",+ },+ {+ id: "contributing/feature",+ title: "Implementing a new feature",+ relativePath: "docs/contributing/feature.md",+ compId: "articles-docs-contributing-feature",+ crumb: "Contributing",+ },+ {+ id: "contributing/index",+ title: "Contributing to Remotion",+ relativePath: "docs/contributing/index.md",+ compId: "articles-docs-contributing-index",+ crumb: "How to be awesome",+ },+ {+ id: "contributing/option",+ title: "Implementing a new option",+ relativePath: "docs/contributing/option.md",+ compId: "articles-docs-contributing-option",+ crumb: "Contributing",+ },{id: "data-fetching",title: "Data fetching",@@ -811,6 +839,13 @@ export const articles = [compId: "articles-docs-lambda-troubleshooting-rate-limit",crumb: "Lambda Troubleshooting",},+ {+ id: "lambda/troubleshooting/security-token",+ title: "'\"The security token included in the request is invalid\"'",+ relativePath: "docs/lambda/troubleshooting/security-token.md",+ compId: "articles-docs-lambda-troubleshooting-security-token",+ crumb: "Lambda",+ },{id: "unrecognizedclientexception",title: "UnrecognizedClientException",diff --git a/packages/docs/static/generated/articles-docs-contributing-docs.png b/packages/docs/static/generated/articles-docs-contributing-docs.pngnew file mode 100644index 0000000000..60a59c1440Binary files /dev/null and b/packages/docs/static/generated/articles-docs-contributing-docs.png differdiff --git a/packages/docs/static/generated/articles-docs-contributing-feature.png b/packages/docs/static/generated/articles-docs-contributing-feature.pngnew file mode 100644index 0000000000..75337f2663Binary files /dev/null and b/packages/docs/static/generated/articles-docs-contributing-feature.png differdiff --git a/packages/docs/static/generated/articles-docs-contributing-index.png b/packages/docs/static/generated/articles-docs-contributing-index.pngnew file mode 100644index 0000000000..897475fd0fBinary files /dev/null and b/packages/docs/static/generated/articles-docs-contributing-index.png differdiff --git a/packages/docs/static/generated/articles-docs-contributing-option.png b/packages/docs/static/generated/articles-docs-contributing-option.pngnew file mode 100644index 0000000000..c6c337aeb5Binary files /dev/null and b/packages/docs/static/generated/articles-docs-contributing-option.png differdiff --git a/packages/docs/static/generated/articles-docs-lambda-troubleshooting-security-token.png b/packages/docs/static/generated/articles-docs-lambda-troubleshooting-security-token.pngnew file mode 100644index 0000000000..60fb4a0526Binary files /dev/null and b/packages/docs/static/generated/articles-docs-lambda-troubleshooting-security-token.png differ