Skip to content

🎥 Make videos programmatically with React

new documentation: get help

Jonny Burger4205a669bccc
diff --git a/packages/docs/components/InlineStep.tsx b/packages/docs/components/InlineStep.tsx
index cf3e36e1c2..c173242314 100644
--- a/packages/docs/components/InlineStep.tsx
+++ b/packages/docs/components/InlineStep.tsx
@@ -1,12 +1,14 @@
import React from "react";
+import { RED } from "./layout/colors";
export const InlineStep: React.FC<{
children: React.ReactNode;
-}> = ({ children }) => {
+ error?: boolean;
+}> = ({ children, error }) => {
return (
<div
style={{
- backgroundColor: "var(--ifm-color-primary)",
+ backgroundColor: error ? RED : "var(--ifm-color-primary)",
height: 24,
width: 24,
display: "inline-flex",
@@ -26,7 +28,8 @@ export const InlineStep: React.FC<{
export const Step: React.FC<{
children: React.ReactNode;
-}> = ({ children }) => {
+ error?: boolean;
+}> = ({ children, error }) => {
return (
<span
style={{
@@ -37,7 +40,7 @@ export const Step: React.FC<{
marginBottom: 4,
}}
>
- <InlineStep>{children}</InlineStep>{" "}
+ <InlineStep error={error}>{children}</InlineStep>{" "}
</span>
);
};
diff --git a/packages/docs/docs/ask-for-help.md b/packages/docs/docs/ask-for-help.md
new file mode 100644
index 0000000000..7570e19cdb
--- /dev/null
+++ b/packages/docs/docs/ask-for-help.md
@@ -0,0 +1,53 @@
+---
+image: /generated/articles-docs-ask-for-help.png
+title: Get help
+id: get-help
+---
+
+To receive help, either:
+
+<Step>1</Step> File an issue under <a href="https://remotion.dev/issue">remotion.dev/issue</a> <br/>
+<Step>2</Step> Write in the <code>#help</code> channel on <a href="https://remotion.dev/discord">remotion.dev/discord</a>
+
+## Provide information
+
+Provide information that seems relevant to the issue. The more information that you give, the more we are able to help!
+
+**When you get an error:**
+
+<Step>1</Step> Paste the full error message, including stack trace. <br/>
+<Step>2</Step> Provide the code or command that caused this error. <br/>
+
+<br/>
+
+**When you don't get an error:**
+
+<Step>1</Step> Provide the code or command that you executed. <br/>
+<Step>2</Step> Describe what you expected. <br/><br/>
+
+Always mention the Remotion version:
+
+```
+npx remotion versions
+```
+
+## Investigate yourself
+
+The following might also be useful information to us:
+
+<Step>1</Step> What have you already tried?<br/>
+<Step>2</Step> Do you have an suspicion what might cause the issue?<br/>
+<Step>3</Step> Does the issue go away if you delete certain code?<br/>
+<Step>4</Step> Do you have any unusual parts in your stack or OS?
+
+## Do
+
+<Step>1</Step> Use search engines or ChatGPT to solve React-specific problems. <br/>
+<Step>2</Step> Search over 700+ <a href="https://github.com/remotion-dev/remotion/issues">GitHub issues</a> and 300+ <a href="/search">documentation pages</a>. <br/>
+<Step>3</Step> Attempt to find the root cause of an issue by narrowing down the code.<br/>
+<Step>4</Step> Provide relevant code snippets or reproductions.
+
+## Do not
+
+<Step error>1</Step> Ask for support using email or direct messages. <br/>
+<Step error>2</Step> Ask without <a href="/search">searching</a> the docs first. <br/>
diff --git a/packages/docs/sidebars.js b/packages/docs/sidebars.js
index b8d6b5f6ec..ba37bb2d9e 100644
--- a/packages/docs/sidebars.js
+++ b/packages/docs/sidebars.js
@@ -523,6 +523,7 @@ module.exports = {
type: "category",
label: "Miscellaneous",
items: [
+ "get-help",
"brownfield",
"ffmpeg",
"chromium-flags",
diff --git a/packages/docs/src/data/articles.ts b/packages/docs/src/data/articles.ts
index d31b00005e..7497a52ae1 100644
--- a/packages/docs/src/data/articles.ts
+++ b/packages/docs/src/data/articles.ts
@@ -41,6 +41,13 @@ export const articles = [
compId: "articles-docs-api",
crumb: null,
},
+ {
+ id: "get-help",
+ title: "Get help",
+ relativePath: "docs/ask-for-help.md",
+ compId: "articles-docs-ask-for-help",
+ crumb: null,
+ },
{
id: "audio-visualization",
title: "Audio visualization",
diff --git a/packages/docs/static/generated/articles-docs-ask-for-help.png b/packages/docs/static/generated/articles-docs-ask-for-help.png
new file mode 100644
index 0000000000..bc15f09221
Binary files /dev/null and b/packages/docs/static/generated/articles-docs-ask-for-help.png differ