Usage Guide¶
Document Hosting の詳細な使用方法を説明します。
ドキュメントの作成¶
新しいページの追加¶
docs/フォルダに新しい Markdown ファイルを作成
mkdocs.ymlのナビゲーションに追加
nav:
- Home: index.md
- Getting Started: getting-started.md
- Usage: usage.md
- New Page: new-page.md # 追加
Markdown の基本¶
見出し¶
リスト¶
コードブロック¶
リンク¶
画像¶
高度な機能¶
アドモニション(警告ボックス)¶
注意
これは注意事項です。
警告
重要な警告メッセージです。
ヒント
便利なヒントです。
コードのハイライト¶
def calculate_sum(a: int, b: int) -> int:
"""2つの数値の合計を計算します。"""
return a + b
result = calculate_sum(5, 3)
print(f"Result: {result}")
テーブル¶
| 機能 | 説明 | ステータス |
|---|---|---|
| ドキュメント作成 | Markdown で記述 | ✅ 利用可能 |
| 検索機能 | 全文検索対応 | ✅ 利用可能 |
| テーマカスタマイズ | Material theme | ✅ 利用可能 |
ビルドとデプロイ¶
ローカルビルド¶
これにより site/ フォルダに静的 HTML ファイルが生成されます。
Cloudflare Pages へのデプロイ¶
詳細は README.md を参照してください。
トラブルシューティング¶
よくある問題¶
Q: ページが表示されない
A: mkdocs.yml の nav セクションにページが追加されているか確認してください。
Q: 画像が表示されない
A: 画像パスが正しいか、docs/ フォルダ内に画像があるか確認してください。
Q: スタイルが適用されない
A: mkdocs serve を再起動してみてください。
さらに学ぶ¶
Configuration¶
The MkDocs configuration is stored in mkdocs.yml. You can customize:
- Site name and description
- Navigation structure
- Theme settings
- Markdown extensions
Deploying to GitHub Pages¶
To deploy the documentation to GitHub Pages, run:
This will build the documentation and push it to the gh-pages branch.
Customizing the Theme¶
The project uses the Material theme. You can customize the theme by modifying the theme section in mkdocs.yml:
See the Material for MkDocs documentation for more customization options.