Redirect to new documentation (#1826)

* Prepare the redirection of this website

* add :slug and versions

* change :slug to :splat

* force redirect and add root redirect

* redirect to contracts
This commit is contained in:
Leo Arias
2019-07-22 15:13:17 -06:00
committed by Francisco Giordano
parent 7cafa2f78d
commit ed69b0b470

View File

@ -1,3 +1,15 @@
[build]
command = "npm run docsite build"
publish = "docsite-build"
[[redirects]]
from = "/"
to = "https://docs.openzeppelin.com/contracts"
status = 301
force = true
[[redirects]]
from = "/v2.3.0/*"
to = "https://docs.openzeppelin.com/contracts/v2.x/:splat"
status = 301
force = true