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-3.0+" => "Lesser GNU Public License, Version 3.0+"
|
||||
)
|
||||
const BADGE_ORDER = [GitHubPages, TravisCI, AppVeyor, CodeCov]
|
||||
|
||||
end
|
||||
|
@ -95,9 +95,7 @@ Returns an array of generated file/directory names.
|
||||
"""
|
||||
function gen_readme(pkg_name::AbstractString, template::Template)
|
||||
text = "# $pkg_name\n"
|
||||
# We want badges to be laid out: docs -> CI -> coverage.
|
||||
ordering = [GitHubPages, TravisCI, AppVeyor, CodeCov]
|
||||
for plugin_type in ordering
|
||||
for plugin_type in BADGE_ORDER
|
||||
if haskey(template.plugins, plugin_type)
|
||||
text *= "\n"
|
||||
text *= join(
|
||||
|
Loading…
Reference in New Issue
Block a user