summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSoreine <nicolas@gitbook.com>2016-10-19 00:34:57 +0200
committerSoreine <nicolas@gitbook.com>2016-10-19 00:34:57 +0200
commit92678bb93f1e82b231282bfb98723d1eaa1b9319 (patch)
treebed968a2a0773e066cd092d1e01872bdc7b886bc
parent4f2c729d607c8d8cae73ecd106fdb2de7797ba70 (diff)
downloadgitbook-92678bb93f1e82b231282bfb98723d1eaa1b9319.zip
gitbook-92678bb93f1e82b231282bfb98723d1eaa1b9319.tar.gz
gitbook-92678bb93f1e82b231282bfb98723d1eaa1b9319.tar.bz2
Clearer doc for File
-rw-r--r--packages/gitbook-core/src/models/File.js5
-rw-r--r--packages/gitbook/package.json2
2 files changed, 3 insertions, 4 deletions
diff --git a/packages/gitbook-core/src/models/File.js b/packages/gitbook-core/src/models/File.js
index c5ac654..efc4f11 100644
--- a/packages/gitbook-core/src/models/File.js
+++ b/packages/gitbook-core/src/models/File.js
@@ -21,9 +21,8 @@ class File extends Record(DEFAULTS) {
}
/**
- * Returns the relative path from this file to "to"
- * @param {String} to
- * @return {String}
+ * @param {String} to Absolute path
+ * @return {String} The same path, but relative to this file
*/
relative(to) {
return path.relative(
diff --git a/packages/gitbook/package.json b/packages/gitbook/package.json
index 11aa0f7..53a5406 100644
--- a/packages/gitbook/package.json
+++ b/packages/gitbook/package.json
@@ -104,4 +104,4 @@
"babel-register": "^6.14.0",
"mocha": "^3.0.2"
}
-}
+} \ No newline at end of file