Fix build-index.js coding style (#1101)
- Use single quotes consistently - Insert space before parenthesis in anonymous function declarations
This commit is contained in:

committed by
Agniva De Sarker

parent
7555812d12
commit
27123e215a
@@ -1,6 +1,6 @@
|
|||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
var glob = require("glob");
|
var glob = require('glob');
|
||||||
|
|
||||||
function parsePlatform(pagefile) {
|
function parsePlatform(pagefile) {
|
||||||
return pagefile.split(/\//)[1];
|
return pagefile.split(/\//)[1];
|
||||||
@@ -43,7 +43,7 @@ function saveIndex(index) {
|
|||||||
console.log(JSON.stringify(indexFile));
|
console.log(JSON.stringify(indexFile));
|
||||||
}
|
}
|
||||||
|
|
||||||
glob("pages/**/*.md", function (er, files) {
|
glob('pages/**/*.md', function (er, files) {
|
||||||
var shortIndex = buildShortPagesIndex(files);
|
var shortIndex = buildShortPagesIndex(files);
|
||||||
var index = buildPagesIndex(shortIndex);
|
var index = buildPagesIndex(shortIndex);
|
||||||
saveIndex(index);
|
saveIndex(index);
|
||||||
|
Reference in New Issue
Block a user