Skip to content

Commit

Permalink
fix(vitepress): normalize sidebar paths in windows (#643)
Browse files Browse the repository at this point in the history
  • Loading branch information
tgreyuk committed Jul 2, 2024
1 parent 6fcd1e2 commit 6c8df6c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/mighty-seals-camp.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'typedoc-vitepress-theme': patch
---

- Normalize sidebar paths in windows (#643)
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ function getNavigationItem(
return {
text: navigationItem.title,
...(Boolean(navigationItem?.path) && {
link: `/${basePath}/${getParsedUrl(navigationItem.path as string)}`,
link: `/${basePath}/${getParsedUrl(navigationItem.path as string).replace(/\\/g, '/')}`,
}),
...(hasChildren && { collapsed: options.collapsed }),
...(hasChildren && {
Expand Down

0 comments on commit 6c8df6c

Please sign in to comment.