diff options
author | Aaron O'Mullan <aaron.omullan@gmail.com> | 2014-04-04 10:59:13 -0700 |
---|---|---|
committer | Aaron O'Mullan <aaron.omullan@gmail.com> | 2014-04-04 10:59:13 -0700 |
commit | d475affd3bb1255d82ff810bc8ef5ac8ac2f6f3a (patch) | |
tree | 060f11df6d7ccc24e222d35cf1ce2354f0fd6b02 /lib/parse/navigation.js | |
parent | fe3de93e06d5cc6fd757ee68013e1ec77f708018 (diff) | |
parent | 5cae311edf62e5c86edd9083a8d927730710c2f9 (diff) | |
download | gitbook-d475affd3bb1255d82ff810bc8ef5ac8ac2f6f3a.zip gitbook-d475affd3bb1255d82ff810bc8ef5ac8ac2f6f3a.tar.gz gitbook-d475affd3bb1255d82ff810bc8ef5ac8ac2f6f3a.tar.bz2 |
Merge pull request #25 from GitbookIO/feature/generators
Feature/generators
Diffstat (limited to 'lib/parse/navigation.js')
-rw-r--r-- | lib/parse/navigation.js | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/parse/navigation.js b/lib/parse/navigation.js index 145c873..bba25ce 100644 --- a/lib/parse/navigation.js +++ b/lib/parse/navigation.js @@ -1,15 +1,15 @@ var _ = require('lodash'); // Cleans up an article/chapter object -// remove 'articles' and '_path' attributes +// remove 'articles' attributes function clean(obj) { - return obj && _.omit(obj, ['articles', '_path']); + return obj && _.omit(obj, ['articles']); } // Returns from a summary a map of /* { - "file/path.html": { + "file/path.md": { prev: ..., next: ..., }, @@ -25,7 +25,7 @@ function navigation(summary, files) { // Special README nav var README_NAV = { - path: 'README.html', + path: 'README.md', title: 'Introduction', }; @@ -69,7 +69,7 @@ function navigation(summary, files) { }); // Hack for README.html - mapping['README.html'] = { + mapping['README.md'] = { title: README_NAV.title, prev: null, next: clean(summary.chapters[0]), |