mirror of
https://github.com/GitbookIO/gitbook.git
synced 2026-09-18 08:35:10 +00:00
22 lines
471 B
JavaScript
22 lines
471 B
JavaScript
var websiteGenerator = require('../website');
|
|
|
|
/**
|
|
Initialize the generator
|
|
|
|
@param {Output}
|
|
@return {Output}
|
|
*/
|
|
function onInit(output) {
|
|
return websiteGenerator.onInit(output)
|
|
.then(function(resultOutput) {
|
|
var options = resultOutput.getOptions();
|
|
|
|
options = options.set('directoryIndex', false);
|
|
options = options.set('prefix', 'ebook');
|
|
|
|
return resultOutput.setOptions(options);
|
|
});
|
|
}
|
|
|
|
module.exports = onInit;
|