|
@@ -18,12 +18,14 @@ export class MarkdownCreator {
|
18
|
18
|
|
19
|
19
|
private readMethods(reflection: Typedoc.DeclarationReflection) {
|
20
|
20
|
const methodReflections = reflection.getChildrenByKind(Typedoc.ReflectionKind.Method);
|
|
21
|
+
|
21
|
22
|
methodReflections.sort((a, b) => a.sources[0].line - b.sources[0].line);
|
|
23
|
+
|
22
|
24
|
return methodReflections.map((methodReflection) => ({
|
23
|
25
|
name: methodReflection.name,
|
24
|
26
|
arguments: this.readArguments(methodReflection.signatures[0].parameters || []),
|
25
|
27
|
returnType: methodReflection.signatures[0].type.toString(),
|
26
|
|
- source: `${methodReflection.sources[0].fileName}#${methodReflection.sources[0].line}`,
|
|
28
|
+ source: `/docs/api/${methodReflection.sources[0].fileName}#${methodReflection.sources[0].line}`,
|
27
|
29
|
comment: methodReflection.signatures[0].comment ? methodReflection.signatures[0].comment.shortText : ''
|
28
|
30
|
}));
|
29
|
31
|
}
|