docbrown/netlify.toml
rhymes fb9a407b21 Adds Ruby source code documentation to docs.dev.to (#2656)
* 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
2019-05-02 13:50:58 -04:00

45 lines
1.2 KiB
TOML

# Global settings applied to the whole site.
#
# “publish” is the directory to publish (relative to root of your repo),
# “command” is your build command,
# “base” is directory to change to before starting build. if you set base:
# that is where we will look for package.json/.nvmrc/etc not repo root!
[build]
base = "docs/"
command = "make"
[[redirects]]
from = "http://docs.dev.to"
to = "https://docs.dev.to"
[[redirects]]
from = "http://docs.dev.to/ruby-doc"
to = "https://docs.dev.to/ruby-doc/index.html"
[[redirects]]
from = "http://docs.dev.to/ruby-doc/"
to = "https://docs.dev.to/ruby-doc/index.html"
[[redirects]]
from = "http://docs.dev.to/*"
to = "https://docs.dev.to/:splat"
status = 301
[[redirects]]
from = "docs.dev.to"
to = "https://docs.dev.to"
[[redirects]]
from = "docs.dev.to/*"
to = "https://docs.dev.to/:splat"
status = 301
[[redirects]]
from = "http://devto.netlify.com"
to = "https://docs.dev.to"
[[redirects]]
from = "http://devto.netlify.com/*"
to = "https://docs.dev.to/:splat"
status = 301
[[redirects]]
from = "https://devto.netlify.com"
to = "https://docs.dev.to"
[[redirects]]
from = "https://devto.netlify.com/*"
to = "https://docs.dev.to/:splat"
status = 301