Recerdo Developer Docs を Netlify に公開するための手順書です。
対象サイト: recerdo-developers-docs (ID: 27ce33ac-e298-4d62-a01b-d10319734e49)
URL: https://recerdo-developers-docs.netlify.app
- https://app.netlify.com/projects/recerdo-developers-docs にアクセス
- 「Deploys」タブを開く
recerdo-site-deploy.zipをドラッグ&ドロップ- デプロイ完了(約30秒)
# Netlify CLIインストール(未インストールの場合)
npm install -g netlify-cli
# ログイン
netlify login
# デプロイ(このディレクトリで実行)
cd recerdo-docs
./deploy.sh <YOUR_NETLIFY_AUTH_TOKEN>Personal Access Token の取得: https://app.netlify.com/user/applications#personal-access-tokens
GitHubにプッシュするたびに自動デプロイされる設定です。
cd recerdo-docs
git init
git add .
git commit -m "Add MkDocs Material documentation site"
git remote add origin https://github.com/Willen-Federation/Recerdo-Developers-Docs.git
git push -u origin main- https://app.netlify.com/projects/recerdo-developers-docs → Site settings → Build & deploy
- 「Link site to Git」をクリック
- GitHub →
Willen-Federation/Recerdo-Developers-Docsを選択 - 以下を設定:
- Build command:
pip install -r requirements.txt && mkdocs build - Publish directory:
site - Python version:
3.11(Environment variables:PYTHON_VERSION=3.11)
- Build command:
# ローカルでビルド
pip install -r requirements.txt
mkdocs build
# ローカルプレビュー(ポート8000)
mkdocs serve