mirror of
https://github.com/GitbookIO/gitbook.git
synced 2026-09-16 23:55:20 +00:00
Complete api method output.toURL
This commit is contained in:
@@ -4,6 +4,7 @@ var PathUtils = require('../utils/path');
|
||||
|
||||
var deprecate = require('./deprecate');
|
||||
var encodeConfig = require('./encodeConfig');
|
||||
var fileToURL = require('../output/helper/fileToURL');
|
||||
|
||||
/**
|
||||
Encode a global context into a JS object
|
||||
@@ -41,8 +42,8 @@ function encodeGlobal(output) {
|
||||
Convert a filepath into an url
|
||||
@return {String}
|
||||
*/
|
||||
toURL: function(s) {
|
||||
return s;
|
||||
toURL: function(filePath) {
|
||||
return fileToURL(output, filePath);
|
||||
},
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user