mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-06-06 18:26:00 +02:00
Fix #717. Update index.json format
This commit is contained in:
parent
a72d5a28fc
commit
15adee9228
1 changed files with 4 additions and 1 deletions
|
@ -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…
Add table
Reference in a new issue