mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-16 11:33:30 +01:00
start work on documentation generator
This commit is contained in:
14
docs/custom/index.js
Normal file
14
docs/custom/index.js
Normal file
@@ -0,0 +1,14 @@
|
||||
const files = [
|
||||
require('./getting_started'),
|
||||
];
|
||||
|
||||
const categories = {};
|
||||
for (const file of files) {
|
||||
file.category = file.category.toLowerCase();
|
||||
if (!categories[file.category]) {
|
||||
categories[file.category] = {};
|
||||
}
|
||||
categories[file.category][file.name] = file.data;
|
||||
}
|
||||
|
||||
module.exports = categories;
|
||||
Reference in New Issue
Block a user