Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion docs/src/content/docs/ko/guides/i18n.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,8 @@ Starlight를 사용하면 번역된 콘텐츠 파일을 호스팅하는 것 외

```diff lang="js"
// src/content.config.ts
import { defineCollection, z } from 'astro:content';
import { defineCollection } from 'astro:content';
import { z } from 'astro/zod';
import { docsLoader, i18nLoader } from '@astrojs/starlight/loaders';
import { docsSchema, i18nSchema } from '@astrojs/starlight/schema';

Expand Down
2 changes: 1 addition & 1 deletion docs/src/content/docs/ko/guides/sidebar.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ starlight({

Starlight는 문서 디렉터리를 기반해서 자동으로 사이드바에 그룹을 생성할 수 있습니다. 이는 그룹의 각 사이드바 항목을 수동으로 입력하고 싶지 않을 때 유용합니다.

기본적으로 페이지는 파일 [`slug`](/ko/reference/route-data/#slug)에 따라 알파벳순으로 정렬됩니다.
기본적으로 페이지는 파일 [`id`](/ko/reference/route-data/#id)에 따라 알파벳순으로 정렬됩니다.

`label` 및 `autogenerate` 속성이 있는 객체를 사용하여 자동 생성 그룹을 추가합니다. `autogenerate` 구성은 사이드바 항목에 사용할 디렉터리를 지정해야 합니다. 예를 들어, 다음 구성을 사용할 수 있습니다.

Expand Down
10 changes: 6 additions & 4 deletions docs/src/content/docs/ko/reference/frontmatter.md
Original file line number Diff line number Diff line change
Expand Up @@ -423,9 +423,10 @@ Astro 공식문서의 ["컬렉션 스키마 정의"](https://docs.astro.build/ko

다음 예시에서는 `description` 필드에 더 엄격한 타입을 제공하여 필수 항목으로 만들고, 새로운 선택적 필드인 `category`를 추가합니다.

```ts {10-15}
```ts {11-16}
// src/content.config.ts
import { defineCollection, z } from 'astro:content';
import { defineCollection } from 'astro:content';
import { z } from 'astro/zod';
import { docsLoader } from '@astrojs/starlight/loaders';
import { docsSchema } from '@astrojs/starlight/schema';

Expand All @@ -446,9 +447,10 @@ export const collections = {

[Astro `image()` 도우미](https://docs.astro.build/ko/guides/images/#콘텐츠-컬렉션의-이미지)를 활용하려면 스키마 확장을 반환하는 함수를 사용하세요.

```ts {10-15}
```ts {11-16}
// src/content.config.ts
import { defineCollection, z } from 'astro:content';
import { defineCollection } from 'astro:content';
import { z } from 'astro/zod';
import { docsLoader } from '@astrojs/starlight/loaders';
import { docsSchema } from '@astrojs/starlight/schema';

Expand Down
Loading