diff options
author | Junseong Park | 2024-12-14 20:26:31 +0900 |
---|---|---|
committer | GitHub | 2024-12-14 12:26:31 +0100 |
commit | b6376b7433a6591d8ad5da648ffc323b878708cf (patch) | |
tree | cd825fee3f0f6977c2ebe43527003b55c4cedce9 | |
parent | e92421296ab7a1ba75cc34e774111d2582334082 (diff) | |
download | IT.starlight-b6376b7433a6591d8ad5da648ffc323b878708cf.tar.gz IT.starlight-b6376b7433a6591d8ad5da648ffc323b878708cf.tar.bz2 IT.starlight-b6376b7433a6591d8ad5da648ffc323b878708cf.zip |
i18n(ko-KR): update `site-search.mdx` (#2679)
Co-authored-by: HiDeoo <494699+HiDeoo@users.noreply.github.com>
-rw-r--r-- | docs/src/content/docs/ko/guides/site-search.mdx | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/docs/src/content/docs/ko/guides/site-search.mdx b/docs/src/content/docs/ko/guides/site-search.mdx index 42f3986f..c6b1155c 100644 --- a/docs/src/content/docs/ko/guides/site-search.mdx +++ b/docs/src/content/docs/ko/guides/site-search.mdx @@ -124,18 +124,19 @@ Starlight์ ๋ด์ฅ๋ [๊ตญ์ ํ ์์คํ
](/ko/guides/i18n/#starlight-ui-๋ฒ์ <Steps> -1. `src/content/config.ts` ํ์ผ์ DocSearch ์คํค๋ง๋ฅผ ์ฌ์ฉํ์ฌ Starlight์ `i18n` ์ฝํ
์ธ ์ปฌ๋ ์
์ ์๋ฅผ ํ์ฅํฉ๋๋ค. +1. `src/content.config.ts` ํ์ผ์ DocSearch ์คํค๋ง๋ฅผ ์ฌ์ฉํ์ฌ Starlight์ `i18n` ์ฝํ
์ธ ์ปฌ๋ ์
์ ์๋ฅผ ํ์ฅํฉ๋๋ค. - ```js ins={4} ins=/{ extend: .+ }/ - // src/content/config.ts + ```js ins={5} ins=/{ extend: .+ }/ + // src/content.config.ts import { defineCollection } from 'astro:content'; + import { docsLoader, i18nLoader } from '@astrojs/starlight/loaders'; import { docsSchema, i18nSchema } from '@astrojs/starlight/schema'; import { docSearchI18nSchema } from '@astrojs/starlight-docsearch/schema'; export const collections = { - docs: defineCollection({ schema: docsSchema() }), + docs: defineCollection({ loader: docsLoader(), schema: docsSchema() }), i18n: defineCollection({ - type: 'data', + loader: i18nLoader(), schema: i18nSchema({ extend: docSearchI18nSchema() }), }), }; |