diff options
Diffstat (limited to 'lib/utils/location.js')
-rw-r--r-- | lib/utils/location.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/utils/location.js b/lib/utils/location.js index 09fa93a..d96cf85 100644 --- a/lib/utils/location.js +++ b/lib/utils/location.js @@ -51,7 +51,8 @@ function toAbsolute(_href, dir, outdir) { return _href; } -// Convert an absolute path to a relative patg +// Convert an absolute path to a relative path for a specific folder (dir) +// ('test/', 'hello.md') -> '../hello.md' function relative(dir, file) { return normalize(path.relative(dir, file)); } |