Skip to content

Commit

Permalink
Fix tldr-pages#717. Update index.json format
Browse files Browse the repository at this point in the history
  • Loading branch information
igorshubovych committed Jan 24, 2016
1 parent a72d5a2 commit 15adee9
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion scripts/build-index.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,10 @@ function buildPagesIndex(shortIndex) {
}

function saveIndex(index) {
console.log(JSON.stringify(index));
var indexFile = {
commands: index
};
console.log(JSON.stringify(indexFile));
}

glob("pages/**/*.md", function (er, files) {
Expand Down

0 comments on commit 15adee9

Please sign in to comment.