live-guide
Advanced tools
Comparing version 0.9.2 to 0.9.4
@@ -38,3 +38,3 @@ 'use strict'; | ||
example: [`//@example\n//<button class="btn">Click me, I do stuff!</button>\n//\n`, `/*\n@example\n*<button class="btn">Click me, I do stuff!</button>\n*/`], | ||
notes: 'Any example written in a single line comments will need a blank comment line `//` after it.', | ||
notes: 'Any example will need a blank comment line after it.\nYou can add blank lines in examples with `\n`.', | ||
pattern: /^@example(.*?)?$\s((?:^.+$\s?)+)/gm, | ||
@@ -52,4 +52,6 @@ task: function(obj) { | ||
description: `Allows line to be skipped on output`, | ||
pattern: /^@skip(.*)/, | ||
filter: '' | ||
pattern: /^(@skip.*)$/gm, | ||
task: function(obj) { | ||
obj.filteredComments = obj.filteredComments.replace(this.pattern, (match, capture) => ''); | ||
} | ||
}, | ||
@@ -56,0 +58,0 @@ |
@@ -20,2 +20,4 @@ 'use strict'; | ||
snippet = snippet.replace(/\\n/g, ''); | ||
let fileName = `${frameName}-example-${exampleCount}.html`, | ||
@@ -22,0 +24,0 @@ exampleSource = path.resolve(__dirname, '../write-html/templates/example-code.hbs'), |
{ | ||
"name": "live-guide", | ||
"version": "0.9.2", | ||
"version": "0.9.4", | ||
"description": "Generate style guides based on commented style sheets.", | ||
@@ -5,0 +5,0 @@ "author": { |
@@ -66,3 +66,5 @@ live-guide | ||
**Description:** A code example, similar to writing code blocks in Markdown | ||
*Any example written in a single line comments will need a blank comment line `//` after it.* | ||
*Any example will need a blank comment line after it. | ||
You can add blank lines in examples with ` | ||
`.* | ||
@@ -69,0 +71,0 @@ **Example:** |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
37903
961
121