Skip to content

Commit

Permalink
Merge pull request #37 from highcharts/v0.5.14
Browse files Browse the repository at this point in the history
v0.5.14
  • Loading branch information
bre1470 authored Oct 8, 2020
2 parents dc0e18b + 4ff1b03 commit 54db8a7
Show file tree
Hide file tree
Showing 4 changed files with 108 additions and 193 deletions.
8 changes: 5 additions & 3 deletions api-docs/lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -700,9 +700,10 @@ module.exports = function (input, outputPath, currentOnly, fn) {
// }

if (node.meta.filename) {
node.meta.filename = node.meta.filename.replace(/\\/g, '/').replace(/\/\//g, '/');
node.meta.filename = node.meta.filename.substr(node.meta.filename.indexOf('highcharts/'));
node.meta.filename = node.meta.filename.replace('highcharts/', '');
node.meta.filename = node.meta.filename
.replace(/\\/g, '/')
.replace(/\/\//g, '/')
.replace(/.*\/(js\/.*)/, '$1');
}

// if (typeof node.meta.default !== 'undefined' && typeof node.doclet.defaultvalue === 'undefined') {
Expand Down Expand Up @@ -998,6 +999,7 @@ module.exports = function (input, outputPath, currentOnly, fn) {
productdesc: productFilter(node.doclet, 'productdesc', product),
requires: requiresFilter(node.doclet, product),
samples: productFilter(node.doclet, 'samples', product),
see: node.doclet.see,
typeList: node.doclet.type,
children: node.children.map(function (child) {
return {
Expand Down
19 changes: 9 additions & 10 deletions jsdoc/plugins/highcharts.jsdoc.js
Original file line number Diff line number Diff line change
Expand Up @@ -280,14 +280,13 @@ function nodeVisitor(node, e, _, currentSourceName) {
}

if (target) {
if (node.type === 'CallExpression' && node.callee.name === 'seriesType') {
console.info(' found series type', node.arguments[0].value, '- inherited from', node.arguments[1].value);
// console.info(' found series type:', JSON.stringify(node.arguments[2], undefined, ' '));
properties = node.arguments[2].properties;
} else if (
if (
node.type === 'CallExpression' &&
node.callee.property.name === 'seriesType'
) {
(
node.callee.name === 'seriesType' ||
node.callee.property.name === 'seriesType'
)
) {
console.info(' found series type', node.arguments[0].value, '- inherited from', node.arguments[1].value);
// console.info(' found series type:', JSON.stringify(node.arguments[2], undefined, ' '));
properties = node.arguments[2].properties;
Expand Down Expand Up @@ -554,9 +553,9 @@ function inferType(obj) {

if (obj.meta && obj.meta.filename) {
// Remove user-identifiable info in filename
obj.meta.filename = obj.meta.filename.substr(
obj.meta.filename.indexOf('highcharts')
);
obj.meta.filename = obj.meta.filename
.replace(/\\/g, '/')
.replace(/.*\/(js\/.*)/, '$1');
}

// Infer types
Expand Down
Loading

0 comments on commit 54db8a7

Please # to comment.