summaryrefslogtreecommitdiffstats
path: root/packages/gitbook-html/lib/summary.js
diff options
context:
space:
mode:
authorSamy Pessé <samypesse@gmail.com>2016-05-02 15:57:57 +0200
committerSamy Pessé <samypesse@gmail.com>2016-12-22 12:32:17 +0100
commit9e88003d7373e2e7efac862494a9a0db4847f617 (patch)
tree0757843cf9231e8d23d264a2bc8b8e840ff59805 /packages/gitbook-html/lib/summary.js
parenteb40ad369b2e9214b7484157b748113a08d2f376 (diff)
downloadgitbook-9e88003d7373e2e7efac862494a9a0db4847f617.zip
gitbook-9e88003d7373e2e7efac862494a9a0db4847f617.tar.gz
gitbook-9e88003d7373e2e7efac862494a9a0db4847f617.tar.bz2
Use 'ref" instead of "path" for summary
Diffstat (limited to 'packages/gitbook-html/lib/summary.js')
-rwxr-xr-xpackages/gitbook-html/lib/summary.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/packages/gitbook-html/lib/summary.js b/packages/gitbook-html/lib/summary.js
index 132dfdd..8d716d6 100755
--- a/packages/gitbook-html/lib/summary.js
+++ b/packages/gitbook-html/lib/summary.js
@@ -30,7 +30,7 @@ function parseList($ul, $) {
var $a = $li.find(SELECTOR_LINK);
if ($a.length > 0) {
article.title = $a.first().text();
- article.path = $a.attr('href').replace(/\\/g, '/').replace(/^\/+/, '')
+ article.ref = $a.attr('href').replace(/\\/g, '/').replace(/^\/+/, '')
}
// Sub articles