summaryrefslogtreecommitdiffstats
path: root/packages/gitbook-html/lib/langs.js
diff options
context:
space:
mode:
authorSamy Pessé <samypesse@gmail.com>2016-02-19 16:12:43 +0100
committerSamy Pessé <samypesse@gmail.com>2016-12-22 12:32:14 +0100
commit4c44d677117d926b6dcc164f55fe34079c2ca3c7 (patch)
tree71d0fca56421f3a7b68d60a446f89d3735828f03 /packages/gitbook-html/lib/langs.js
parent9e99b5850fd866fc2f9196993a0ae7e342311558 (diff)
downloadgitbook-4c44d677117d926b6dcc164f55fe34079c2ca3c7.zip
gitbook-4c44d677117d926b6dcc164f55fe34079c2ca3c7.tar.gz
gitbook-4c44d677117d926b6dcc164f55fe34079c2ca3c7.tar.bz2
Improve summary parser
Diffstat (limited to 'packages/gitbook-html/lib/langs.js')
-rwxr-xr-xpackages/gitbook-html/lib/langs.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/packages/gitbook-html/lib/langs.js b/packages/gitbook-html/lib/langs.js
index 1042dcb..270a9f6 100755
--- a/packages/gitbook-html/lib/langs.js
+++ b/packages/gitbook-html/lib/langs.js
@@ -1,9 +1,9 @@
var _ = require('lodash');
-var parseEntries = require('./summary').entries;
+var parseSummary = require('./summary');
// HTML -> Languages
function parseLangs(content) {
- return parseEntries(content);
+ return parseSummary(content).parts[0].articles;
}
// Languages -> HTML