summaryrefslogtreecommitdiffstats
path: root/lib/output/base.js
diff options
context:
space:
mode:
Diffstat (limited to 'lib/output/base.js')
-rw-r--r--lib/output/base.js23
1 files changed, 11 insertions, 12 deletions
diff --git a/lib/output/base.js b/lib/output/base.js
index 997b8da..6ac3d7e 100644
--- a/lib/output/base.js
+++ b/lib/output/base.js
@@ -27,18 +27,6 @@ function Output(book) {
// Files to ignore in output
this.ignore = Ignore();
- this.ignore.addPattern(_.compact([
- '.gitignore',
- '.ignore',
- '.bookignore',
-
- // The configuration file should not be copied in the output
- this.book.config.path,
-
- // Structure file to ignore
- this.book.summary.path,
- this.book.langs.path
- ]));
}
// Start the generation, for a parsed book
@@ -105,7 +93,18 @@ Output.prototype.generate = function() {
// Prepare the generation
Output.prototype.prepare = function() {
+ this.ignore.addPattern(_.compact([
+ '.gitignore',
+ '.ignore',
+ '.bookignore',
+ // The configuration file should not be copied in the output
+ this.book.config.path,
+
+ // Structure file to ignore
+ this.book.summary.path,
+ this.book.langs.path
+ ]));
};
// Write a page (parsable file), ex: markdown, etc