Use "dev" instead of "latest" to link GitHub pages

It seems Documenter.jl changed the setting:
https://juliadocs.github.io/Documenter.jl/v0.21/lib/public/#Documenter.deploydocs
This commit is contained in:
Takafumi Arakaki 2019-01-25 23:27:37 -08:00
parent 27fe02ac82
commit bd4e95ba6a
2 changed files with 4 additions and 4 deletions

View File

@ -36,9 +36,9 @@ function badges(::GitHubPages, user::AbstractString, pkg_name::AbstractString)
"https://$user.github.io/$pkg_name.jl/stable"
)),
format(Badge(
"Latest",
"https://img.shields.io/badge/docs-latest-blue.svg",
"https://$user.github.io/$pkg_name.jl/latest"
"Dev",
"https://img.shields.io/badge/docs-dev-blue.svg",
"https://$user.github.io/$pkg_name.jl/dev"
)),
]
end

View File

@ -15,7 +15,7 @@ pkg_dir = joinpath(t.dir, test_pkg)
p = GitHubPages()
@test badges(p, me, test_pkg) == [
"[![Stable](https://img.shields.io/badge/docs-stable-blue.svg)](https://$me.github.io/$test_pkg.jl/stable)"
"[![Latest](https://img.shields.io/badge/docs-latest-blue.svg)](https://$me.github.io/$test_pkg.jl/latest)"
"[![Dev](https://img.shields.io/badge/docs-dev-blue.svg)](https://$me.github.io/$test_pkg.jl/dev)"
]
end