sassdoc-extras
Advanced tools
Comparing version 2.0.0-rc1 to 2.0.0-rc2
{ | ||
"name": "sassdoc-extras", | ||
"description": "SassDoc's Toolbelt", | ||
"version": "2.0.0-rc1", | ||
"version": "2.0.0-rc2", | ||
"repository": { | ||
@@ -6,0 +6,0 @@ "type": "git", |
@@ -24,12 +24,10 @@ 'use strict'; | ||
item.group.forEach(function (groups) { | ||
groups.forEach(function (slug) { | ||
slug = slug.toLowerCase(); | ||
item.group.forEach(function (slug) { | ||
slug = slug.toLowerCase(); | ||
if (slug in ctx.groups) { | ||
group[slug] = ctx.groups[slug]; | ||
} else { | ||
group[slug] = ctx.groups[slug] = slug; | ||
} | ||
}); | ||
if (slug in ctx.groups) { | ||
group[slug] = ctx.groups[slug]; | ||
} else { | ||
group[slug] = ctx.groups[slug] = slug; | ||
} | ||
}); | ||
@@ -36,0 +34,0 @@ |
@@ -41,2 +41,10 @@ 'use strict'; | ||
if ('content' in item && item.content.description) { | ||
item.content.description = marked(item.content.description); | ||
} | ||
if ('return' in item && item.content.description) { | ||
item.return.description = marked(item.return.description); | ||
} | ||
if ('author' in item) { | ||
@@ -54,6 +62,4 @@ item.author = item.author.map(md); | ||
if ('return' in item) { | ||
item.return = item.return.map( | ||
applyKey(md, 'description') | ||
); | ||
if ('deprecated' in item) { | ||
item.deprecated = item.deprecated.map(md); | ||
} | ||
@@ -79,4 +85,4 @@ | ||
if ('content' in item) { | ||
item.content = item.content.map( | ||
if ('since' in item) { | ||
item.since = item.content.map( | ||
applyKey(md, 'description') | ||
@@ -83,0 +89,0 @@ ); |
@@ -27,5 +27,3 @@ { | ||
"group": [ | ||
[ | ||
"undefined" | ||
] | ||
"undefined" | ||
], | ||
@@ -46,5 +44,3 @@ "access": [ | ||
"group": [ | ||
[ | ||
"foo" | ||
] | ||
"foo" | ||
], | ||
@@ -65,5 +61,3 @@ "access": [ | ||
"group": [ | ||
[ | ||
"bar" | ||
] | ||
"bar" | ||
], | ||
@@ -70,0 +64,0 @@ "access": [ |
@@ -27,5 +27,3 @@ { | ||
"group": [ | ||
[ | ||
"undefined" | ||
] | ||
"undefined" | ||
], | ||
@@ -43,5 +41,3 @@ "access": [ | ||
"group": [ | ||
[ | ||
"foo" | ||
] | ||
"foo" | ||
], | ||
@@ -59,5 +55,3 @@ "access": [ | ||
"group": [ | ||
[ | ||
"bar" | ||
] | ||
"bar" | ||
], | ||
@@ -64,0 +58,0 @@ "access": [ |
@@ -34,13 +34,9 @@ { | ||
], | ||
"return":[ | ||
{ | ||
"type":"*", | ||
"description":"<p>Returns description</p>\n" | ||
} | ||
], | ||
"content":[ | ||
{ | ||
"description":"<p>This should be parsed as Markdown</p>\n" | ||
} | ||
] | ||
"return":{ | ||
"type":"*", | ||
"description":"<p>Returns description</p>\n" | ||
}, | ||
"content":{ | ||
"description":"<p>This should be parsed as Markdown</p>\n" | ||
} | ||
} | ||
@@ -47,0 +43,0 @@ } |
@@ -34,13 +34,9 @@ { | ||
], | ||
"return": [ | ||
{ | ||
"type": "*", | ||
"description": "Returns description" | ||
} | ||
], | ||
"content": [ | ||
{ | ||
"description": "This should be parsed as Markdown" | ||
} | ||
] | ||
"return": { | ||
"type": "*", | ||
"description": "Returns description" | ||
}, | ||
"content": { | ||
"description": "This should be parsed as Markdown" | ||
} | ||
} | ||
@@ -47,0 +43,0 @@ } |
18949
776