diff --git a/docs/make.jl b/docs/make.jl index 7db2593..a4d4b3c 100644 --- a/docs/make.jl +++ b/docs/make.jl @@ -7,7 +7,20 @@ Plots.default(dpi=15) makedocs() -if get(ENV, "TRAVIS", "") == "true" +# https://docs.travis-ci.com/user/environment-variables/#Default-Environment-Variables +if get(ENV, "TRAVIS", "") != "true" + # Don't do anything outside Travis CI +elseif startswith(get(ENV, "TRAVIS_BRANCH", ""), "pre/") + # For branches pre/*, deploy them into gh-pages.pre. + branch = ENV["TRAVIS_BRANCH"] + deploydocs( + deps = Deps.pip("mkdocs", "python-markdown-math"), + repo = "github.com/tkf/Bifurcations.jl.git", + julia = "0.6", + branch = "gh-pages.pre", + latest = branch, + ) +else deploydocs( deps = Deps.pip("mkdocs", "python-markdown-math"), repo = "github.com/tkf/Bifurcations.jl.git",