Skip to content

armgit / mocha

Public Imported from GitHub
0

☕️ Classic, reliable, trusted test framework for Node.js and the browser

various doc-related fixes (#3790)

Christopher Hiller53f18a133e0b
diff --git a/.lintstagedrc.json b/.lintstagedrc.json
index 74973575..14dcdd93 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 4c41381b..99ca417f 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 161b1fd2..e8ea9860 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 30e4294b..7febdc01 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'
}
},