Skip to content

設定説明

設定ファイル

VitePressの設定ファイルは.vitepress/config.mtsにあります。

サイト設定

基本設定

ts
export default defineConfig({
  title: "サイトタイトル",
  description: "サイト説明",
  lang: 'ja-JP',
})

テーマ設定

ナビゲーションバー

ts
themeConfig: {
  nav: [
    { text: 'ホーム', link: '/' },
    { text: 'ガイド', link: '/guide/' }
  ]
}

サイドバー

ts
themeConfig: {
  sidebar: [
    {
      text: 'ガイド',
      items: [
        { text: 'クイックスタート', link: '/guide/getting-started' }
      ]
    }
  ]
}

ソーシャルリンク

ts
themeConfig: {
  socialLinks: [
    { icon: 'github', link: 'https://github.com/' }
  ]
}

ページ設定

Markdownファイルの上部にfrontmatterを使用してページを設定:

yaml
---
layout: doc
title: ページタイトル
---

その他の設定

より多くの設定オプションについては、VitePress公式ドキュメントをご覧ください。

AI駆動型開発ワークフローの探求