starlight-versions 0.5.2 → 0.5.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # starlight-versions
2
2
 
3
+ ## 0.5.3
4
+
5
+ ### Patch Changes
6
+
7
+ - [#29](https://github.com/HiDeoo/starlight-versions/pull/29) [`3cc3e30`](https://github.com/HiDeoo/starlight-versions/commit/3cc3e30d6b778c7615cee9c2fcb01f6225b6cb84) Thanks [@HiDeoo](https://github.com/HiDeoo)! - Fixes an issue with versioned sidebars including a link to the homepage.
8
+
3
9
  ## 0.5.2
4
10
 
5
11
  ### Patch Changes
package/libs/starlight.ts CHANGED
@@ -76,6 +76,7 @@ export function addPrefixToSidebarConfig(
76
76
  }
77
77
 
78
78
  function addPrefixToSlug(prefix: string, slug: string) {
79
+ if (slug === '' || slug === 'index') return prefix
79
80
  return `${prefix}/${slug}`
80
81
  }
81
82
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "starlight-versions",
3
- "version": "0.5.2",
3
+ "version": "0.5.3",
4
4
  "license": "MIT",
5
5
  "description": "Starlight plugin to version documentation pages.",
6
6
  "author": "HiDeoo <github@hideoo.dev> (https://hideoo.dev)",