@astrojs/starlight 0.5.1 → 0.5.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 CHANGED
@@ -1,5 +1,11 @@
1
1
  # @astrojs/starlight
2
2
 
3
+ ## 0.5.2
4
+
5
+ ### Patch Changes
6
+
7
+ - [#343](https://github.com/withastro/starlight/pull/343) [`d618678`](https://github.com/withastro/starlight/commit/d618678b1901c621e1c8d2dc1a34ee299582b14e) Thanks [@delucis](https://github.com/delucis)! - Fix escaping of non-relative user config file paths for custom CSS and logos
8
+
3
9
  ## 0.5.1
4
10
 
5
11
  ### Patch Changes
package/index.ts CHANGED
@@ -89,7 +89,7 @@ function vitePluginStarlightUserConfig(
89
89
  { root }: AstroConfig
90
90
  ): NonNullable<ViteUserConfig['plugins']>[number] {
91
91
  const resolveRelativeId = (id: string) =>
92
- id.startsWith('.') ? JSON.stringify(resolve(fileURLToPath(root), id)) : id;
92
+ JSON.stringify(id.startsWith('.') ? resolve(fileURLToPath(root), id) : id);
93
93
  const modules = {
94
94
  'virtual:starlight/user-config': `export default ${JSON.stringify(opts)}`,
95
95
  'virtual:starlight/project-context': `export default ${JSON.stringify({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@astrojs/starlight",
3
- "version": "0.5.1",
3
+ "version": "0.5.2",
4
4
  "description": "Build beautiful, high-performance documentation websites with Astro",
5
5
  "keywords": [
6
6
  "docs",