sktbrt / api-blueprint-preview

API BluePrint Preview Docker

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

概要

Dockerコンテナ上でAPI Blueprintで書かれたドキュメントをaglioで変換してプレビューします。
Dockerコマンドの-vオプションでマウントされたディレクトリをGulpでWatchしていて、リアルタイムで反映します。

使い方

git clone

git clone https://github.com/sktbrt/api-blueprint-preview.git

docker build

docker build -t blueprint-preview .

docker run

docker run -it -p 8000:8000 --rm blueprint-preview

or

docker run -it -v api-docs-path:/workspace/docs -p 8000:8000 --rm blueprint-preview

Preview

http://[ip-or-host]:8000/[file-name.html] Preview

customize

Edit:aglioconfig.json

参照

About

API BluePrint Preview Docker

License:MIT License


Languages

Language:JavaScript 55.2%Language:Shell 36.1%Language:API Blueprint 8.7%