Skip to content

Commit af4462b

Browse files
author
fabianmoronzirfas
committed
regenerate
1 parent 7126dd9 commit af4462b

37 files changed

+83
-84
lines changed

.bin/lib/data-generator.js

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,18 +5,23 @@
55
var exports = module.exports = {};
66
function generator(data) {
77
data.forEach((element)=>{
8-
console.log(element);
8+
// console.log(element);
99
element.codetitle = null;
1010
if(element.kind === null) {
1111
element.kind = 'function';
1212
}
1313
if(element.kind.toString() === 'function' || element.kind.toString() === 'constructor') {
14-
let params = '';
14+
let paramsList = [];
1515
element.parameters.forEach((ele, ndx, arr)=>{
16-
let name = (ele.optional === true) ? `[${ele.name}]` : ele.name;
17-
let sep = (ndx + 1 !== arr.length) ? ', ' : '';
18-
params += name + sep;
16+
// check if we have object params
17+
if(ele.name.indexOf('.') === -1) {
18+
let name = (ele.optional === true) ? `[${ele.name}]` : ele.name;
19+
// let sep = (ndx + 1 !== arr.length) ? ', ' : '';
20+
paramsList.push(name);
21+
}
1922
});
23+
// make it a string
24+
let params = paramsList.join(', ');
2025
element.codetitle = `b.${element.name}(${params})`;
2126
}else if (element.kind.toString() === 'constant' || element.kind.toString() === 'property') {
2227
element.codetitle = `b.${element.name}`;

.bin/lib/files-and-folders.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,10 +47,10 @@ function process(ele, folder, ow) {
4747
}
4848
write(file, frontmatter);
4949
} else if(ow === false || pathExists.sync(file) === false) {
50-
console.log(`Creating file "${file}"`);
50+
// console.log(`Creating file "${file}"`);
5151
write(file, frontmatter);
5252
}else if(ow === false || pathExists.sync(file) === true) {
53-
console.log(`The file "${file}" already exists`);
53+
// console.log(`The file "${file}" already exists`);
5454
}
5555
});
5656
}

