diff --git a/.lintstagedrc.json b/.lintstagedrc.json index 74973575e8..14dcdd9302 100644 --- a/.lintstagedrc.json +++ b/.lintstagedrc.json @@ -1,7 +1,10 @@ { "linters": { "(bin/*|*.js|**/*.js)": ["eslint --fix", "git add"], - "(*.{json,yml,md}|**/*.{json,yml,md})": ["prettier --write", "git add"] + "(*.{json,yml,md,html}|**/*.{json,yml,md,html})": [ + "prettier --write", + "git add" + ] }, "ignore": ["docs/**/*.js", "test/**/*.fixture.js", "package*.json"] } diff --git a/docs/index.md b/docs/index.md index 4c41381b05..99ca417f0f 100644 --- a/docs/index.md +++ b/docs/index.md @@ -883,7 +883,7 @@ Test Filters Positional Arguments spec One or more files, directories, or globs to test - [array] [default: ["test/"]] + [array] [default: ["test"]] Other Options --help, -h Show usage information & exit [boolean] diff --git a/jsdoc.conf.json b/jsdoc.conf.json index 161b1fd252..e8ea986021 100644 --- a/jsdoc.conf.json +++ b/jsdoc.conf.json @@ -8,7 +8,7 @@ "static": false }, "opts": { - "destination": "docs/_dist/api", + "destination": "docs/_site/api", "encoding": "utf8", "recurse": true, "template": "node_modules/@mocha/docdash", diff --git a/package-scripts.js b/package-scripts.js index 30e4294be1..7febdc016f 100644 --- a/package-scripts.js +++ b/package-scripts.js @@ -266,7 +266,7 @@ module.exports = { docs: { default: { script: - 'nps docs.prebuild && eleventy && nps docs.postbuild && nps docs.api', + 'nps docs.prebuild && nps docs.api && eleventy && nps docs.postbuild', description: 'Build documentation' }, prebuild: { @@ -299,8 +299,7 @@ module.exports = { description: 'Watch docs for changes & build' }, api: { - script: - 'nps docs.preprocess.api && jsdoc -c jsdoc.conf.json && cp LICENSE docs/_dist/api', + script: 'nps docs.preprocess.api && jsdoc -c jsdoc.conf.json', description: 'Build API docs' } },