summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJunseong Park2024-12-14 20:26:31 +0900
committerGitHub2024-12-14 12:26:31 +0100
commitb6376b7433a6591d8ad5da648ffc323b878708cf (patch)
treecd825fee3f0f6977c2ebe43527003b55c4cedce9
parente92421296ab7a1ba75cc34e774111d2582334082 (diff)
downloadIT.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.mdx11
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() }),
}),
};