Skip to content

πŸŽ₯ Make videos programmatically with React

new sidebar structure

Jonny Burger2b8ccad64dad
diff --git a/packages/docs/docs/gif.md b/packages/docs/docs/gif.md
index 7f7b537482..cdc495d4a5 100644
--- a/packages/docs/docs/gif.md
+++ b/packages/docs/docs/gif.md
@@ -1,6 +1,6 @@
---
id: gif
-sidebar_label: API - @remotion/gif
+sidebar_label: "@remotion/gif"
title: "@remotion/gif"
---
diff --git a/packages/docs/docs/the-fundamentals.md b/packages/docs/docs/the-fundamentals.md
index fb29e792b4..2d49c1fda0 100644
--- a/packages/docs/docs/the-fundamentals.md
+++ b/packages/docs/docs/the-fundamentals.md
@@ -24,7 +24,7 @@ export const MyVideo = () => {
// - MyVideo
```
-The basic idea behind Remotion is that we'll give you a frame number and a blank canvas, and the freedom to render anything you want using **[React.js](https://reactjs.org)**.
+The basic idea behind Remotion is that we'll give you a frame number and a blank canvas, and the freedom to render anything you want using **[React](https://reactjs.org)**.
```tsx twoslash
// @include: example-MyVideo
diff --git a/packages/docs/docusaurus.config.js b/packages/docs/docusaurus.config.js
index d5eac2aabd..7537ab03d4 100644
--- a/packages/docs/docusaurus.config.js
+++ b/packages/docs/docusaurus.config.js
@@ -24,14 +24,30 @@ module.exports = {
},
items: [
{
- to: "docs/",
- activeBasePath: "docs",
+ to: "/docs",
label: "Docs",
position: "left",
+ type: "docSidebar",
+ sidebarId: "mainSidebar",
+
+ },
+ {
+ to: "/docs/sequence",
+ label: "API",
+ position: "left",
+ type: "docSidebar",
+ sidebarId: "apiSidebar",
},
{ to: "blog", label: "Blog", position: "left" },
{ to: "showcase", label: "Showcase", position: "left" },
{ to: "/docs/license", label: "Licensing", position: "left" },
+ {
+ href: "https://twitter.com/remotion_dev",
+ label: "Twitter",
+ position: "right",
+ "data-splitbee-event": "External Link",
+ "data-splitbee-event-target": "Twitter",
+ },
{
href: "https://remotion.dev/discord",
label: "Discord",
diff --git a/packages/docs/sidebars.js b/packages/docs/sidebars.js
index 9ad3436fd0..e676b9dde4 100644
--- a/packages/docs/sidebars.js
+++ b/packages/docs/sidebars.js
@@ -1,118 +1,5 @@
module.exports = {
- lambdaSidebar: [
- {
- type: "link",
- label: "← Back to main docs",
- href: "/docs",
- },
- "lambda",
- {
- collapsed: false,
- type: "category",
- label: "CLI",
- items: [
- "lambda/cli",
- "lambda/cli/sites",
- "lambda/cli/functions",
- "lambda/cli/render",
- "lambda/cli/still",
- "lambda/cli/policies",
- "lambda/cli/regions",
- "lambda/cli/quotas",
- ],
- },
- "lambda/setup",
- "lambda/permissions",
- "lambda/region-selection",
- "lambda/concurrency",
- "lambda/runtime",
- "lambda/disk-size",
- "lambda/faq",
- "lambda/light-client",
- "lambda/custom-layers",
- {
- collapsed: false,
- type: "category",
- label: "Node.JS APIs",
- items: [
- "lambda/estimateprice",
- "lambda/deployfunction",
- "lambda/deletefunction",
- "lambda/getfunctioninfo",
- "lambda/getfunctions",
- "lambda/deletesite",
- "lambda/deploysite",
- "lambda/getawsclient",
- "lambda/getregions",
- "lambda/getsites",
- "lambda/downloadmedia",
- "lambda/getuserpolicy",
- "lambda/getrolepolicy",
- "lambda/getorcreatebucket",
- "lambda/getrenderprogress",
- "lambda/presignurl",
- "lambda/rendermediaonlambda",
- "lambda/renderstillonlambda",
- "lambda/simulatepermissions",
- ],
- },
- "lambda/checklist",
- {
- collapsed: false,
- type: "category",
- label: "Troubleshooting",
- items: [
- "lambda/troubleshooting/permissions",
- "lambda/troubleshooting/rate-limit",
- "lambda/troubleshooting/unrecognizedclientexception",
- "lambda/troubleshooting/bucket-disallows-acl",
- ],
- },
- "lambda/changelog",
- "lambda/upgrading",
- "lambda/uninstall",
- ],
- someSidebar: [
- {
- type: "category",
- label: "Getting started",
- items: [
- "getting-started",
- "the-fundamentals",
- "animating-properties",
- "reusability",
- "timeline",
- "render",
- ],
- },
- {
- type: "category",
- label: "Techniques",
- items: [
- "assets",
- "using-audio",
- "fonts",
- "using-randomness",
- "audio-visualization",
- "use-img-and-iframe",
- "javascript",
- "data-fetching",
- "encoding",
- "transparent-videos",
- "parametrized-rendering",
- "dynamic-metadata",
- "ssr",
- "webpack",
- "tailwind",
- "legacy-babel",
- "env-variables",
- "third-party",
- "stills",
- "scaling",
- "video-manipulation",
- "render-as-gif",
- ],
- },
+ apiSidebar: [
{
type: "category",
label: "CLI",
@@ -129,7 +16,7 @@ module.exports = {
{
type: "link",
href: "/docs/lambda/cli",
- label: "lambda ↗️",
+ label: "lambda",
},
"cli/versions",
"cli/upgrade",
@@ -139,7 +26,7 @@ module.exports = {
"config",
{
type: "category",
- label: "API - remotion",
+ label: "remotion",
items: [
"continue-render",
"delay-render",
@@ -171,13 +58,13 @@ module.exports = {
},
{
type: "category",
- label: "API - @remotion/bundler",
+ label: "@remotion/bundler",
items: ["bundle"],
},
"gif",
{
type: "category",
- label: "API - @remotion/media-utils",
+ label: "@remotion/media-utils",
items: [
"audio-buffer-to-data-url",
"get-audio-data",
@@ -189,9 +76,76 @@ module.exports = {
],
},
{
- type: "link",
- href: "/docs/lambda",
- label: "API - @remotion/lambda",
+ type: "category",
+ label: "@remotion/lambda",
+ items: [
+ "lambda",
+ {
+ type: "category",
+ label: "CLI",
+ link: {
+ type: "doc",
+ id: "lambda/cli",
+ },
+ items: [
+ "lambda/cli/sites",
+ "lambda/cli/functions",
+ "lambda/cli/render",
+ "lambda/cli/still",
+ "lambda/cli/policies",
+ "lambda/cli/regions",
+ "lambda/cli/quotas",
+ ],
+ },
+ "lambda/setup",
+ "lambda/permissions",
+ "lambda/region-selection",
+ "lambda/concurrency",
+ "lambda/runtime",
+ "lambda/disk-size",
+ "lambda/faq",
+ "lambda/light-client",
+ "lambda/custom-layers",
+ {
+ type: "category",
+ label: "Node.JS APIs",
+ items: [
+ "lambda/estimateprice",
+ "lambda/deployfunction",
+ "lambda/deletefunction",
+ "lambda/getfunctioninfo",
+ "lambda/getfunctions",
+ "lambda/deletesite",
+ "lambda/deploysite",
+ "lambda/getawsclient",
+ "lambda/getregions",
+ "lambda/getsites",
+ "lambda/downloadmedia",
+ "lambda/getuserpolicy",
+ "lambda/getrolepolicy",
+ "lambda/getorcreatebucket",
+ "lambda/getrenderprogress",
+ "lambda/presignurl",
+ "lambda/rendermediaonlambda",
+ "lambda/renderstillonlambda",
+ "lambda/simulatepermissions",
+ ],
+ },
+ "lambda/checklist",
+ {
+ type: "category",
+ label: "Troubleshooting",
+ items: [
+ "lambda/troubleshooting/permissions",
+ "lambda/troubleshooting/rate-limit",
+ "lambda/troubleshooting/unrecognizedclientexception",
+ "lambda/troubleshooting/bucket-disallows-acl",
+ ],
+ },
+ "lambda/changelog",
+ "lambda/upgrading",
+ "lambda/uninstall",
+ ],
},
{
type: "category",
@@ -199,7 +153,7 @@ module.exports = {
type: "doc",
id: "player/player",
},
- label: "API - @remotion/player",
+ label: "@remotion/player",
items: [
"player/installation",
"player/examples",
@@ -213,7 +167,7 @@ module.exports = {
},
{
type: "category",
- label: "API - @remotion/three",
+ label: "@remotion/three",
link: {
type: "doc",
id: "three",
@@ -222,7 +176,7 @@ module.exports = {
},
{
type: "category",
- label: "API - @remotion/skia",
+ label: "@remotion/skia",
link: {
type: "doc",
id: "skia/skia",
@@ -231,7 +185,7 @@ module.exports = {
},
{
type: "category",
- label: "API - @remotion/lottie",
+ label: "@remotion/lottie",
link: {
type: "doc",
id: "lottie/lottie-index",
@@ -247,7 +201,7 @@ module.exports = {
},
{
type: "category",
- label: "API - @remotion/preload",
+ label: "@remotion/preload",
link: {
type: "doc",
id: "preload/preload",
@@ -264,7 +218,7 @@ module.exports = {
type: "doc",
id: "renderer",
},
- label: "API - @remotion/renderer",
+ label: "@remotion/renderer",
items: [
"renderer/get-compositions",
"renderer/render-media",
@@ -277,7 +231,7 @@ module.exports = {
},
{
type: "category",
- label: "API - @remotion/paths",
+ label: "@remotion/paths",
link: {
type: "doc",
id: "paths/index",
@@ -293,6 +247,48 @@ module.exports = {
"paths/evolve-path",
],
},
+ ],
+ mainSidebar: [
+ {
+ type: "category",
+ label: "Getting started",
+ items: [
+ "getting-started",
+ "the-fundamentals",
+ "animating-properties",
+ "reusability",
+ "timeline",
+ "render",
+ ],
+ },
+ {
+ type: "category",
+ label: "Techniques",
+ items: [
+ "assets",
+ "using-audio",
+ "fonts",
+ "using-randomness",
+ "audio-visualization",
+ "use-img-and-iframe",
+ "javascript",
+ "data-fetching",
+ "encoding",
+ "transparent-videos",
+ "parametrized-rendering",
+ "dynamic-metadata",
+ "ssr",
+ "webpack",
+ "tailwind",
+ "legacy-babel",
+ "env-variables",
+ "third-party",
+ "stills",
+ "scaling",
+ "video-manipulation",
+ "render-as-gif",
+ ],
+ },
{
type: "category",
label: "Troubleshooting",