Merge pull request #7003 from openlayers/greenkeeper/jsdoc-3.5.0

Update jsdoc to the latest version 🚀
This commit is contained in:
Andreas Hocevar
2017-07-10 12:36:56 +02:00
committed by GitHub
4 changed files with 22 additions and 22 deletions
+7 -7
View File
@@ -1,7 +1,7 @@
{ {
"opts": { "opts": {
"recurse": true, "recurse": true,
"template": "config/jsdoc/api/template" "template": "../../config/jsdoc/api/template"
}, },
"tags": { "tags": {
"allowUnknownTags": true "allowUnknownTags": true
@@ -16,12 +16,12 @@
] ]
}, },
"plugins": [ "plugins": [
"node_modules/jsdoc/plugins/markdown", "plugins/markdown",
"config/jsdoc/api/plugins/inheritdoc", "../../config/jsdoc/api/plugins/inheritdoc",
"config/jsdoc/api/plugins/typedefs", "../../config/jsdoc/api/plugins/typedefs",
"config/jsdoc/api/plugins/events", "../../config/jsdoc/api/plugins/events",
"config/jsdoc/api/plugins/observable", "../../config/jsdoc/api/plugins/observable",
"config/jsdoc/api/plugins/api" "../../config/jsdoc/api/plugins/api"
], ],
"markdown": { "markdown": {
"parser": "gfm" "parser": "gfm"
+4 -4
View File
@@ -1,7 +1,7 @@
{ {
"opts": { "opts": {
"recurse": true, "recurse": true,
"template": "config/jsdoc/info" "template": "../../config/jsdoc/info"
}, },
"tags": { "tags": {
"allowUnknownTags": true "allowUnknownTags": true
@@ -10,8 +10,8 @@
"includePattern": "\\.js$" "includePattern": "\\.js$"
}, },
"plugins": [ "plugins": [
"config/jsdoc/info/api-plugin", "../../config/jsdoc/info/api-plugin",
"config/jsdoc/info/define-plugin", "../../config/jsdoc/info/define-plugin",
"config/jsdoc/info/virtual-plugin" "../../config/jsdoc/info/virtual-plugin"
] ]
} }
+10 -10
View File
@@ -3,7 +3,6 @@
* an api tag) and boolean defines (with a define tag and a default value). * an api tag) and boolean defines (with a define tag and a default value).
*/ */
var assert = require('assert'); var assert = require('assert');
var fs = require('fs');
var path = require('path'); var path = require('path');
@@ -89,7 +88,6 @@ exports.publish = function(data, opts) {
types: getTypes(doc.type.names) types: getTypes(doc.type.names)
}); });
} else { } else {
var types;
var symbol = { var symbol = {
name: doc.longname, name: doc.longname,
kind: doc.kind, kind: doc.kind,
@@ -169,13 +167,15 @@ exports.publish = function(data, opts) {
return (symbol.name in augments || symbol.virtual); return (symbol.name in augments || symbol.virtual);
}); });
process.stdout.write( return new Promise(function(resolve, reject) {
JSON.stringify({ process.stdout.write(
symbols: symbols, JSON.stringify({
defines: defines, symbols: symbols,
typedefs: typedefs, defines: defines,
externs: externs, typedefs: typedefs,
base: base externs: externs,
}, null, 2)); base: base
}, null, 2));
});
}; };
+1 -1
View File
@@ -37,7 +37,7 @@
"fs-extra": "3.0.1", "fs-extra": "3.0.1",
"glob": "7.1.1", "glob": "7.1.1",
"handlebars": "4.0.10", "handlebars": "4.0.10",
"jsdoc": "3.4.3", "jsdoc": "3.5.0",
"marked": "0.3.6", "marked": "0.3.6",
"metalsmith": "2.3.0", "metalsmith": "2.3.0",
"metalsmith-layouts": "1.8.1", "metalsmith-layouts": "1.8.1",