mirror of https://github.com/CrimsonTome/tldr.git
Fix #717. Update index.json format
parent
a72d5a28fc
commit
15adee9228
|
@ -37,7 +37,10 @@ function buildPagesIndex(shortIndex) {
|
||||||
}
|
}
|
||||||
|
|
||||||
function saveIndex(index) {
|
function saveIndex(index) {
|
||||||
console.log(JSON.stringify(index));
|
var indexFile = {
|
||||||
|
commands: index
|
||||||
|
};
|
||||||
|
console.log(JSON.stringify(indexFile));
|
||||||
}
|
}
|
||||||
|
|
||||||
glob("pages/**/*.md", function (er, files) {
|
glob("pages/**/*.md", function (er, files) {
|
||||||
|
|
Loading…
Reference in New Issue