mirror of
https://github.com/documentationjs/documentation.git
synced 2026-01-25 14:26:29 +00:00
Remove index.json from stream, fix base
This commit is contained in:
parent
e888748f1a
commit
b3b3e10852
@ -76,11 +76,6 @@ module.exports = function (opts) {
|
||||
|
||||
helpers(Handlebars, paths);
|
||||
|
||||
this.push(new File({
|
||||
path: 'index.json',
|
||||
contents: new Buffer(JSON.stringify(comments, null, 2), 'utf8')
|
||||
}));
|
||||
|
||||
this.push(new File({
|
||||
path: 'index.html',
|
||||
contents: new Buffer(pageTemplate({
|
||||
@ -92,7 +87,7 @@ module.exports = function (opts) {
|
||||
callback();
|
||||
}, function (callback) {
|
||||
// push assets into the pipeline as well.
|
||||
vfs.src([themeModule + '/assets/**'])
|
||||
vfs.src([themeModule + '/assets/**'], { base: themeModule })
|
||||
.on('data', function (file) {
|
||||
this.push(file);
|
||||
}.bind(this))
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user