Merge pull request #75 from invenia/cdg/docs
Use correctly typed array as default assets
This commit is contained in:
commit
a5199164a8
@ -53,7 +53,7 @@ function gen_plugin(p::Documenter, t::Template, pkg_name::AbstractString)
|
||||
|
||||
s
|
||||
else
|
||||
"[]"
|
||||
"String[]"
|
||||
end
|
||||
|
||||
kwargs_string = if :additional_kwargs in fieldnames(typeof(p)) &&
|
||||
|
@ -25,7 +25,7 @@ pkg_dir = joinpath(t.dir, test_pkg)
|
||||
@test isdir(joinpath(pkg_dir, "docs"))
|
||||
@test isfile(joinpath(pkg_dir, "docs", "make.jl"))
|
||||
make = readchomp(joinpath(pkg_dir, "docs", "make.jl"))
|
||||
@test occursin("assets=[]", make)
|
||||
@test occursin("assets=String[]", make)
|
||||
@test !occursin("deploydocs", make)
|
||||
@test isdir(joinpath(pkg_dir, "docs", "src"))
|
||||
@test isfile(joinpath(pkg_dir, "docs", "src", "index.md"))
|
||||
|
@ -24,7 +24,7 @@ pkg_dir = joinpath(t.dir, test_pkg)
|
||||
@test isdir(joinpath(pkg_dir, "docs"))
|
||||
@test isfile(joinpath(pkg_dir, "docs", "make.jl"))
|
||||
make = readchomp(joinpath(pkg_dir, "docs", "make.jl"))
|
||||
@test occursin("assets=[]", make)
|
||||
@test occursin("assets=String[]", make)
|
||||
@test !occursin("deploydocs", make)
|
||||
@test isdir(joinpath(pkg_dir, "docs", "src"))
|
||||
@test isfile(joinpath(pkg_dir, "docs", "src", "index.md"))
|
||||
|
Loading…
Reference in New Issue
Block a user