From bd4e95ba6aff9fbf84fc3dea05624731e04f234d Mon Sep 17 00:00:00 2001 From: Takafumi Arakaki Date: Fri, 25 Jan 2019 23:27:37 -0800 Subject: [PATCH] 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 --- src/plugins/githubpages.jl | 6 +++--- test/plugins/githubpages.jl | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/plugins/githubpages.jl b/src/plugins/githubpages.jl index 92002e1..10a28a9 100644 --- a/src/plugins/githubpages.jl +++ b/src/plugins/githubpages.jl @@ -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 diff --git a/test/plugins/githubpages.jl b/test/plugins/githubpages.jl index ba1104e..6128ba7 100644 --- a/test/plugins/githubpages.jl +++ b/test/plugins/githubpages.jl @@ -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