Merge pull request #75 from invenia/cdg/docs

Use correctly typed array as default assets
This commit is contained in:
Chris de Graaf 2019-05-14 18:37:53 -05:00 committed by GitHub
commit a5199164a8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 3 deletions

View File

@ -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)) &&

View File

@ -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"))

View File

@ -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"))