* Add YARD and plugins to generate source code doc * Expose yard Ruby doc in gitdocs * Add yard doc step to Travis * Tell netlify to build the docs before deploying * Add Gemfile for Ruby prerequisites and Makefile * Makefile uses tabs, not spaces * Build ruby-doc and then gitdocs * Add recent Ruby version to make sure yard plugins work * Switch Ruby to a pre-built version inside Netlify * Add ActiveRecord for the yard-activerecord plugin * Add Ruby doc header link and info to build it locally
10 lines
232 B
Makefile
10 lines
232 B
Makefile
.PHONY: build
|
|
|
|
build: ruby-doc gitdocs
|
|
|
|
ruby-doc:
|
|
# docs/.static/ruby-doc will let gitdocs serve the Ruby doc as static content
|
|
cd .. && yard doc -o docs/.static/ruby-doc
|
|
|
|
gitdocs:
|
|
npm install -g gitdocs@latest && gitdocs build
|