Skip to content

Commit

Permalink
fix: Handle windows back-slash in slug (#245)
Browse files Browse the repository at this point in the history
  • Loading branch information
tgreyuk committed Jul 20, 2021
1 parent bd7669e commit 9178963
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/docusaurus-plugin-typedoc/src/front-matter.ts
Expand Up @@ -53,7 +53,7 @@ export class FrontMatterComponent extends RendererComponent {
if (page.url === this.entryDocument) {
items = {
...items,
slug: '/' + path.relative(process.cwd(), this.out),
slug: '/' + path.relative(process.cwd(), this.out).replace(/\\/g, '/'),
};
}
if (sidebarLabel && sidebarLabel !== pageTitle) {
Expand Down

0 comments on commit 9178963

Please sign in to comment.