Skip to content

Commit e090a22

Browse files
i18n(ja): create content intellisense page (#13858)
Co-authored-by: Shinya Fujino <shf0811@gmail.com>
1 parent d64835c commit e090a22

1 file changed

Lines changed: 31 additions & 0 deletions

File tree

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
---
2+
title: 実験的なコンテンツコレクション向けIntelliSense
3+
sidebar:
4+
label: コレクション向けIntelliSense
5+
i18nReady: true
6+
---
7+
8+
import Since from '~/components/Since.astro'
9+
10+
<p>
11+
12+
**Type:** `boolean`<br />
13+
**Default:** `false`<br />
14+
<Since v="4.14.0" />
15+
</p>
16+
17+
対応するエディターでコンテンツコレクションのエントリーに対してIntelliSense機能(コード補完やクイックヒントなど)を有効にします。
18+
19+
有効にすると、この機能はJSONスキーマを生成し、プロジェクトの`.astro`ディレクトリに追加します。これらのファイルはAstroランゲージサーバーによって使用され、コンテンツファイル(`.md``.mdx``.mdoc`)内でIntelliSenseを提供します。
20+
21+
```js title="astro.config.mjs"
22+
import { defineConfig } from 'astro/config';
23+
24+
export default defineConfig({
25+
experimental: {
26+
contentIntellisense: true,
27+
},
28+
});
29+
```
30+
31+
Astro VS Code拡張機能でこの機能を使用するには、VS Codeの設定で`astro.content-intellisense`オプションも有効にする必要があります。Astroランゲージサーバーを直接使用するエディターでは、`contentIntellisense: true`初期化パラメーターを渡してこの機能を有効にしてください。

0 commit comments

Comments
 (0)