diff options
author | Samy Pessé <samypesse@gmail.com> | 2015-01-19 09:47:36 +0100 |
---|---|---|
committer | Samy Pessé <samypesse@gmail.com> | 2015-01-19 09:47:36 +0100 |
commit | ec586dd3cdf06e9567f5d3e4961022ddc3c94778 (patch) | |
tree | cc7825ab73110b4e6fbedee404427b052edffa17 /lib/parse/langs.js | |
parent | 80432161708357bdcf0e00533d9e6d327636dab6 (diff) | |
download | gitbook-ec586dd3cdf06e9567f5d3e4961022ddc3c94778.zip gitbook-ec586dd3cdf06e9567f5d3e4961022ddc3c94778.tar.gz gitbook-ec586dd3cdf06e9567f5d3e4961022ddc3c94778.tar.bz2 |
Clear folder
Diffstat (limited to 'lib/parse/langs.js')
-rw-r--r-- | lib/parse/langs.js | 25 |
1 files changed, 0 insertions, 25 deletions
diff --git a/lib/parse/langs.js b/lib/parse/langs.js deleted file mode 100644 index 01b7c8c..0000000 --- a/lib/parse/langs.js +++ /dev/null @@ -1,25 +0,0 @@ -var _ = require("lodash"); -var parseEntries = require("./summary").entries; - - -var parseLangs = function(content) { - var entries = parseEntries(content); - - return { - list: _.chain(entries) - .filter(function(entry) { - return Boolean(entry.path); - }) - .map(function(entry) { - return { - title: entry.title, - path: entry.path, - lang: entry.path.replace("/", "") - }; - }) - .value() - }; -}; - - -module.exports = parseLangs;
\ No newline at end of file |