starlight-versions 0.8.1 → 0.8.2
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 +6 -0
- package/libs/starlight.ts +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# starlight-versions
|
|
2
2
|
|
|
3
|
+
## 0.8.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#64](https://github.com/HiDeoo/starlight-versions/pull/64) [`5e26275`](https://github.com/HiDeoo/starlight-versions/commit/5e262755d6b8f61ba4c17f59f32ff0fa0ff87938) Thanks [@Hexalyse](https://github.com/Hexalyse)! - Fixes a Windows-only issue where archived docs could generate incorrect routes.
|
|
8
|
+
|
|
3
9
|
## 0.8.1
|
|
4
10
|
|
|
5
11
|
### Patch Changes
|
package/libs/starlight.ts
CHANGED
|
@@ -18,7 +18,7 @@ export function getFrontmatterNodeValue(frontmatter: StarlightFrontmatter) {
|
|
|
18
18
|
}
|
|
19
19
|
|
|
20
20
|
export function getDocSlug(docsDir: URL, doc: URL) {
|
|
21
|
-
const docPath = path.relative(url.fileURLToPath(docsDir), url.fileURLToPath(doc))
|
|
21
|
+
const docPath = path.relative(url.fileURLToPath(docsDir), url.fileURLToPath(doc)).replaceAll('\\', '/')
|
|
22
22
|
const slug = slugifyPath(docPath)
|
|
23
23
|
|
|
24
24
|
return slug === 'index' ? '/' : slug.replace(/\/index$/, '')
|