Skip to content

πŸŽ₯ Make videos programmatically with React

don't build docs on every commit

Jonny Burger24b07a83f58b
diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml
index b8f74fa253..55e4a29296 100644
--- a/.github/workflows/docs.yml
+++ b/.github/workflows/docs.yml
@@ -17,7 +17,7 @@ jobs:
- run: npm run build
- name: Install and Build πŸ”§
run: |
- cd packages/docs && npm run build
+ cd packages/docs && npm run build-docs
- name: Deploy πŸš€
uses: JamesIves/[email protected]
diff --git a/packages/docs/components/layout/Button.tsx b/packages/docs/components/layout/Button.tsx
index 1c602a6b90..89a1343e2a 100644
--- a/packages/docs/components/layout/Button.tsx
+++ b/packages/docs/components/layout/Button.tsx
@@ -40,6 +40,7 @@ export const Button: React.FC<Props> = (props) => {
return (
<button
+ type="button"
className={styles.buttoncontainer}
disabled={actualDisabled}
{...other}
@@ -49,6 +50,7 @@ export const Button: React.FC<Props> = (props) => {
color: props.color,
cursor: props.disabled ? "default" : "pointer",
backgroundColor: props.background,
+ // @ts-expect-error
"--hover-color": props.hoverColor,
...(props.fullWidth ? { width: "100%" } : {}),
opacity: props.disabled ? 0.7 : 1,
diff --git a/packages/docs/package.json b/packages/docs/package.json
index b2a27fcaf5..ce260a7bfe 100644
--- a/packages/docs/package.json
+++ b/packages/docs/package.json
@@ -5,13 +5,14 @@
"scripts": {
"docusaurus": "docusaurus",
"start": "docusaurus start",
- "build": "docusaurus build",
+ "build": "tsc",
+ "build-docs": "docusaurus build",
"swizzle": "docusaurus swizzle",
"deploy": "docusaurus deploy",
"serve": "docusaurus serve",
"clear": "docusaurus clear",
"postinstall": "patch-package",
- "test": "jest"
+ "test": "eslint src && jest"
},
"dependencies": {
"@docusaurus/core": "2.0.0-beta.5",
diff --git a/packages/docs/src/pages/index.tsx b/packages/docs/src/pages/index.tsx
index e2579ce7ac..dc19657e90 100644
--- a/packages/docs/src/pages/index.tsx
+++ b/packages/docs/src/pages/index.tsx
@@ -20,34 +20,34 @@ const NewLanding: React.FC = () => {
description="Create MP4 motion graphics in React. Leverage CSS, SVG, WebGL and more technologies to render videos programmatically!"
>
<div className={styles.content}>
- <WriteInReact></WriteInReact>
+ <WriteInReact />
<br />
<br />
<br />
<br />
<br />
- <IfYouKnowReact></IfYouKnowReact>
+ <IfYouKnowReact />
<br />
<br />
<br />
<br />
<br />
- <RealMP4Videos></RealMP4Videos>
+ <RealMP4Videos />
<br />
<br />
<br />
<br />
- <LightningFastEditor></LightningFastEditor>
+ <LightningFastEditor />
<br />
<br />
<br />
<br />
- <Parametrize></Parametrize>
+ <Parametrize />
<br />
<br />
<br />
<br />
- <FreePricing></FreePricing>
+ <FreePricing />
</div>
</Layout>
);
diff --git a/packages/player-example/package.json b/packages/player-example/package.json
index 9f4e92ef90..a8e0135595 100644
--- a/packages/player-example/package.json
+++ b/packages/player-example/package.json
@@ -25,7 +25,7 @@
},
"scripts": {
"start": "craco start",
- "build": "craco build"
+ "build": "exit 0"
},
"eslintConfig": {
"extends": [