mirror of
https://github.com/danbulant/discord.js
synced 2026-06-20 07:02:00 +00:00
Set up new-new custom docs mechanism
This commit is contained in:
parent
c3d14636ab
commit
338aa58386
3 changed files with 18 additions and 2 deletions
16
docs/index.yml
Normal file
16
docs/index.yml
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
- name: General
|
||||
files:
|
||||
- name: Welcome
|
||||
path: welcome.md
|
||||
- name: Updating your code
|
||||
path: updating.md
|
||||
- name: FAQ
|
||||
path: faq.md
|
||||
- name: Examples
|
||||
files:
|
||||
- name: Ping
|
||||
path: ping.js
|
||||
- name: Avatars
|
||||
path: avatars.js
|
||||
- name: Webhook
|
||||
path: webhook.js
|
||||
|
|
@ -4,8 +4,8 @@
|
|||
"description": "A powerful library for interacting with the Discord API",
|
||||
"main": "./src/index",
|
||||
"scripts": {
|
||||
"test": "eslint src && docgen --source src --custom docs",
|
||||
"docs": "docgen --source src --custom docs --output docs/docs.json",
|
||||
"test": "eslint src && docgen --source src --custom docs/index.yml",
|
||||
"docs": "docgen --source src --custom docs/index.yml --output docs/docs.json",
|
||||
"test-docs": "docgen --source src --custom docs",
|
||||
"lint": "eslint src",
|
||||
"web-dist": "node ./node_modules/parallel-webpack/bin/run.js"
|
||||
|
|
|
|||
Loading…
Reference in a new issue