Skip to content

Commit 4c45af7

Browse files
committed
chore: fix overrides
1 parent d1c9bde commit 4c45af7

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

.changeset/wicked-singers-shout.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@openscript-ch/starlight-theme': patch
3+
---
4+
5+
Fix overrides

packages/starlight-theme-openscript/libs/starlight.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,15 +9,15 @@ export function overrideComponents(
99
const components = { ...starlightConfig.components }
1010
for (const override of overrides) {
1111
if (starlightConfig.components?.[override]) {
12-
const fallback = `starlight-theme-openscript/overrides/${override}.astro`
12+
const fallback = `@openscript-ch/starlight-theme/overrides/${override}.astro`
1313

1414
logger.warn(`A \`<${override}>\` component override is already defined in your Starlight configuration.`)
1515
logger.warn(
16-
`To use \`starlight-theme-openscript\`, either remove this override or manually render the content from \`${fallback}\`.`,
16+
`To use \`@openscript-ch/starlight-theme\`, either remove this override or manually render the content from \`${fallback}\`.`,
1717
)
1818
continue
1919
}
20-
components[override] = `starlight-theme-openscript/overrides/${override}.astro`
20+
components[override] = `@openscript-ch/starlight-theme/overrides/${override}.astro`
2121
}
2222

2323
return components

0 commit comments

Comments
 (0)