Skip to content

Commit

Permalink
fix: correctly remove dot in sidebar path
Browse files Browse the repository at this point in the history
  • Loading branch information
this-is-tobi committed Dec 14, 2024
1 parent 1adbb96 commit 1430c63
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/prepare.ts
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ export function transformDoc(repositories: EnhancedRepository[], user: ReturnTyp
addSources(repository.html_url, sourceFile)
}

return generateSidebarPages(repository.name, parse(filename).name, acc)
return generateSidebarPages(prettify(repository.name, { removeDot: true }), parse(filename).name, acc)
}, [])

sidebar.push(generateSidebarProject(prettify(repository.name, { removeDot: true }), sidebarItems))
Expand Down

0 comments on commit 1430c63

Please sign in to comment.