🎥 Make videos programmatically with React
improve installation structure
Jonny Burger3ebc88bf7ebd
diff --git a/packages/docs/blog/2021-05-06-remotion-2-1.md b/packages/docs/blog/2021-05-06-remotion-2-1.mdindex 29b29a56c8..4762a1a6dc 100644--- a/packages/docs/blog/2021-05-06-remotion-2-1.md+++ b/packages/docs/blog/2021-05-06-remotion-2-1.md@@ -8,7 +8,6 @@ author_image_url: https://avatars2.githubusercontent.com/u/1629785?s=460&u=12eb9---import { PlayerExampleWithControls } from "../components/PlayerExampleWithControls.tsx";-import { ExperimentalBadge } from "../components/Experimental.tsx";This releases features new utility functions, improved developer experience and an experimental release of the Remotion Player!@@ -43,8 +42,6 @@ We invested time in making sure that if something goes wrong, you don't get stuc## Alpha release of `@remotion/player`-<ExperimentalBadge/>-We are working on a Remotion player component that you can import into your React app. Today we are prereleasing the player for those who wish to experiment and provide us with feedback. Let us know what you thinkdiff --git a/packages/docs/components/Experimental.tsx b/packages/docs/components/Experimental.tsxdeleted file mode 100644index 8cc23f273c..0000000000--- a/packages/docs/components/Experimental.tsx+++ /dev/null@@ -1,34 +0,0 @@-import React from "react";--export const ExperimentalBadge: React.FC<{- message?: string;-}> = ({- message = "This component may change in minor version updates. Monitor the documentation page to see breaking changes when upgrading.",-}) => {- return (- <div- style={{- backgroundColor: "rgba(246, 229, 141,0.3)",- borderRadius: 8,- padding: "12px 12px",- marginBottom: 24,- }}- >- <div- style={{- backgroundColor: "#f6e58d",- display: "inline-block",- padding: "3px 10px",- fontWeight: "bold",- borderRadius: 5,- fontSize: 14,- marginBottom: 10,- color: "black",- }}- >- EXPERIMENTAL- </div>- <div>{message}</div>- </div>- );-};diff --git a/packages/docs/docs/player/installation.md b/packages/docs/docs/player/installation.mdnew file mode 100644index 0000000000..9a549fe4bf--- /dev/null+++ b/packages/docs/docs/player/installation.md@@ -0,0 +1,45 @@+---+id: installation+title: Installation+slug: /player/installation+---++import Tabs from '@theme/Tabs';+import TabItem from '@theme/TabItem';++To install the player, run the following command in a React project:++<Tabs+defaultValue="npm"+values={[+{ label: 'npm', value: 'npm', },+{ label: 'yarn', value: 'yarn', },+{ label: 'pnpm', value: 'pnpm', },+]+}>+<TabItem value="npm">++```bash+npm i remotion @remotion/player+```++ </TabItem>++ <TabItem value="yarn">++```bash+yarn add remotion @remotion/player+```++ </TabItem>++ <TabItem value="pnpm">++```bash+pnpm i remotion @remotion/player+```++ </TabItem>+</Tabs>++Read the [examples](/docs/player/examples) and [API reference](/docs/player/api) next.diff --git a/packages/docs/docs/player/player.md b/packages/docs/docs/player/player.mdindex 41ce8402c5..9f7c021a2f 100644--- a/packages/docs/docs/player/player.md+++ b/packages/docs/docs/player/player.md@@ -4,10 +4,7 @@ title: "@remotion/player"slug: /player----import Tabs from '@theme/Tabs';-import TabItem from '@theme/TabItem';import { PlayerExampleWithControls } from "../../components/PlayerExampleWithControls.tsx";-import { ExperimentalBadge } from "../../components/Experimental.tsx";Using the Remotion Player you can embed Remotion videos in any React app and customize the video content at runtime.@@ -15,40 +12,3 @@ Using the Remotion Player you can embed Remotion videos in any React app and cusPlay the video, then tweak the parameters below the video.<PlayerExampleWithControls />--## Installation--To install the player, run the following command in a React project:--<Tabs-defaultValue="npm"-values={[-{ label: 'npm', value: 'npm', },-{ label: 'yarn', value: 'yarn', },-{ label: 'pnpm', value: 'pnpm', },-]-}>-<TabItem value="npm">--```bash-npm i remotion @remotion/player-```-- </TabItem>-- <TabItem value="yarn">--```bash-yarn add @remotion/player-```-- </TabItem>-- <TabItem value="pnpm">--```bash-pnpm i @remotion/player-```-- </TabItem>-</Tabs>diff --git a/packages/docs/sidebars.js b/packages/docs/sidebars.jsindex ff0d180ee5..4d8ef5776f 100644--- a/packages/docs/sidebars.js+++ b/packages/docs/sidebars.js@@ -6,8 +6,9 @@ module.exports = {href: "/docs",},"player/player",- "player/api",+ "player/installation","player/examples",+ "player/api","player/scaling","player/integration","player/autoplay",