summaryrefslogtreecommitdiffstats
path: root/lib/page/index.js
diff options
context:
space:
mode:
Diffstat (limited to 'lib/page/index.js')
-rw-r--r--lib/page/index.js18
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() {