メインコンテンツまでスキップ
バージョン: 1.0.0

ドキュメントの作成

ドキュメントは次の方法でページのグループを作成できます:

  • サイドバー
  • 前/次のナビゲーション
  • バージョン管理

最初のドキュメントを作成

docs/hello.mdファイルを作成します:

# Hello

This is my **first Docusaurus document**!

http://localhost:3000/docs/helloで新しいドキュメントが利用可能になります。

サイドバーの設定

Docusaurusはdocsフォルダから自動的にサイドバーを作成します。

メタデータを追加することで、サイドバーの順序とラベルをカスタマイズできます:

---
sidebar_label: 'Hi!'
sidebar_position: 3
---

# Hello

This is my **first Docusaurus document**!

sidebars.jsで明示的なサイドバーを作成することもできます:

module.exports = {
tutorialSidebar: [
'intro',
'hello',
{
type: 'category',
label: 'Tutorial',
items: ['tutorial-basics/create-a-document'],
},
],
};