Skip to content

Commit 4cad901

Browse files
author
fabianmoronzirfas
committed
fix and close #4 by parsing first the description and then the tags
1 parent 7ad2709 commit 4cad901

29 files changed

+88
-86
lines changed

.bin/index.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,9 @@ function buildEntry(e) {
4141
}
4242
if(Array.isArray(e.tags)) {
4343
e.tags.forEach((ele, ndx, array)=>{
44-
44+
if(ele.title === 'description') {
45+
entry.description = ele.description;
46+
}
4547
if(ele.title === 'cat') { // get the categories
4648
entry.category = ele.description;
4749

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,9 +41,9 @@ function process(ele, folder, ow) {
4141
let frontmatter = `---\n${yamlstr}\n---\n`;
4242
if(ow === true) {
4343
if(pathExists.sync(file) === true) {
44-
console.log(`Overwriting file "${file}"`);
44+
// console.log(`Overwriting file "${file}"`);
4545
}else{
46-
console.log(`Creating file "${file}"`);
46+
// console.log(`Creating file "${file}"`);
4747
}
4848
write(file, frontmatter);
4949
} else if(ow === false || pathExists.sync(file) === false) {

_data/categories.json

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2793,7 +2793,7 @@
27932793
},
27942794
{
27952795
"name": "popMatrix",
2796-
"description": "Pops the current transformation matrix off the matrix stack. Understanding pushing and popping requires understanding the concept of a matrix stack. The ",
2796+
"description": "Pops the current transformation matrix off the matrix stack. Understanding pushing and popping requires understanding the concept of a matrix stack. The <code>pushMatrix()</code> function saves the current coordinate system to the stack and <code>popMatrix()</code> restores the prior coordinate system. <code>pushMatrix()</code> and <code>popMatrix()</code> are used in conjuction with the other transformation methods and may be embedded to control the scope of the transformations.",
27972797
"returns": null,
27982798
"category": "Document",
27992799
"subcategory": "Transformation",
@@ -2824,7 +2824,7 @@
28242824
},
28252825
{
28262826
"name": "pushMatrix",
2827-
"description": "Pushes the current transformation matrix onto the matrix stack. Understanding ",
2827+
"description": "Pushes the current transformation matrix onto the matrix stack. Understanding <code>pushMatrix()</code> and <code>popMatrix()</code> requires understanding the concept of a matrix stack. The <code>pushMatrix()</code> function saves the current coordinate system to the stack and <code>popMatrix()</code> restores the prior coordinate system. <code>pushMatrix()</code> and <code>popMatrix()</code> are used in conjuction with the other transformation methods and may be embedded to control the scope of the transformations.",
28282828
"returns": null,
28292829
"category": "Document",
28302830
"subcategory": "Transformation",
@@ -2855,7 +2855,7 @@
28552855
},
28562856
{
28572857
"name": "rotate",
2858-
"description": "Rotates an object the amount specified by the angle parameter. Angles should be specified in radians (values from 0 to ",
2858+
"description": "Rotates an object the amount specified by the angle parameter. Angles should be specified in radians (values from 0 to <code>PI</code>*2) or converted to radians with the <code>radians()</code> function. Objects are always rotated around their relative position to the origin and positive numbers rotate objects in a clockwise direction with 0 radians or degrees being up and <code>HALF_PI</code> being to the right etc. Transformations apply to everything that happens after and subsequent calls to the function accumulates the effect. For example, calling <code>rotate(PI/2)</code> and then <code>rotate(PI/2)</code> is the same as <code>rotate(PI)</code>. If <code>rotate()</code> is called within the <code>draw()</code>, the transformation is reset when the loop begins again. Technically, <code>rotate()</code> multiplies the current transformation matrix by a rotation matrix. This function can be further controlled by the <code>pushMatrix()</code> and <code>popMatrix()</code>.",
28592859
"returns": null,
28602860
"category": "Document",
28612861
"subcategory": "Transformation",
@@ -2882,7 +2882,7 @@
28822882
},
28832883
{
28842884
"name": "scale",
2885-
"description": "Increasing and decreasing the size of an object by expanding and contracting vertices. Scale values are specified as decimal percentages. The function call ",
2885+
"description": "Increasing and decreasing the size of an object by expanding and contracting vertices. Scale values are specified as decimal percentages. The function call <code>scale(2.0)</code> increases the dimension of a shape by 200%. Objects always scale from their relative origin to the coordinate system. Transformations apply to everything that happens after and subsequent calls to the function multiply the effect. For example, calling <code>scale(2.0)</code> and then <code>scale(1.5)</code> is the same as <code>scale(3.0)</code>. If <code>scale()</code> is called within <code>draw()</code>, the transformation is reset when the loop begins again. This function can be further controlled by <code>pushMatrix()</code> and <code>popMatrix()</code>.\nIf only one parameter is given, it is applied on X and Y axis.",
28862886
"returns": null,
28872887
"category": "Document",
28882888
"subcategory": "Transformation",
@@ -2917,7 +2917,7 @@
29172917
},
29182918
{
29192919
"name": "translate",
2920-
"description": "Specifies an amount to displace objects within the page. The x parameter specifies left/right translation, the y parameter specifies up/down translation. Transformations apply to everything that happens after and subsequent calls to the function accumulates the effect. For example, calling ",
2920+
"description": "Specifies an amount to displace objects within the page. The x parameter specifies left/right translation, the y parameter specifies up/down translation. Transformations apply to everything that happens after and subsequent calls to the function accumulates the effect. For example, calling <code>translate(50, 0)</code> and then <code>translate(20, 0)</code> is the same as <code>translate(70, 0)</code>. This function can be further controlled by the <code>pushMatrix()</code> and <code>popMatrix()</code>.",
29212921
"returns": null,
29222922
"category": "Document",
29232923
"subcategory": "Transformation",
@@ -7272,7 +7272,7 @@
72727272
},
72737273
{
72747274
"name": "Array.filter",
7275-
"description": "The ",
7275+
"description": "The <a href=\"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Array/filter\">filter()</a> method creates a new array with all elements that pass the test implemented by the provided function.",
72767276
"returns": {
72777277
"name": null,
72787278
"description": "The new array with the elements that pass the test.",
@@ -7305,7 +7305,7 @@
73057305
},
73067306
{
73077307
"name": "Array.map",
7308-
"description": "The ",
7308+
"description": "The <a href=\"https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/Array/map\">map()</a> method creates a new array with the results of calling a provided function on every element in this array.",
73097309
"returns": {
73107310
"name": null,
73117311
"description": "The new array with each element being the result of the callback function.",

_data/cats-and-subcats.json

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2842,7 +2842,7 @@
28422842
},
28432843
{
28442844
"name": "popMatrix",
2845-
"description": "Pops the current transformation matrix off the matrix stack. Understanding pushing and popping requires understanding the concept of a matrix stack. The ",
2845+
"description": "Pops the current transformation matrix off the matrix stack. Understanding pushing and popping requires understanding the concept of a matrix stack. The <code>pushMatrix()</code> function saves the current coordinate system to the stack and <code>popMatrix()</code> restores the prior coordinate system. <code>pushMatrix()</code> and <code>popMatrix()</code> are used in conjuction with the other transformation methods and may be embedded to control the scope of the transformations.",
28462846
"returns": null,
28472847
"category": "Document",
28482848
"subcategory": "Transformation",
@@ -2873,7 +2873,7 @@
28732873
},
28742874
{
28752875
"name": "pushMatrix",
2876-
"description": "Pushes the current transformation matrix onto the matrix stack. Understanding ",
2876+
"description": "Pushes the current transformation matrix onto the matrix stack. Understanding <code>pushMatrix()</code> and <code>popMatrix()</code> requires understanding the concept of a matrix stack. The <code>pushMatrix()</code> function saves the current coordinate system to the stack and <code>popMatrix()</code> restores the prior coordinate system. <code>pushMatrix()</code> and <code>popMatrix()</code> are used in conjuction with the other transformation methods and may be embedded to control the scope of the transformations.",
28772877
"returns": null,
28782878
"category": "Document",
28792879
"subcategory": "Transformation",
@@ -2904,7 +2904,7 @@
29042904
},
29052905
{
29062906
"name": "rotate",
2907-
"description": "Rotates an object the amount specified by the angle parameter. Angles should be specified in radians (values from 0 to ",
2907+
"description": "Rotates an object the amount specified by the angle parameter. Angles should be specified in radians (values from 0 to <code>PI</code>*2) or converted to radians with the <code>radians()</code> function. Objects are always rotated around their relative position to the origin and positive numbers rotate objects in a clockwise direction with 0 radians or degrees being up and <code>HALF_PI</code> being to the right etc. Transformations apply to everything that happens after and subsequent calls to the function accumulates the effect. For example, calling <code>rotate(PI/2)</code> and then <code>rotate(PI/2)</code> is the same as <code>rotate(PI)</code>. If <code>rotate()</code> is called within the <code>draw()</code>, the transformation is reset when the loop begins again. Technically, <code>rotate()</code> multiplies the current transformation matrix by a rotation matrix. This function can be further controlled by the <code>pushMatrix()</code> and <code>popMatrix()</code>.",
29082908
"returns": null,
29092909
"category": "Document",
29102910
"subcategory": "Transformation",
@@ -2931,7 +2931,7 @@
29312931
},
29322932
{
29332933
"name": "scale",
2934-
"description": "Increasing and decreasing the size of an object by expanding and contracting vertices. Scale values are specified as decimal percentages. The function call ",
2934+
"description": "Increasing and decreasing the size of an object by expanding and contracting vertices. Scale values are specified as decimal percentages. The function call <code>scale(2.0)</code> increases the dimension of a shape by 200%. Objects always scale from their relative origin to the coordinate system. Transformations apply to everything that happens after and subsequent calls to the function multiply the effect. For example, calling <code>scale(2.0)</code> and then <code>scale(1.5)</code> is the same as <code>scale(3.0)</code>. If <code>scale()</code> is called within <code>draw()</code>, the transformation is reset when the loop begins again. This function can be further controlled by <code>pushMatrix()</code> and <code>popMatrix()</code>.\nIf only one parameter is given, it is applied on X and Y axis.",
29352935
"returns": null,
29362936
"category": "Document",
29372937
"subcategory": "Transformation",
@@ -2966,7 +2966,7 @@
29662966
},
29672967
{
29682968
"name": "translate",
2969-
"description": "Specifies an amount to displace objects within the page. The x parameter specifies left/right translation, the y parameter specifies up/down translation. Transformations apply to everything that happens after and subsequent calls to the function accumulates the effect. For example, calling ",
2969+
"description": "Specifies an amount to displace objects within the page. The x parameter specifies left/right translation, the y parameter specifies up/down translation. Transformations apply to everything that happens after and subsequent calls to the function accumulates the effect. For example, calling <code>translate(50, 0)</code> and then <code>translate(20, 0)</code> is the same as <code>translate(70, 0)</code>. This function can be further controlled by the <code>pushMatrix()</code> and <code>popMatrix()</code>.",
29702970
"returns": null,
29712971
"category": "Document",
29722972
"subcategory": "Transformation",
@@ -6780,7 +6780,7 @@
67806780
"entries": [
67816781
{
67826782
"name": "Array.filter",
6783-
"description": "The ",
6783+
"description": "The <a href=\"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Array/filter\">filter()</a> method creates a new array with all elements that pass the test implemented by the provided function.",
67846784
"returns": {
67856785
"name": null,
67866786
"description": "The new array with the elements that pass the test.",
@@ -6813,7 +6813,7 @@
68136813
},
68146814
{
68156815
"name": "Array.map",
6816-
"description": "The ",
6816+
"description": "The <a href=\"https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/Array/map\">map()</a> method creates a new array with the results of calling a provided function on every element in this array.",
68176817
"returns": {
68186818
"name": null,
68196819
"description": "The new array with each element being the result of the callback function.",

_data/sub-categories.json

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4759,7 +4759,7 @@
47594759
},
47604760
{
47614761
"name": "popMatrix",
4762-
"description": "Pops the current transformation matrix off the matrix stack. Understanding pushing and popping requires understanding the concept of a matrix stack. The ",
4762+
"description": "Pops the current transformation matrix off the matrix stack. Understanding pushing and popping requires understanding the concept of a matrix stack. The <code>pushMatrix()</code> function saves the current coordinate system to the stack and <code>popMatrix()</code> restores the prior coordinate system. <code>pushMatrix()</code> and <code>popMatrix()</code> are used in conjuction with the other transformation methods and may be embedded to control the scope of the transformations.",
47634763
"returns": null,
47644764
"category": "Document",
47654765
"subcategory": "Transformation",
@@ -4790,7 +4790,7 @@
47904790
},
47914791
{
47924792
"name": "pushMatrix",
4793-
"description": "Pushes the current transformation matrix onto the matrix stack. Understanding ",
4793+
"description": "Pushes the current transformation matrix onto the matrix stack. Understanding <code>pushMatrix()</code> and <code>popMatrix()</code> requires understanding the concept of a matrix stack. The <code>pushMatrix()</code> function saves the current coordinate system to the stack and <code>popMatrix()</code> restores the prior coordinate system. <code>pushMatrix()</code> and <code>popMatrix()</code> are used in conjuction with the other transformation methods and may be embedded to control the scope of the transformations.",
47944794
"returns": null,
47954795
"category": "Document",
47964796
"subcategory": "Transformation",
@@ -4821,7 +4821,7 @@
48214821
},
48224822
{
48234823
"name": "rotate",
4824-
"description": "Rotates an object the amount specified by the angle parameter. Angles should be specified in radians (values from 0 to ",
4824+
"description": "Rotates an object the amount specified by the angle parameter. Angles should be specified in radians (values from 0 to <code>PI</code>*2) or converted to radians with the <code>radians()</code> function. Objects are always rotated around their relative position to the origin and positive numbers rotate objects in a clockwise direction with 0 radians or degrees being up and <code>HALF_PI</code> being to the right etc. Transformations apply to everything that happens after and subsequent calls to the function accumulates the effect. For example, calling <code>rotate(PI/2)</code> and then <code>rotate(PI/2)</code> is the same as <code>rotate(PI)</code>. If <code>rotate()</code> is called within the <code>draw()</code>, the transformation is reset when the loop begins again. Technically, <code>rotate()</code> multiplies the current transformation matrix by a rotation matrix. This function can be further controlled by the <code>pushMatrix()</code> and <code>popMatrix()</code>.",
48254825
"returns": null,
48264826
"category": "Document",
48274827
"subcategory": "Transformation",
@@ -4848,7 +4848,7 @@
48484848
},
48494849
{
48504850
"name": "scale",
4851-
"description": "Increasing and decreasing the size of an object by expanding and contracting vertices. Scale values are specified as decimal percentages. The function call ",
4851+
"description": "Increasing and decreasing the size of an object by expanding and contracting vertices. Scale values are specified as decimal percentages. The function call <code>scale(2.0)</code> increases the dimension of a shape by 200%. Objects always scale from their relative origin to the coordinate system. Transformations apply to everything that happens after and subsequent calls to the function multiply the effect. For example, calling <code>scale(2.0)</code> and then <code>scale(1.5)</code> is the same as <code>scale(3.0)</code>. If <code>scale()</code> is called within <code>draw()</code>, the transformation is reset when the loop begins again. This function can be further controlled by <code>pushMatrix()</code> and <code>popMatrix()</code>.\nIf only one parameter is given, it is applied on X and Y axis.",
48524852
"returns": null,
48534853
"category": "Document",
48544854
"subcategory": "Transformation",
@@ -4883,7 +4883,7 @@
48834883
},
48844884
{
48854885
"name": "translate",
4886-
"description": "Specifies an amount to displace objects within the page. The x parameter specifies left/right translation, the y parameter specifies up/down translation. Transformations apply to everything that happens after and subsequent calls to the function accumulates the effect. For example, calling ",
4886+
"description": "Specifies an amount to displace objects within the page. The x parameter specifies left/right translation, the y parameter specifies up/down translation. Transformations apply to everything that happens after and subsequent calls to the function accumulates the effect. For example, calling <code>translate(50, 0)</code> and then <code>translate(20, 0)</code> is the same as <code>translate(70, 0)</code>. This function can be further controlled by the <code>pushMatrix()</code> and <code>popMatrix()</code>.",
48874887
"returns": null,
48884888
"category": "Document",
48894889
"subcategory": "Transformation",
@@ -6774,7 +6774,7 @@
67746774
"entries": [
67756775
{
67766776
"name": "Array.filter",
6777-
"description": "The ",
6777+
"description": "The <a href=\"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Array/filter\">filter()</a> method creates a new array with all elements that pass the test implemented by the provided function.",
67786778
"returns": {
67796779
"name": null,
67806780
"description": "The new array with the elements that pass the test.",
@@ -6807,7 +6807,7 @@
68076807
},
68086808
{
68096809
"name": "Array.map",
6810-
"description": "The ",
6810+
"description": "The <a href=\"https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/Array/map\">map()</a> method creates a new array with the results of calling a provided function on every element in this array.",
68116811
"returns": {
68126812
"name": null,
68136813
"description": "The new array with each element being the result of the callback function.",

data/Array.filter.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
layout: entry
33
title: Array.filter
44
codetitle: b.Array.filter(callback)
5-
description: 'The '
5+
description: 'The <a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Array/filter">filter()</a> method creates a new array with all elements that pass the test implemented by the provided function.'
66
category: Data
77
subcategory: Array
88
returns:

data/Array.map.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
layout: entry
33
title: Array.map
44
codetitle: b.Array.map(callback)
5-
description: 'The '
5+
description: 'The <a href="https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/Array/map">map()</a> method creates a new array with the results of calling a provided function on every element in this array.'
66
category: Data
77
subcategory: Array
88
returns:

0 commit comments

Comments
 (0)