@astrojs/starlight 0.32.3 → 0.32.5

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,23 @@
1
1
  # @astrojs/starlight
2
2
 
3
+ ## 0.32.5
4
+
5
+ ### Patch Changes
6
+
7
+ - [#3021](https://github.com/withastro/starlight/pull/3021) [`e3f881e`](https://github.com/withastro/starlight/commit/e3f881ec23019689b821c638b8f0863b8ced6908) Thanks [@jsparkdev](https://github.com/jsparkdev)! - Updates Korean language support
8
+
9
+ - [#3020](https://github.com/withastro/starlight/pull/3020) [`58e3e84`](https://github.com/withastro/starlight/commit/58e3e84662167e43c4a8b707453898e047aa18fc) Thanks [@ayoayco](https://github.com/ayoayco)! - Add SourceHut social icon
10
+
11
+ - [#3013](https://github.com/withastro/starlight/pull/3013) [`5b599dd`](https://github.com/withastro/starlight/commit/5b599dd6190d3b57f61ae48c8614395dda23ef13) Thanks [@oluwatobiss](https://github.com/oluwatobiss)! - Adds Substack icon to social links list
12
+
13
+ ## 0.32.4
14
+
15
+ ### Patch Changes
16
+
17
+ - [#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
18
+
19
+ - [#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
20
+
3
21
  ## 0.32.3
4
22
 
5
23
  ### Patch Changes
@@ -104,7 +104,6 @@ export const BuiltInIcons = {
104
104
  '<path d="M2.5 1 1 4.8v15.4h5.5V23h3.1l3-2.8H17l6-5.7V1H2.6ZM21 13.5l-3.4 3.3H12l-3 2.8v-2.8H4.5V3H21v10.5Zm-3.4-6.8v5.8h-2V6.7h2Zm-5.5 0v5.8h-2V6.7h2Z"/>',
105
105
  azureDevOps:
106
106
  '<path d="M17,4v9.74l-4,3.28-6.2-2.26V17L3.29,12.41l10.23.8V4.44Zm-3.41.49L7.85,1V3.29L2.58,4.84,1,6.87v4.61l2.26,1V6.57Z"/>',
107
-
108
107
  microsoftTeams:
109
108
  '<path d="M13.78 7.2a3.63 3.63 0 1 0-4.3-3.68h1.78a2.52 2.52 0 0 1 2.52 2.53V7.2zM7.34 18.8h3.92a2.52 2.52 0 0 0 2.52-2.52V8.37h4.17c.58.01 1.04.5 1.03 1.07v6.45a6.3 6.3 0 0 1-6.14 6.43 6.3 6.3 0 0 1-5.5-3.52zm16.1-14.06a2.51 2.51 0 1 1-5.02 0 2.51 2.51 0 0 1 5.02 0zm-3.36 14.24h-.17c.4-1 .59-2.05.57-3.11V9.46c0-.38-.07-.75-.23-1.09h2.69c.58 0 1.06.48 1.06 1.06v5.65a3.9 3.9 0 0 1-3.9 3.9h-.02z"/><path d="M1.02 5.02h10.24c.56 0 1.02.46 1.02 1.03v10.23a1.02 1.02 0 0 1-1.02 1.02H1.02A1.02 1.02 0 0 1 0 16.28V6.04c0-.56.46-1.02 1.02-1.02zm7.81 3.9V7.84H3.45v1.08h2.03v5.57h1.3V8.92h2.05z"/>',
110
109
  instagram:
@@ -189,6 +188,11 @@ export const BuiltInIcons = {
189
188
  '<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
189
  sketch:
191
190
  '<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"/>',
191
+ 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
+ sourcehut:
193
+ '<path d="M12 20a8 8 0 0 1-8-8 8 8 0 0 1 8-8 8 8 0 0 1 8 8 8 8 0 0 1-8 8m0-18A10 10 0 0 0 2 12a10 10 0 0 0 10 10 10 10 0 0 0 10-10A10 10 0 0 0 12 2"/>',
194
+ substack:
195
+ '<path d="M22.5 8.2h-21V5.4h21v2.8zm-21 2.6V24L12 18.1 22.5 24V10.8h-21zM22.5 0h-21v2.8h21V0z"/>',
192
196
  };
193
197
 
194
198
  export const Icons = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@astrojs/starlight",
3
- "version": "0.32.3",
3
+ "version": "0.32.5",
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.1.5",
183
+ "astro": "^5.5.3",
184
184
  "linkedom": "^0.18.4",
185
185
  "vitest": "^3.0.5"
186
186
  },
@@ -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: pagefindRankingWeightsSchema.optional(),
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,9 @@ export const socialLinks = [
41
41
  'confluence',
42
42
  'jira',
43
43
  'storybook',
44
+ 'npm',
45
+ 'sourcehut',
46
+ 'substack',
44
47
  ] as const;
45
48
 
46
49
  export const SocialLinksSchema = () =>
@@ -97,6 +100,9 @@ export const SocialLinksSchema = () =>
97
100
  confluence: 'Confluence',
98
101
  jira: 'Jira',
99
102
  storybook: 'Storybook',
103
+ npm: 'npm',
104
+ sourcehut: 'SourceHut',
105
+ substack: 'Substack',
100
106
  }[key];
101
107
  labelledLinks[key] = { label, url };
102
108
  }
@@ -3,7 +3,7 @@
3
3
  "search.label": "검색",
4
4
  "search.ctrlKey": "Ctrl",
5
5
  "search.cancelLabel": "취소",
6
- "search.devWarning": "검색 기능은 운영 환경에서만 사용할 수 있습니다. \n로컬에서 테스트하려면 사이트를 빌드하고 미리보기를 해보세요.",
6
+ "search.devWarning": "검색 기능은 프로덕션 환경에서만 사용할 수 있습니다. \n사이트를 빌드하고 미리 보기를 실행하여 로컬에서 테스트하세요.",
7
7
  "themeSelect.accessibleLabel": "테마 선택",
8
8
  "themeSelect.dark": "다크",
9
9
  "themeSelect.light": "라이트",
@@ -13,13 +13,13 @@
13
13
  "sidebarNav.accessibleLabel": "메인",
14
14
  "tableOfContents.onThisPage": "이 페이지에서는",
15
15
  "tableOfContents.overview": "개요",
16
- "i18n.untranslatedContent": "이 내용은 아직 번역본이 없습니다.",
16
+ "i18n.untranslatedContent": "이 콘텐츠는 아직 해당 언어로 제공되지 않습니다.",
17
17
  "page.editLink": "페이지 수정",
18
18
  "page.lastUpdated": "마지막 업데이트:",
19
19
  "page.previousLink": "이전",
20
20
  "page.nextLink": "다음",
21
- "page.draft": "This content is a draft and will not be included in production builds.",
22
- "404.text": "페이지를 찾을 수 없습니다. URL을 확인하거나 검색 막대를 사용해 보세요.",
21
+ "page.draft": " 콘텐츠는 초안이며 프로덕션 빌드에는 포함되지 않습니다.",
22
+ "404.text": "페이지를 찾을 수 없습니다. URL을 확인하거나 검색창을 사용해 보세요.",
23
23
  "aside.note": "노트",
24
24
  "aside.tip": "팁",
25
25
  "aside.caution": "주의",
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
  };