Skip to content

Commit

Permalink
Add docs build to CI
Browse files Browse the repository at this point in the history
  • Loading branch information
texodus committed Dec 2, 2023
1 parent 1b16c80 commit 4fe9396
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -333,6 +333,9 @@ jobs:
env:
PSP_USE_CCACHE: 1

- name: Docs Build
run: yarn docs

#################################
# Compress and upload Artifacts #
#################################
Expand Down
2 changes: 1 addition & 1 deletion docs/build.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
2 changes: 1 addition & 1 deletion packages/perspective/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 4fe9396

Please sign in to comment.