From e5d1f1d8d9908bfdb1edf10972dc3aaeb373a1e4 Mon Sep 17 00:00:00 2001 From: Shinya Fujino Date: Mon, 4 Nov 2024 19:16:59 +0900 Subject: i18n(ja): Update overrides.md (#2567) Co-authored-by: HiDeoo <494699+HiDeoo@users.noreply.github.com> --- docs/src/content/docs/ja/reference/overrides.md | 28 ++++++++++++++++++------- 1 file changed, 20 insertions(+), 8 deletions(-) diff --git a/docs/src/content/docs/ja/reference/overrides.md b/docs/src/content/docs/ja/reference/overrides.md index 17399998..39cd6a54 100644 --- a/docs/src/content/docs/ja/reference/overrides.md +++ b/docs/src/content/docs/ja/reference/overrides.md @@ -49,6 +49,18 @@ Starlightは、以下のpropsをカスタムコンポーネントに渡します 言語が配信されるベースパス。ルートロケールスラグの場合は`undefined`となります。 +#### `siteTitle` + +**Type:** `string` + +このページのロケールのサイトタイトル。 + +#### `siteTitleHref` + +**Type:** `string` + +サイトタイトルの`href`属性の値。たとえば`/`など、ホームページへのリンクとなります。多言語サイトの場合、たとえば`/en/`や`/zh-cn/`など、現在のロケールが含まれます。 + #### `slug` **Type:** `string` @@ -87,7 +99,7 @@ entry: { } ``` -このオブジェクトの構造については、[Astroのコレクションエントリー型](https://docs.astro.build/ja/reference/api-reference/#collection-entry-type)リファレンスを参照してください。 +このオブジェクトの構造については、[Astroのコレクションエントリー型](https://docs.astro.build/ja/reference/modules/astro-content/#collectionentry)リファレンスを参照してください。 #### `sidebar` @@ -131,12 +143,6 @@ entry: { ページの編集設定が有効な場合、このページを編集可能なアドレスの`URL`オブジェクト。 -#### `labels` - -**Type:** `Record` - -現在のページのローカライズされたUI文字列を含んだオブジェクト。利用可能なすべてのキーの一覧については、[「StarlightのUIを翻訳する」](/ja/guides/i18n/#starlightのuiを翻訳する)ガイドを参照してください。 - --- ## コンポーネント @@ -203,7 +209,7 @@ entry: { **デフォルトコンポーネント:** [`Header.astro`](https://github.com/withastro/starlight/blob/main/packages/starlight/components/Header.astro) -すべてのページの上部に表示されるヘッダーコンポーネント。デフォルトの実装では、[``](#sitetitle)、[``](#search)、[``](#socialicons)、[``](#themeselect)、[``](#languageselect)を表示します。 +すべてのページの上部に表示されるヘッダーコンポーネント。デフォルトの実装では、[``](#sitetitle-1)、[``](#search)、[``](#socialicons)、[``](#themeselect)、[``](#languageselect)を表示します。 #### `SiteTitle` @@ -305,6 +311,12 @@ Starlightのページサイドバーは、現在のページの見出しを列 デフォルトの実装と同様に、`

`要素に`id="_top"`を設定する必要があります。 +#### `DraftContentNotice` + +**デフォルトコンポーネント:** [`DraftContentNotice.astro`](https://github.com/withastro/starlight/blob/main/packages/starlight/components/DraftContentNotice.astro) + +現在のページがドラフトとしてマークされている場合、開発中にユーザーに表示される通知。 + #### `FallbackContentNotice` **デフォルトコンポーネント:** [`FallbackContentNotice.astro`](https://github.com/withastro/starlight/blob/main/packages/starlight/components/FallbackContentNotice.astro) -- cgit