build: Update the docco package version.
MODIFY
examples/build-website.js
examples/build-website.js
@@ -12,22 +12,28 @@ examples.forEach(function (json) {
// make docco documentation in:
// dist/examples/<name>/docs/
if (json.main) {
- docco({
+ const options = {
args: [json.main],
output: path.resolve(json.output, 'docs'),
layout: 'classic'
- }, function () {
+ };
+ // docco 0.8.1 requires this weirdness
+ options.opts = () => options;
+ docco(options, function () {
// simplify the docco output to reduce the output size by
// removing the unnecessary public/ directory
fs.removeSync(path.resolve(json.output, 'docs', 'public'));
});
}
(json.docJs || []).forEach(function (name) {
- docco({
+ const options = {
args: [path.resolve(json.dir, name)],
output: path.resolve(json.output, 'docs'),
layout: 'classic'
- }, function () {
+ };
+ // docco 0.8.1 requires this weirdness
+ options.opts = () => options;
+ docco(options, function () {
// simplify the docco output to reduce the output size by
// removing the unnecessary public/ directory
fs.removeSync(path.resolve(json.output, 'docs', 'public'));

MODIFY
examples/build.js
examples/build.js
@@ -13,22 +13,28 @@ examples.forEach(function (json) {
// make docco documentation in:
// dist/examples/<name>/docs/
if (json.exampleJs.length) {
- docco({
+ const options = {
args: [json.main],
output: path.resolve(json.output, 'docs'),
layout: 'classic'
- }, function () {
+ };
+ // docco 0.8.1 requires this weirdness
+ options.opts = () => options;
+ docco(options, function () {
// simplify the docco output to reduce the output size by
// removing the unnecessary public/ directory
fs.removeSync(path.resolve(json.output, 'docs', 'public'));
});
}
(json.docJs || []).forEach(function (name) {
- docco({
+ const options = {
args: [path.resolve(json.dir, name)],
output: path.resolve(json.output, 'docs'),
layout: 'classic'
- }, function () {
+ };
+ // docco 0.8.1 requires this weirdness
+ options.opts = () => options;
+ docco(options, function () {
// simplify the docco output to reduce the output size by
// removing the unnecessary public/ directory
fs.removeSync(path.resolve(json.output, 'docs', 'public'));

MODIFY
package-lock.json
package-lock.json
"commander": {
"version": "5.1.0",
"resolved": "https://registry.npmjs.org/commander/-/commander-5.1.0.tgz",
- "integrity": "sha512-P0CysNDQ7rtVw4QIQtm+MRxV66vKFSvlsQvGYXZWR3qFU0jlMKHZZZgw8e+8DSah4UDKMqnknRDQz+xuQXQ/Zg=="
+ "integrity": "sha512-P0CysNDQ7rtVw4QIQtm+MRxV66vKFSvlsQvGYXZWR3qFU0jlMKHZZZgw8e+8DSah4UDKMqnknRDQz+xuQXQ/Zg==",
+ "optional": true
},
"commondir": {
"version": "1.0.1",
"dev": true
},
"docco": {
- "version": "0.7.0",
- "resolved": "https://registry.npmjs.org/docco/-/docco-0.7.0.tgz",
- "integrity": "sha1-1gblqZDLoFLKHhgDqcWH7O48XDg=",
+ "version": "0.9.1",
+ "resolved": "https://registry.npmjs.org/docco/-/docco-0.9.1.tgz",
+ "integrity": "sha512-B1jUzcAc4AmicWUnmPTxUGM2lqJ11X4DiLUXyhzUVb7A1NNGTSNo3LtGzhHMyRAuJyxrHwHiOCDGuE/n9xRhmA==",
+ "dev": true,
+ "requires": {
+ "commander": "~ 8.3.0",
+ "fs-extra": "~ 10.0.0",
+ "highlight.js": "~ 11.3.1",
+ "marked": "~ 4.0.3",
+ "underscore": "~ 1.13.1"
+ },
+ "dependencies": {
+ "commander": {
+ "version": "8.3.0",
+ "resolved": "https://registry.npmjs.org/commander/-/commander-8.3.0.tgz",
+ "integrity": "sha512-OkTL9umf+He2DZkUq8f8J9of7yL6RJKI24dVITBmNfZBmri9zYZQrKkuXiKhyfPSu8tUhnVBB1iKXevvnlR4Ww==",
+ "dev": true
+ },
+ "fs-extra": {
+ "version": "10.0.0",
+ "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-10.0.0.tgz",
+ "integrity": "sha512-C5owb14u9eJwizKGdchcDUQeFtlSHHthBk8pbX9Vc1PFZrLombudjDnNns88aYslCyF6IY5SUw3Roz6xShcEIQ==",
"dev": true,
"requires": {
- "commander": ">= 0.5.2",
- "fs-extra": ">= 0.6.0",
- "highlight.js": ">= 8.0.x",
- "marked": ">= 0.2.7",
- "underscore": ">= 1.0.0"
+ "graceful-fs": "^4.2.0",
+ "jsonfile": "^6.0.1",
+ "universalify": "^2.0.0"
+ }
+ },
+ "jsonfile": {
+ "version": "6.1.0",
+ "resolved": "https://registry.npmjs.org/jsonfile/-/jsonfile-6.1.0.tgz",
+ "integrity": "sha512-5dgndWOriYSm5cnYaJNhalLNDKOqFwyDB/rr1E9ZsGciGvKPs8R2xYGCacuf3z6K1YKDz182fd+fY3cn3pMqXQ==",
+ "dev": true,
+ "requires": {
+ "graceful-fs": "^4.1.6",
+ "universalify": "^2.0.0"
+ }
+ },
+ "underscore": {
+ "version": "1.13.2",
+ "resolved": "https://registry.npmjs.org/underscore/-/underscore-1.13.2.tgz",
+ "integrity": "sha512-ekY1NhRzq0B08g4bGuX4wd2jZx5GnKz6mKSqFL4nqBlfyMGiG10gDFhDTMEfYmDL6Jy0FUIZp7wiRB+0BP7J2g==",
+ "dev": true
+ },
+ "universalify": {
+ "version": "2.0.0",
+ "resolved": "https://registry.npmjs.org/universalify/-/universalify-2.0.0.tgz",
+ "integrity": "sha512-hAZsKq7Yy11Zu1DE0OzWjw7nnLZmJZYTDZZyEFHZdUhV8FkH5MCfoU1XMaxXovpyW5nq5scPqq0ZDP9Zyl04oQ==",
+ "dev": true
+ }
}
},
"doctrine": {
}
},
"highlight.js": {
- "version": "10.2.0",
- "resolved": "https://registry.npmjs.org/highlight.js/-/highlight.js-10.2.0.tgz",
- "integrity": "sha512-OryzPiqqNCfO/wtFo619W+nPYALM6u7iCQkum4bqRmmlcTikOkmlL06i009QelynBPAlNByTQU6cBB2cOBQtCw==",
+ "version": "11.3.1",
+ "resolved": "https://registry.npmjs.org/highlight.js/-/highlight.js-11.3.1.tgz",
+ "integrity": "sha512-PUhCRnPjLtiLHZAQ5A/Dt5F8cWZeMyj9KRsACsWT+OD6OP0x6dp5OmT5jdx0JgEyPxPZZIPQpRN2TciUT7occw==",
"dev": true
},
"hmac-drbg": {
"dev": true
},
"marked": {
- "version": "1.1.1",
- "resolved": "https://registry.npmjs.org/marked/-/marked-1.1.1.tgz",
- "integrity": "sha512-mJzT8D2yPxoPh7h0UXkB+dBj4FykPJ2OIfxAWeIHrvoHDkFxukV/29QxoFQoPM6RLEwhIFdJpmKBlqVM3s2ZIw==",
+ "version": "4.0.8",
+ "resolved": "https://registry.npmjs.org/marked/-/marked-4.0.8.tgz",
+ "integrity": "sha512-dkpJMIlJpc833hbjjg8jraw1t51e/eKDoG8TFOgc5O0Z77zaYKigYekTDop5AplRoKFGIaoazhYEhGkMtU3IeA==",
"dev": true
},
"marked-terminal": {

MODIFY
package.json
package.json
"codemirror": "^5.65.0",
"colorbrewer": "1.3.0",
"css-loader": "^0.28.11",
- "docco": "^0.7.0",
+ "docco": "^0.9.1",
"eslint": "^8.5.0",
"eslint-config-semistandard": "^16.0.0",
"eslint-config-standard": "^16.0.3",

build: Update the docco package version.