summaryrefslogtreecommitdiffstats
path: root/packages/gitbook/src/json/encodeSummaryArticle.js
diff options
context:
space:
mode:
Diffstat (limited to 'packages/gitbook/src/json/encodeSummaryArticle.js')
-rw-r--r--packages/gitbook/src/json/encodeSummaryArticle.js22
1 files changed, 11 insertions, 11 deletions
diff --git a/packages/gitbook/src/json/encodeSummaryArticle.js b/packages/gitbook/src/json/encodeSummaryArticle.js
index 0b9461c..b6d7d9f 100644
--- a/packages/gitbook/src/json/encodeSummaryArticle.js
+++ b/packages/gitbook/src/json/encodeSummaryArticle.js
@@ -1,10 +1,10 @@
/**
- Encode a SummaryArticle to JSON
-
- @param {SummaryArticle}
- @return {Object}
-*/
+ * Encode a SummaryArticle to JSON
+ *
+ * @param {SummaryArticle}
+ * @return {Object}
+ */
function encodeSummaryArticle(article, recursive) {
let articles = undefined;
if (recursive !== false) {
@@ -14,13 +14,13 @@ function encodeSummaryArticle(article, recursive) {
}
return {
- title: article.getTitle(),
- level: article.getLevel(),
- depth: article.getDepth(),
+ title: article.getTitle(),
+ level: article.getLevel(),
+ depth: article.getDepth(),
anchor: article.getAnchor(),
- url: article.getUrl(),
- path: article.getPath(),
- ref: article.getRef(),
+ url: article.getUrl(),
+ path: article.getPath(),
+ ref: article.getRef(),
articles
};
}