Templates not building with anything but 'default' theme
timkelty opened this issue · 2 comments
timkelty commented
I can't get options.theme
to work...if I use anything but 'default'
, the gulp task finishes, but the guide is never generated (however in my gulp example, the task does complete).
I also never get the Successfully created style guide!
message.
gulp.task('build:styleguide', function() {
return gulp.src(src)
.pipe(postcss(plugins.concat([
require('postcss-style-guide')({
name: config.pkg.title,
dir: path.join(config.paths.dest, 'style'),
file: 'index.html',
theme: 'forest',
})
])));
});
timkelty commented
Ah, it appears the ejs.render
is the issue.
Wrapping it in a try/catch logs this:
{ [ReferenceError: ejs:7
5| <title><%= projectName %></title>
6| <link href='http://fonts.googleapis.com/css?family=Josefin+Slab' rel='stylesheet' type='text/css'>
>> 7| <style><%- codeStyle %><%- tmplStyle %><%- rootStyle %><%- processedCSS %></style>
8| </head>
9| <body>
10| <header class="masthead">
rootStyle is not defined] path: undefined }
timkelty commented
Ah, looks like 0.6.0 removed rootStyle, so it just needs to be removed from those themes.