Skip to content

Commit

Permalink
fix: remove removing of md suffix
Browse files Browse the repository at this point in the history
  • Loading branch information
AuHau committed Jan 28, 2022
1 parent b8c64ca commit e451a3d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/docusaurus-plugin-typedoc/src/theme.ts
Expand Up @@ -50,7 +50,7 @@ export class DocusaurusTheme extends MarkdownTheme {
}

getRelativeUrl(url: string) {
const relativeUrl = super.getRelativeUrl(url).replace(/.md/g, '');
const relativeUrl = super.getRelativeUrl(url);
if (path.basename(relativeUrl).startsWith('index')) {
return relativeUrl.replace('index', '');
}
Expand Down

0 comments on commit e451a3d

Please sign in to comment.