Move badge ordering into main module file
This commit is contained in:
parent
c00001312c
commit
188bfb9390
@ -30,5 +30,6 @@ const LICENSES = Dict(
|
|||||||
"LGPL-2.1+" => "Lesser GNU Public License, Version 2.1+",
|
"LGPL-2.1+" => "Lesser GNU Public License, Version 2.1+",
|
||||||
"LGPL-3.0+" => "Lesser GNU Public License, Version 3.0+"
|
"LGPL-3.0+" => "Lesser GNU Public License, Version 3.0+"
|
||||||
)
|
)
|
||||||
|
const BADGE_ORDER = [GitHubPages, TravisCI, AppVeyor, CodeCov]
|
||||||
|
|
||||||
end
|
end
|
||||||
|
@ -95,9 +95,7 @@ Returns an array of generated file/directory names.
|
|||||||
"""
|
"""
|
||||||
function gen_readme(pkg_name::AbstractString, template::Template)
|
function gen_readme(pkg_name::AbstractString, template::Template)
|
||||||
text = "# $pkg_name\n"
|
text = "# $pkg_name\n"
|
||||||
# We want badges to be laid out: docs -> CI -> coverage.
|
for plugin_type in BADGE_ORDER
|
||||||
ordering = [GitHubPages, TravisCI, AppVeyor, CodeCov]
|
|
||||||
for plugin_type in ordering
|
|
||||||
if haskey(template.plugins, plugin_type)
|
if haskey(template.plugins, plugin_type)
|
||||||
text *= "\n"
|
text *= "\n"
|
||||||
text *= join(
|
text *= join(
|
||||||
|
Loading…
Reference in New Issue
Block a user