diff options
Diffstat (limited to 'scripts/apidoc/directMethods.ts')
| -rw-r--r-- | scripts/apidoc/directMethods.ts | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/scripts/apidoc/directMethods.ts b/scripts/apidoc/directMethods.ts index 159ad848..fbdd094e 100644 --- a/scripts/apidoc/directMethods.ts +++ b/scripts/apidoc/directMethods.ts @@ -37,21 +37,21 @@ export function processDirectMethod( direct: TypeDoc.DeclarationReflection ): Page { const methodName = direct.name; - const upperMethodName = + const capitalizedMethodName = methodName.substring(0, 1).toUpperCase() + methodName.substring(1); - console.log(`Processing Direct: ${upperMethodName}`); + console.log(`Processing Direct: ${capitalizedMethodName}`); const signatures = (direct.type as TypeDoc.ReflectionType).declaration .signatures; const signature = signatures[signatures.length - 1]; - writeApiDocsDirectPage(methodName); + writeApiDocsDirectPage(methodName, capitalizedMethodName); writeApiDocsData(methodName, [ analyzeSignature(signature, undefined, methodName), ]); return { - text: upperMethodName, + text: capitalizedMethodName, link: `/api/${methodName}.html`, }; } |
