diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 3d5cd9c87e..1d5f93da6a 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -333,6 +333,9 @@ jobs: env: PSP_USE_CCACHE: 1 + - name: Docs Build + run: yarn docs + ################################# # Compress and upload Artifacts # ################################# diff --git a/docs/build.js b/docs/build.js index d97b006153..124d0fdf1b 100644 --- a/docs/build.js +++ b/docs/build.js @@ -101,7 +101,7 @@ async function run_with_theme(page, is_dark = false) { async function run() { if (!fs.existsSync("static/features")) { - const browser = await puppeteer.launch({ headless: false }); + const browser = await puppeteer.launch({ headless: true }); const page = await browser.newPage(); await run_with_theme(page); await run_with_theme(page, true); diff --git a/packages/perspective/package.json b/packages/perspective/package.json index e7422f562d..c0fbc7dc4b 100644 --- a/packages/perspective/package.json +++ b/packages/perspective/package.json @@ -36,7 +36,7 @@ "build": "node build.js", "docs": "npm-run-all docs:jsdoc docs:deploy", "docs:jsdoc": "jsdoc2md src/js/perspective.js -p list --separators --no-gfm > README.md", - "docs:deploy": "(echo \"---\nid: perspective\ntitle: perspective API\n---\n\n\"; cat README.md) > ../../docs/docs/obj/perspective.md", + "docs:deploy": "mkdir -p ../../docs/docs/obj && (echo \"---\nid: perspective\ntitle: perspective API\n---\n\n\"; cat README.md) > ../../docs/docs/obj/perspective.md", "test:run": "jest --color --ci --rootDir=. --config=../../tools/perspective-test/jest.config.js", "test": "npm-run-all test:run", "clean": "rimraf dist"