🎥 Make videos programmatically with React
add image
Jonny Burger140237d149c6
diff --git a/packages/docs/docs/version.md b/packages/docs/docs/version.mdindex 4cc970c132..b6c376b604 100644--- a/packages/docs/docs/version.md+++ b/packages/docs/docs/version.md@@ -1,20 +1,28 @@----image: /generated/articles-docs-version.pngid: versiontitle: VERSION-crumb: "Tips and Tricks"+crumb: "API"----In Remotion, you can import the `VERSION` variable from `remotion/version` to access the current version number of the Remotion library without including the entire Remotion library and its dependencies (such as React). This can be useful for displaying the Remotion version number in your application or for other version-specific operations. This gives you the current Remotion version which is being used at the moment. You can also check it by importing the same and logging it in the console.+You may import this constant to get the current version of Remotion.+This can be useful for displaying the Remotion version number in your application or for other version-specific operations.-```ts twoslash title="Importing VERSION from remotion/version"-import { VERSION } from "remotion/version";+Only the version of the `remotion` package will be reported. A [version conflict](/docs/cli/versions) with other Remotion packages cannot be ruled out.-console.log(`Using Remotion version ${VERSION}`);+```ts twoslash title="Importing VERSION from remotion/version"+import { VERSION } from "remotion";+console.log(VERSION); // "4.0.57";```-## See also-- [Source code for this component](https://github.com/remotion-dev/remotion/blob/main/packages/core/src/version.ts)+You can also import it from `remotion/version` to avoid importing Remotion and its dependencies (React):++```ts twoslash title="Importing VERSION from remotion/version"+import { VERSION } from "remotion/version";+console.log(VERSION); // "4.0.57";+```++## See also+- [Source code for this constant](https://github.com/remotion-dev/remotion/blob/main/packages/core/src/version.ts)diff --git a/packages/docs/src/data/articles.ts b/packages/docs/src/data/articles.tsindex e862b12c04..a36c97615c 100644--- a/packages/docs/src/data/articles.ts+++ b/packages/docs/src/data/articles.ts@@ -562,7 +562,7 @@ export const articles = [{id: "dataset-render",title: "Render videos programmatically from a dataset",- relativePath: "docs/dataset-render.md",+ relativePath: "docs/dataset-render.mdx",compId: "articles-docs-dataset-render",crumb: "Tutorials",},@@ -2696,6 +2696,13 @@ export const articles = [compId: "articles-docs-version-mismatch",crumb: "How to fix a",},+ {+ id: "version",+ title: "VERSION",+ relativePath: "docs/version.md",+ compId: "articles-docs-version",+ crumb: "Tips and Tricks",+ },{id: "video-manipulation",title: "Video manipulation",diff --git a/packages/docs/static/generated/articles-docs-version.png b/packages/docs/static/generated/articles-docs-version.pngnew file mode 100644index 0000000000..014177075bBinary files /dev/null and b/packages/docs/static/generated/articles-docs-version.png differ