Skip to content

Commit

Permalink
Merge pull request #467 from carlosingles/bugfix/spaces-in-files
Browse files Browse the repository at this point in the history
fix: spaces in filenames results in broken links
  • Loading branch information
tgreyuk authored Sep 7, 2023
2 parents 2f50b8d + ed59ace commit 5810194
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/typedoc-gitlab-wiki-theme/src/theme.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ export class GitlabWikiTheme extends MarkdownTheme {
}

toUrl(mapping: any, reflection: DeclarationReflection) {
return `${mapping.directory}/${reflection.getFullName()}.md`;
return `${mapping.directory}/${reflection.getFullName().replace(/ /g, '-')}.md`;
}

onGitLabRendererEnd(renderer: RendererEvent) {
Expand Down

0 comments on commit 5810194

Please sign in to comment.