summaryrefslogtreecommitdiffstats
path: root/lib/generate/index.js
diff options
context:
space:
mode:
Diffstat (limited to 'lib/generate/index.js')
-rw-r--r--lib/generate/index.js13
1 files changed, 11 insertions, 2 deletions
diff --git a/lib/generate/index.js b/lib/generate/index.js
index 48bcaca..33edc1f 100644
--- a/lib/generate/index.js
+++ b/lib/generate/index.js
@@ -129,6 +129,15 @@ var generate = function(options) {
});
})
+ // Skip processing some files
+ .then(function() {
+ files = _.filter(files, function (file) {
+ return !(
+ file === 'SUMMARY.md'
+ );
+ });
+ })
+
// Copy file and replace markdown file
.then(function() {
return Q.all(
@@ -177,7 +186,7 @@ var generateFile = function(options) {
return Q.nfcall(tmp.dir)
.then(function(tmpDir) {
return generate(
- _.extend({},
+ _.extend({},
options,
{
output: tmpDir
@@ -195,7 +204,7 @@ var generateFile = function(options) {
_outputFile = _outputFile.slice(0, -path.extname(_outputFile).length)+"_"+lang+path.extname(_outputFile);
_tmpDir = path.join(_tmpDir, lang);
}
-
+
return fs.copy(
path.join(_tmpDir, "index."+ext),
_outputFile