🎥 Make videos programmatically with React
simplify
Jonny Burgerbc6d361ebc15
diff --git a/packages/docs/docusaurus.config.js b/packages/docs/docusaurus.config.jsindex 1c43c29f4f..d88da26f34 100644--- a/packages/docs/docusaurus.config.js+++ b/packages/docs/docusaurus.config.js@@ -195,10 +195,12 @@ const config = (mode) => ({label: "About us",to: "about",},- {- label: "Blog",- to: "blog",- },+ mode === "complete"+ ? {+ label: "Blog",+ to: "blog",+ }+ : null,{label: "Success Stories",to: "success-stories",@@ -219,7 +221,7 @@ const config = (mode) => ({label: "Brand",href: "https://remotion.dev/brand",},- ],+ ].filter(Boolean),},],},@@ -241,6 +243,8 @@ const config = (mode) => ({"https://github.com/remotion-dev/remotion/edit/main/packages/docs/",},blog: {+ path:+ mode === "complete" ? "intentionally-not-existing-path" : undefined,showReadingTime: true,// Please change this to your repo.editUrl:@@ -262,47 +266,50 @@ const config = (mode) => ({},],],- plugins: [- [- "@docusaurus/plugin-content-blog",- {- /**- * Required for any multi-instance plugin- */- id: "success-stories",- /**- * URL route for the blog section of your site.- * *DO NOT* include a trailing slash.- */- routeBasePath: "success-stories",- /**- * Path to data on filesystem relative to site dir.- */- path: "./success-stories",- blogSidebarTitle: "Success stories",- },- ],- [- "@docusaurus/plugin-content-blog",- {- /**- * Required for any multi-instance plugin- */- id: "learn",- /**- * URL route for the blog section of your site.- * *DO NOT* include a trailing slash.- */- routeBasePath: "learn",- /**- * Path to data on filesystem relative to site dir.- */- path: "./learn",- blogSidebarTitle: "Learn",- },- ],- "./route-plugin",- ],+ plugins:+ mode === "complete"+ ? []+ : [+ [+ "@docusaurus/plugin-content-blog",+ {+ /**+ * Required for any multi-instance plugin+ */+ id: "success-stories",+ /**+ * URL route for the blog section of your site.+ * *DO NOT* include a trailing slash.+ */+ routeBasePath: "success-stories",+ /**+ * Path to data on filesystem relative to site dir.+ */+ path: "./success-stories",+ blogSidebarTitle: "Success stories",+ },+ ],+ [+ "@docusaurus/plugin-content-blog",+ {+ /**+ * Required for any multi-instance plugin+ */+ id: "learn",+ /**+ * URL route for the blog section of your site.+ * *DO NOT* include a trailing slash.+ */+ routeBasePath: "learn",+ /**+ * Path to data on filesystem relative to site dir.+ */+ path: "./learn",+ blogSidebarTitle: "Learn",+ },+ ],+ "./route-plugin",+ ],});module.exports = config("complete");diff --git a/packages/docs/fast-sidebars.js b/packages/docs/fast-sidebars.jsindex e357dfe8d4..f0076abd4c 100644--- a/packages/docs/fast-sidebars.js+++ b/packages/docs/fast-sidebars.js@@ -1 +1,8 @@-module.exports = { mainSidebar: ["new-article"] };+module.exports = {+ mainSidebar: [+ {+ type: "autogenerated",+ dirName: ".",+ },+ ],+};diff --git a/packages/docs/new-docs/new-article.md b/packages/docs/new-docs/new-article.mddeleted file mode 100644index 3f88daf19f..0000000000--- a/packages/docs/new-docs/new-article.md+++ /dev/null@@ -1,3 +0,0 @@-----id: new-article----diff --git a/packages/docs/new-docs/new-doc.md b/packages/docs/new-docs/new-doc.mdnew file mode 100644index 0000000000..f47a0efa1d--- /dev/null+++ b/packages/docs/new-docs/new-doc.md@@ -0,0 +1,25 @@+---+title: A new documentation page+---++Write your article here and send it as a pull request!+The Remotion team will categorize it for you.++To write a typechecked code snippet, start a code block using <code>```tsx twoslash</code>:++```tsx twoslash title="MyComponent.tsx"+import { useCurrentFrame } from "remotion";++const frame = useCurrentFrame();+```++You can create numbered lists and sections using `<Step>`++<Step>1</Step> One <br/>+<Step>2</Step> Two <br/>++<br/>++For numbered items in a paragraph, use `<InlineStep>`: <InlineStep>1</InlineStep> One, <InlineStep>2</InlineStep> Two.++See the [Language guidelines](/docs/contributing/docs#language-guidelines) so your article fits well into the other ones available on the website.