diff --git a/.github/workflows/website.yaml b/.github/workflows/website.yaml index b936fa10..dc047214 100644 --- a/.github/workflows/website.yaml +++ b/.github/workflows/website.yaml @@ -4,9 +4,12 @@ on: push: branches: - main - - www # remove this branch once this is merged to main paths: - website/** + - packages/**/src/** + pull_request: + - branches: + - main jobs: website: diff --git a/website/package.json b/website/package.json index c3b75a4a..c1e102ad 100644 --- a/website/package.json +++ b/website/package.json @@ -4,7 +4,11 @@ "private": true, "scripts": { "start": "docusaurus start", - "build": "docusaurus build --out-dir build/interactors && node sitemap.mjs", + "build": "yarn build:docusaurus && yarn build:sitemap && yarn build:typedocs:html && yarn build:typedocs:mui", + "build:docusaurus": "docusaurus build --out-dir build/interactors", + "build:sitemap": "node sitemap.mjs", + "build:typedocs:html": "cd ../packages/html && npx typedoc --out ../../website/build/interactors/html/api --skipErrorChecking mod.ts", + "build:typedocs:mui": "cd ../packages/material-ui && npx typedoc --out ../../website/build/interactors/mui/api --skipErrorChecking mod.ts", "serve": "docusaurus serve" }, "dependencies": {