このリポジトリは、Prometheusドキュメントの和訳で、コンテンツと静的なサイトを生成するコードの両方が含まれている。
新しくこのリポジトリに貢献したい場合の一般的な手順についてはCONTRIBUTING.md
を参照すること。
content/docs
に主なドキュメントの内容が置かれている。
Prometheusサーバーに関するドキュメントの和訳は、別のリポジトリで管理されている。
ガイドラインとして、このドキュメントを一般的に適用できるように保ち、ユースケースに特有の変更は避けること。
bundlerを含むRuby環境を準備した上で、以下のコマンドで必要なgemをインストールする。
cd prometheus_docs_ja
make bundle
静的なサイトを生成するために以下のコマンドを実行する。
make build
生成された静的なサイトはoutput
ディレクトリに保存される。
APIのレート制限を避けるためにAPIトークンを利用することも出来る。APIトークンは https://github.com/settings/tokens/new から取得できる。
export GITHUB_AUTHENTICATION='-u user:token'
生成されたサイトをローカルのサーバーで表示するには、以下のコマンドを実行する。
# 関連ファイルが変更されたらサイトがリビルドされるようにする
make guard
# 別のシェルでローカル開発サーバーを起動する
make serve
これで生成されたサイトがhttp://localhost:3000/docs/introduction/overview/で閲覧できるはずである。
This site is automatically deployed using Netlify.
If you have the prerequisite access rights, you can view the Netlify settings here:
- GitHub webhook notifying Netlify of branch changes: https://github.com/prometheus/docs/settings/hooks
- Netlify project: https://app.netlify.com/sites/prometheus-docs
Changes to the master
branch are deployed to the main site at https://prometheus.io.
Netlify also creates preview deploys for every pull request. To view these for a PR where all checks have passed:
- In the CI section of the PR, click on "Show all checks".
- On the "deploy/netlify" entry, click on "Details" to view the preview site for the PR.
You may have to wait a while for the "deploy/netlify" check to appear after creating or updating the PR, even if the other checks have already passed.
Apache License 2.0, see LICENSE.