mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-14 02:23:31 +01:00
start work on documentation generator
This commit is contained in:
8
docs/custom/getting_started.js
Normal file
8
docs/custom/getting_started.js
Normal file
@@ -0,0 +1,8 @@
|
||||
module.exports = {
|
||||
category: 'General',
|
||||
name: 'Getting Started',
|
||||
data:
|
||||
`# Welcome!
|
||||
discord.js is an easy-to-use and intuitive JavaScript library that wraps around the Discord API.
|
||||
`,
|
||||
};
|
||||
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