Loading lib/patternlibrary/build-docs.js +1 −0 Original line number Diff line number Diff line Loading @@ -82,6 +82,7 @@ function buildDocs() { // build the doc page... var pageSource = this.renderdocs(data); /** global: Buffer */ file.contents = new Buffer(pageSource); // Write new file to disk if necessary Loading lib/patternlibrary/load-data.js +2 −2 Original line number Diff line number Diff line Loading @@ -18,10 +18,10 @@ module.exports = function(dir) { if (ext === '.json' || ext === '.js') { delete require.cache[require.resolve(dataFiles[i])]; data = require(dataFiles[i]) let data = require(dataFiles[i]) } else if (ext === '.yml') { data = yaml.safeLoad(fs.readFileSync(dataFiles[i])); let data = yaml.safeLoad(fs.readFileSync(dataFiles[i])); } this.data[name] = data; Loading lib/patternlibrary/load-helpers.js +1 −1 Original line number Diff line number Diff line Loading @@ -23,7 +23,7 @@ function loadHandlebarsHelpers (dir) { this.handlebars.registerHelper(name, helper); } catch (e) { console.warn('Error when loading ' + name + '.js as a Handlebars helper.', helper, e); console.warn('Error when loading ' + name + '.js as a Handlebars helper.', e); } } } Loading lib/patternlibrary/render-page.js +1 −1 Original line number Diff line number Diff line Loading @@ -57,7 +57,7 @@ function renderPage ( page_src, page_target, data, markdown ) { pageSource = String(pageSource).replace('{__MDBODY__}', markdown); } /** global: Buffer */ var filecontents = new Buffer(pageSource); Loading Loading
lib/patternlibrary/build-docs.js +1 −0 Original line number Diff line number Diff line Loading @@ -82,6 +82,7 @@ function buildDocs() { // build the doc page... var pageSource = this.renderdocs(data); /** global: Buffer */ file.contents = new Buffer(pageSource); // Write new file to disk if necessary Loading
lib/patternlibrary/load-data.js +2 −2 Original line number Diff line number Diff line Loading @@ -18,10 +18,10 @@ module.exports = function(dir) { if (ext === '.json' || ext === '.js') { delete require.cache[require.resolve(dataFiles[i])]; data = require(dataFiles[i]) let data = require(dataFiles[i]) } else if (ext === '.yml') { data = yaml.safeLoad(fs.readFileSync(dataFiles[i])); let data = yaml.safeLoad(fs.readFileSync(dataFiles[i])); } this.data[name] = data; Loading
lib/patternlibrary/load-helpers.js +1 −1 Original line number Diff line number Diff line Loading @@ -23,7 +23,7 @@ function loadHandlebarsHelpers (dir) { this.handlebars.registerHelper(name, helper); } catch (e) { console.warn('Error when loading ' + name + '.js as a Handlebars helper.', helper, e); console.warn('Error when loading ' + name + '.js as a Handlebars helper.', e); } } } Loading
lib/patternlibrary/render-page.js +1 −1 Original line number Diff line number Diff line Loading @@ -57,7 +57,7 @@ function renderPage ( page_src, page_target, data, markdown ) { pageSource = String(pageSource).replace('{__MDBODY__}', markdown); } /** global: Buffer */ var filecontents = new Buffer(pageSource); Loading