@astrojs/starlight 0.32.3 → 0.32.4
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 +8 -0
- package/components/Icons.ts +1 -0
- package/package.json +2 -2
- package/schemas/pagefind.ts +2 -1
- package/schemas/social.ts +2 -0
- package/utils/i18n.ts +0 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# @astrojs/starlight
|
|
2
2
|
|
|
3
|
+
## 0.32.4
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#2994](https://github.com/withastro/starlight/pull/2994) [`ca4ec8b`](https://github.com/withastro/starlight/commit/ca4ec8bc30b8e627bbc946736869ba67a2f4a6c6) Thanks [@XREvo](https://github.com/XREvo)! - Fixes default ranking of merged indexes when using multi-site search
|
|
8
|
+
|
|
9
|
+
- [#2969](https://github.com/withastro/starlight/pull/2969) [`4682c7a`](https://github.com/withastro/starlight/commit/4682c7a4f248f53073a64ada671548709be49cd7) Thanks [@webpro](https://github.com/webpro)! - Add npm social icon
|
|
10
|
+
|
|
3
11
|
## 0.32.3
|
|
4
12
|
|
|
5
13
|
### Patch Changes
|
package/components/Icons.ts
CHANGED
|
@@ -189,6 +189,7 @@ export const BuiltInIcons = {
|
|
|
189
189
|
'<path d="M5.77 8.28A4.44 4.44 0 0 1 8.19.1h7.6a4.44 4.44 0 0 1 2.43 8.17 4.44 4.44 0 0 1-2.42 8.16h-.08a4.42 4.42 0 0 1-3-1.17v4.14a4.5 4.5 0 0 1-4.51 4.48 4.46 4.46 0 0 1-2.44-8.17 4.44 4.44 0 0 1 0-7.44ZM12.7 12a3 3 0 0 0 3 3h.09a3 3 0 1 0 0-6h-.08a3 3 0 0 0-3 3Zm-1.43-3H8.19a3 3 0 0 0-.01 6h3.1V9Zm-3.09 7.44h-.01a3 3 0 1 0 .03 6.01 3.06 3.06 0 0 0 3.07-3.04v-2.97H8.19Zm3.09-8.88V1.55H8.19a3 3 0 1 0 0 6.01h3.09Zm4.52 0a3 3 0 1 0 0-6.01H12.7v6.01h3.09Z"/>',
|
|
190
190
|
sketch:
|
|
191
191
|
'<path d="m.29 8.99 4.8-6.53a.6.6 0 0 1 .42-.24l6.42-.71a.6.6 0 0 1 .14 0l6.42.71a.6.6 0 0 1 .42.24L23.7 9a.6.6 0 0 1-.02.75L12.34 22.86a.45.45 0 0 1-.68 0L.31 9.74a.6.6 0 0 1-.02-.75Zm13.36-5.55a.15.15 0 0 0-.21.2l3.04 3.75a.3.3 0 0 1-.23.49h-8.5a.3.3 0 0 1-.23-.5l3.05-3.74a.15.15 0 0 0-.22-.2L5.8 7.72a.3.3 0 0 1-.5-.24l.21-3.04a.15.15 0 0 0-.3-.05l-.99 3.48a.75.75 0 0 1-.48.5l-2.19.71a.15.15 0 0 0 .05.3h2.1a.75.75 0 0 1 .64.34l5.56 8.74a.23.23 0 0 0 .39-.22L6.3 10.02a.45.45 0 0 1 .4-.64h10.57a.45.45 0 0 1 .4.64l-3.98 8.22a.22.22 0 0 0 .4.22l5.55-8.74a.75.75 0 0 1 .64-.34h2.04a.15.15 0 0 0 .04-.3l-2.12-.7a.75.75 0 0 1-.48-.51l-1-3.48a.15.15 0 0 0-.17-.1.15.15 0 0 0-.12.15l.22 3.04a.3.3 0 0 1-.51.24l-4.54-4.28Z"/>',
|
|
192
|
+
npm: '<path d="M1.76 0h20.48a1.76 1.76 0 0 1 1.76 1.76v20.48a1.76 1.76 0 0 1-1.76 1.76H1.76A1.76 1.76 0 0 1 0 22.24V1.76A1.76 1.76 0 0 1 1.76 0zM5.11 19.16h6.93V8.8h3.47v10.36h3.47V5.34H5.13v13.82z"></path>',
|
|
192
193
|
};
|
|
193
194
|
|
|
194
195
|
export const Icons = {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@astrojs/starlight",
|
|
3
|
-
"version": "0.32.
|
|
3
|
+
"version": "0.32.4",
|
|
4
4
|
"description": "Build beautiful, high-performance documentation websites with Astro",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"docs",
|
|
@@ -180,7 +180,7 @@
|
|
|
180
180
|
"@playwright/test": "^1.45.0",
|
|
181
181
|
"@types/node": "^18.16.19",
|
|
182
182
|
"@vitest/coverage-v8": "^3.0.5",
|
|
183
|
-
"astro": "^5.
|
|
183
|
+
"astro": "^5.5.3",
|
|
184
184
|
"linkedom": "^0.18.4",
|
|
185
185
|
"vitest": "^3.0.5"
|
|
186
186
|
},
|
package/schemas/pagefind.ts
CHANGED
|
@@ -67,7 +67,8 @@ const pagefindIndexOptionsSchema = z.object({
|
|
|
67
67
|
/**
|
|
68
68
|
* Configure how search result rankings are calculated by Pagefind.
|
|
69
69
|
*/
|
|
70
|
-
ranking
|
|
70
|
+
// We apply a default value to merged indexes in order to share the same ranking for them and the current site when not set explicitly.
|
|
71
|
+
ranking: pagefindRankingWeightsSchema.default({}),
|
|
71
72
|
});
|
|
72
73
|
|
|
73
74
|
const pagefindSchema = z.object({
|
package/schemas/social.ts
CHANGED
|
@@ -41,6 +41,7 @@ export const socialLinks = [
|
|
|
41
41
|
'confluence',
|
|
42
42
|
'jira',
|
|
43
43
|
'storybook',
|
|
44
|
+
'npm',
|
|
44
45
|
] as const;
|
|
45
46
|
|
|
46
47
|
export const SocialLinksSchema = () =>
|
|
@@ -97,6 +98,7 @@ export const SocialLinksSchema = () =>
|
|
|
97
98
|
confluence: 'Confluence',
|
|
98
99
|
jira: 'Jira',
|
|
99
100
|
storybook: 'Storybook',
|
|
101
|
+
npm: 'npm',
|
|
100
102
|
}[key];
|
|
101
103
|
labelledLinks[key] = { label, url };
|
|
102
104
|
}
|
package/utils/i18n.ts
CHANGED
|
@@ -70,8 +70,6 @@ function getAstroI18nConfig(config: StarlightConfig): NonNullable<AstroConfig['i
|
|
|
70
70
|
// Sites with a single non-root language different from the built-in default locale.
|
|
71
71
|
(!config.isMultilingual && config.locales !== undefined),
|
|
72
72
|
redirectToDefaultLocale: false,
|
|
73
|
-
// TODO: remove this ignore comment for Astro v5
|
|
74
|
-
// @ts-ignore — Only used in Astro >=4.15.0, but Starlight supports ^4.8.6
|
|
75
73
|
fallbackType: 'redirect',
|
|
76
74
|
},
|
|
77
75
|
};
|