summaryrefslogtreecommitdiffstats
path: root/lib/json/encodeSummaryArticle.js
diff options
context:
space:
mode:
authorSamy Pessé <samypesse@gmail.com>2016-04-25 11:05:06 +0200
committerSamy Pessé <samypesse@gmail.com>2016-04-25 11:05:06 +0200
commit814b6ff489bc1f0bfd03db6409d49185e8c7b93e (patch)
treedd00993c84667e222d4699e8e1ac933b853b9a3a /lib/json/encodeSummaryArticle.js
parent3aa17ab1f4a25a9bcfd8babdcf98a37ac6c2496c (diff)
downloadgitbook-814b6ff489bc1f0bfd03db6409d49185e8c7b93e.zip
gitbook-814b6ff489bc1f0bfd03db6409d49185e8c7b93e.tar.gz
gitbook-814b6ff489bc1f0bfd03db6409d49185e8c7b93e.tar.bz2
Complete json format
Diffstat (limited to 'lib/json/encodeSummaryArticle.js')
-rw-r--r--lib/json/encodeSummaryArticle.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/json/encodeSummaryArticle.js b/lib/json/encodeSummaryArticle.js
index 485d209..b3f977a 100644
--- a/lib/json/encodeSummaryArticle.js
+++ b/lib/json/encodeSummaryArticle.js
@@ -10,6 +10,9 @@ function encodeSummaryArticle(article) {
title: article.getTitle(),
level: article.getLevel(),
depth: article.getDepth(),
+ anchor: article.getAnchor(),
+ url: article.getUrl(),
+ path: article.getPath(),
articles: article.getArticles()
.map(encodeSummaryArticle).toJS()
};