Add custom file support to new docs

This commit is contained in:
Amish Shah
2016-08-22 17:03:36 +01:00
parent 601987ed01
commit be7ed4077a
5 changed files with 9 additions and 6 deletions

View File

@@ -6,9 +6,9 @@ const categories = {};
for (const file of files) {
file.category = file.category.toLowerCase();
if (!categories[file.category]) {
categories[file.category] = {};
categories[file.category] = [];
}
categories[file.category][file.name] = file.data;
categories[file.category].push(file);
}
module.exports = categories;