_data/categories.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6534,7 +6534,7 @@
65346534
}
65356535
],
65366536
"todo": null,
6537-
"codetitle": "b.inspect(obj, [settings], [settings.showProps], [settings.showValues], [settings.showMethods], [settings.maxLevel], [settings.propList])"
6537+
"codetitle": "b.inspect(obj, [settings])"
65386538
},
65396539
{
65406540
"name": "print",

_data/cats-and-subcats.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6649,7 +6649,7 @@
66496649
}
66506650
],
66516651
"todo": null,
6652-
"codetitle": "b.inspect(obj, [settings], [settings.showProps], [settings.showValues], [settings.showMethods], [settings.maxLevel], [settings.propList])"
6652+
"codetitle": "b.inspect(obj, [settings])"
66536653
},
66546654
{
66556655
"name": "print",

_data/sub-categories.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -588,7 +588,7 @@
588588
}
589589
],
590590
"todo": null,
591-
"codetitle": "b.inspect(obj, [settings], [settings.showProps], [settings.showValues], [settings.showMethods], [settings.maxLevel], [settings.propList])"
591+
"codetitle": "b.inspect(obj, [settings])"
592592
},
593593
{
594594
"name": "print",

color/blendMode.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ category: Color
77
subcategory: null
88
returns: null
99
parameters:
10-
- {name: obj, description: 'The object to set blendMode property', optional: false, type: [Object]}
10+
- {name: obj, description: 'The object to set blendMode of.', optional: false, type: [Object]}
1111
- {name: blendMode, description: "The blendMode must be one of the InDesign BlendMode enum values:\n BlendMode.NORMAL <br />\n BlendMode.MULTIPLY <br />\n BlendMode.SCREEN <br />\n BlendMode.OVERLAY <br />\n BlendMode.SOFT_LIGHT <br />\n BlendMode.HARD_LIGHT <br />\n BlendMode.COLOR_DODGE <br />\n BlendMode.COLOR_BURN <br />\n BlendMode.DARKEN <br />\n BlendMode.LIGHTEN <br />\n BlendMode.DIFFERENCE <br />\n BlendMode.EXCLUSION <br />\n BlendMode.HUE <br />\n BlendMode.SATURATION <br />\n BlendMode.COLOR <br />\n BlendMode.LUMINOSITY <br />", optional: false, type: [Number]}
1212
kind: function
1313
todo: null

color/color.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,15 @@
22
layout: entry
33
title: color
44
codetitle: b.color(Get)
5-
description: 'Creates a new RGB or CMYK color and adds the new color to the document, or gets a color by name from the document. The default color mode is RGB.'
5+
description: 'Creates a new RGB / CMYK color and adds it to the document, or gets a color by name from the document. The default color mode is RGB.'
66
category: Color
77
subcategory: null
88
returns:
99
name: null
10-
description: 'found or new color'
10+
description: 'Found or new color'
1111
type: [Color]
1212
parameters:
13-
- {name: Get, description: 'color: the color name. Create new color: R,G,B,[name] or C,M,Y,K,[name] or Grey,name. Name is always optional', optional: false, type: [String, Numbers]}
13+
- {name: Get, description: 'color: the color name. Create new color: GRAY,[name] / R,G,B,[name] / C,M,Y,K,[name]. Name is always optional.', optional: false, type: [String, Numbers]}
1414
kind: function
1515
todo: null
1616
examples: []

color/colorMode.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@
22
layout: entry
33
title: colorMode
44
codetitle: b.colorMode(colorMode)
5-
description: 'Sets the colormode for creating new colors with b.color() to RGB or CMYK. The default color mode is RBG.'
5+
description: 'Sets the colormode for creating new colors with b.color() to RGB or CMYK. The default color mode is RGB.'
66
category: Color
77
subcategory: null
88
returns: null
99
parameters:
10-
- {name: colorMode, description: 'Either b.RGB or b.CMYK', optional: false, type: [Number]}
10+
- {name: colorMode, description: 'b.RGB or b.CMYK.', optional: false, type: [Number]}
1111
kind: function
1212
todo: null
1313
examples: []

color/fill.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,14 @@
11
---
22
layout: entry
33
title: fill
4-
codetitle: b.fill(fillColor)
4+
codetitle: 'b.fill(fillColor, [name])'
55
description: 'Sets the color or gradient used to fill shapes.'
66
category: Color
77
subcategory: null
88
returns: null
99
parameters:
10-
- {name: fillColor, description: 'Accepts a color/gradient/swatch or a string with the name of a color. Or values: C,M,Y,K / R,G,B / Grey', optional: false, type: [Color, Gradient, Swatch, Numbers]}
10+
- {name: fillColor, description: 'Accepts a color/gradient/swatch as string name or variable. Or values: GRAY / R,G,B / C,M,Y,K.', optional: false, type: [Color, Gradient, Swatch, Numbers, String]}
11+
- {name: name, description: 'If created with numbers, a custom swatch name can be given.', optional: true, type: [String]}
1112
kind: function
1213
todo: null
1314
examples: []

color/gradientMode.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@
22
layout: entry
33
title: gradientMode
44
codetitle: b.gradientMode(gradientMode)
5-
description: 'Sets the gradient mode for creating new gradients with b.gradient() to LINEAR or RADIAL. The default gradient mode is LINEAR.'
5+
description: 'Sets the gradient mode for b.gradient() to LINEAR or RADIAL. The default gradient mode is LINEAR.'
66
category: Color
77
subcategory: null
88
returns: null
99
parameters:
10-
- {name: gradientMode, description: 'Either b.LINEAR or b.RADIAL', optional: false, type: [String]}
10+
- {name: gradientMode, description: 'b.LINEAR or b.RADIAL.', optional: false, type: [String]}
1111
kind: function
1212
todo: null
1313
examples: []

0 commit comments

Comments
 (0)