code to generate API documentation

This commit is contained in:
Brad Rydzewski
2015-10-06 10:19:43 -07:00
parent 25d6a8c4bc
commit 2b00d12bb6
7 changed files with 579 additions and 501 deletions

View File

@@ -13,9 +13,19 @@ deps:
go get -u github.com/elazarl/go-bindata-assetfs/...
go get -u github.com/dchest/jsmin
go get -u github.com/franela/goblin
go get -u github.com/go-swagger/go-swagger
gen:
go generate $(PACKAGES)
gen: gen_static gen_template gen_migrations
gen_static:
mkdir -p static/docs_gen/api
go generate github.com/drone/drone/static
gen_template:
go generate github.com/drone/drone/template
gen_migrations:
go generate github.com/drone/drone/shared/database
build:
go build