summaryrefslogtreecommitdiffstats
path: root/lib/output
diff options
context:
space:
mode:
authorSamy Pessé <samypesse@gmail.com>2016-03-07 11:00:01 +0100
committerSamy Pessé <samypesse@gmail.com>2016-03-07 11:00:01 +0100
commitb61254dda64b686e09e896e146d081519ced87d0 (patch)
tree68f078d7b9144bcf0c8346a37b60fbf98eeef15f /lib/output
parentb4bdf97cfe84994a4e2e04f196e0ebb4849b188f (diff)
downloadgitbook-b61254dda64b686e09e896e146d081519ced87d0.zip
gitbook-b61254dda64b686e09e896e146d081519ced87d0.tar.gz
gitbook-b61254dda64b686e09e896e146d081519ced87d0.tar.bz2
Add more deprecated api
Diffstat (limited to 'lib/output')
-rw-r--r--lib/output/base.js4
-rw-r--r--lib/output/website.js2
2 files changed, 3 insertions, 3 deletions
diff --git a/lib/output/base.js b/lib/output/base.js
index f10f015..9c2153d 100644
--- a/lib/output/base.js
+++ b/lib/output/base.js
@@ -185,7 +185,7 @@ Output.prototype.onRelativeLink = function(currentPage, href) {
href = currentPage.relative(href);
// Replace .md by .html
- href = this.outputUrl(href);
+ href = this.toURL(href);
}
return href;
@@ -263,7 +263,7 @@ Output.prototype.outputPath = function(filename, ext) {
// Filename for output
// /test/index.html -> /test/
-Output.prototype.outputUrl = function(filename, ext) {
+Output.prototype.toURL = function(filename, ext) {
var href = this.outputPath(filename, ext);
if (path.basename(href) == 'index.html' && this.opts.directoryIndex) {
diff --git a/lib/output/website.js b/lib/output/website.js
index 230af71..ae3d7af 100644
--- a/lib/output/website.js
+++ b/lib/output/website.js
@@ -117,7 +117,7 @@ WebsiteOutput.prototype.prepare = function() {
// Transform a '.md' into a '.html' (README -> index)
that.env.addFilter('contentURL', function(s) {
- return location.normalize(that.outputUrl(s));
+ return that.toURL(s);
});
// Relase path to an asset