🎥 Make videos programmatically with React
added VERSION docs 1st draft
evoxf191620678e08d
diff --git a/packages/docs/components/TableOfContents/remotion.tsx b/packages/docs/components/TableOfContents/remotion.tsxindex 74c3537435..880db0088a 100644--- a/packages/docs/components/TableOfContents/remotion.tsx+++ b/packages/docs/components/TableOfContents/remotion.tsx@@ -157,6 +157,13 @@ export const TableOfContents: React.FC = () => {<div>Position content absolutely and in full size</div></TOCItem></Grid>+ <h2>Version</h2>+ <Grid>+ <TOCItem link="/docs/version">+ <strong>{"<VERSION>"}</strong>+ <div>Importing VERSION from remotion/version</div>+ </TOCItem>+ </Grid></div>);};diff --git a/packages/docs/docs/version.md b/packages/docs/docs/version.mdnew file mode 100644index 0000000000..43edeb7a9f--- /dev/null+++ b/packages/docs/docs/version.md@@ -0,0 +1,17 @@+---+image: /generated/articles-docs-version.png+id: version+title: <VERSION>+crumb: "Tips and Tricks"+---++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 importinh the same and logging it in the console.++```ts twoslash title="Importing VERSION from remotion/version"+import { VERSION } from "remotion/version";++console.log(`Using Remotion version ${VERSION}`);++```++diff --git a/packages/docs/sidebars.js b/packages/docs/sidebars.jsindex 75a5574d99..ec25087242 100644--- a/packages/docs/sidebars.js+++ b/packages/docs/sidebars.js@@ -106,6 +106,7 @@ module.exports = {"null","clipper","get-remotion-environment",+ "version",],},{