summaryrefslogtreecommitdiffstats
path: root/packages/gitbook-html/lib/totext.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/totext.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/totext.js')
-rw-r--r--packages/gitbook-html/lib/totext.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/packages/gitbook-html/lib/totext.js b/packages/gitbook-html/lib/totext.js
index b1c94d4..49762d9 100644
--- a/packages/gitbook-html/lib/totext.js
+++ b/packages/gitbook-html/lib/totext.js
@@ -95,9 +95,9 @@ ToText.prototype._summaryArticle = function(article, level) {
content += this.onListItemStart(level);
- if (article.path) content += this.onLinkStart(article.path)
+ if (article.ref) content += this.onLinkStart(article.ref)
content += this.onText(article.title)
- if (article.path) content += this.onLinkEnd(article.path);
+ if (article.ref) content += this.onLinkEnd(article.ref);
content += this.onBL();
if (article.articles && article.articles.length > 0) {