Update docs 4
This commit is contained in:
parent
08e1ea25c3
commit
a2be042be9
4
index.js
4
index.js
@ -353,7 +353,7 @@ if (!args || args.help) {
|
||||
doc += "| N | Field name | Field type |\n| --- | --- | --- |\n";
|
||||
for (let i = 1; i <= fields.length; i++) {
|
||||
if (fields[i]) {
|
||||
doc += `| ${i} | ${fields[i].name} | ${(types.test(fields[i].type) ? fields[i].type : '['+fields[i].type+'](#'+fields[i].type+')')} |\n`;
|
||||
doc += `| ${i} | ${fields[i].name} | ${(types.test(fields[i].type) ? fields[i].type : '['+fields[i].type+'](#'+fields[i].type.toLowerCase()+')')} |\n`;
|
||||
}
|
||||
}
|
||||
} else {
|
||||
@ -363,7 +363,7 @@ if (!args || args.help) {
|
||||
} else if (item.methods) {
|
||||
const methods = item.methods;
|
||||
for (const [key, method] of Object.entries(methods)) {
|
||||
doc += `* ${key}([${method.responseType}](#${method.responseType}) return [${method.requestType}](#${method.requestType})\n`;
|
||||
doc += `* ${key}([${method.responseType}](#${method.responseType.toLowerCase()}) return [${method.requestType}](#${method.requestType.toLowerCase()})\n`;
|
||||
}
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user