Style tweaks

This commit is contained in:
MICHAEL JACKSON
2017-11-25 21:19:48 -08:00
parent b06de06d89
commit 758b420297
2 changed files with 25 additions and 34 deletions

View File

@ -31,10 +31,10 @@ function createHTML(props) {
return DOCTYPE + ReactDOMServer.renderToStaticMarkup(e(IndexPage, props))
}
function getIndexHTML(packageInfo, version, baseDir, dir, callback) {
getEntries(path.join(baseDir, dir))
.then(entries => createHTML({ packageInfo, version, dir, entries }))
.then(html => callback(null, html), callback)
function getIndexHTML(packageInfo, version, baseDir, dir) {
return getEntries(path.join(baseDir, dir)).then(entries =>
createHTML({ packageInfo, version, dir, entries })
)
}
module.exports = getIndexHTML