Skip to content
Permalink
Browse files

fix(docs): Fix source file links

  • Loading branch information...
michaelbromley committed Apr 8, 2019
1 parent 94687c3 commit 97ede1004a6473b0cb3a2147a50ce1882e633c9f
Showing with 2 additions and 1 deletion.
  1. +2 −1 scripts/docs/typescript-docs-renderer.ts
@@ -187,7 +187,8 @@ export class TypescriptDocsRenderer {
}

private renderGenerationInfoShortcode(info: DeclarationInfo): string {
return `{{< generation-info sourceFile="${info.sourceFile}" sourceLine="${info.sourceLine}" packageName="${info.packageName}">}}\n\n`;
const sourceFile = info.sourceFile.replace(/^\.\.\//, '');
return `{{< generation-info sourceFile="${sourceFile}" sourceLine="${info.sourceLine}" packageName="${info.packageName}">}}\n\n`;
}

/**

0 comments on commit 97ede10

Please sign in to comment.
You can’t perform that action at this time.