LoginSignup
1
2

More than 5 years have passed since last update.

swagger.json を 静的html やPDFに変換するCircleCI 2.0 workflow

Last updated at Posted at 2018-04-06

swagger.json を ドキュメント化して参照したいけどSwagger UIは使わない(運用したくない)。S3などで静的なHTMLサイトとして配信して楽したい。

は circle yml のexample。

CircleCIのビルドパイプライン(workflow)でswagger.json -> asciidoc -> html -> S3 upload の順にビルドする流れ。git push してほったらかすといい感じドキュメントが仕上がる。

htmlではなくPDFなど他のフォーマットで生成するときは asciidoctor の引数を変更すればOKそう。

それぞれ dockerimage が用意されていたので簡単だ。

1
2
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
2