diff options
author | Samy Pessé <samypesse@gmail.com> | 2016-02-17 17:04:23 +0100 |
---|---|---|
committer | Samy Pessé <samypesse@gmail.com> | 2016-02-17 17:04:23 +0100 |
commit | d22c1f57e505eda6afe80fb6fe3a6b787d4aa699 (patch) | |
tree | 45d30347eb3dcc0d207247052cc2eb531149b262 /lib/page | |
parent | dac00be7b5a4aefa9cc3f63e5d94e729269bdfb0 (diff) | |
download | gitbook-d22c1f57e505eda6afe80fb6fe3a6b787d4aa699.zip gitbook-d22c1f57e505eda6afe80fb6fe3a6b787d4aa699.tar.gz gitbook-d22c1f57e505eda6afe80fb6fe3a6b787d4aa699.tar.bz2 |
Generate index.html instead of README.html
Diffstat (limited to 'lib/page')
-rw-r--r-- | lib/page/index.js | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/lib/page/index.js b/lib/page/index.js index 6dcefa1..c9cd066 100644 --- a/lib/page/index.js +++ b/lib/page/index.js @@ -45,24 +45,6 @@ Page.prototype.withExtension = function(ext) { return pathUtil.setExtension(this.path, ext); }; -// Filename for output -// READMEs are replaced by index.html -Page.prototype.outputPath = function(ext) { - ext = ext || '.html'; - var output; - - if ( - path.basename(this.path, path.extname(this.path)) == 'README' || - output == this.book.readme.path - ) { - output = path.join(path.dirname(output), 'index'+ext); - } else { - output = pathUtil.setExtension(output, ext); - } - - return output; -}; - // Resolve a filename relative to this page // It returns a path relative to the book root folder Page.prototype.resolveLocal = function() { |