From 310f621c3ad8e1fa6fe7071a2ae196bbf823e3d3 Mon Sep 17 00:00:00 2001 From: Chris de Graaf Date: Tue, 14 May 2019 15:11:20 -0500 Subject: [PATCH] Use correctly typed array as default assets This is just a bandaid. --- src/plugins/documenter.jl | 2 +- test/plugins/githubpages.jl | 2 +- test/plugins/gitlabpages.jl | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/plugins/documenter.jl b/src/plugins/documenter.jl index 1717a5e..c8b3195 100644 --- a/src/plugins/documenter.jl +++ b/src/plugins/documenter.jl @@ -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)) && diff --git a/test/plugins/githubpages.jl b/test/plugins/githubpages.jl index 6128ba7..7ea563f 100644 --- a/test/plugins/githubpages.jl +++ b/test/plugins/githubpages.jl @@ -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")) diff --git a/test/plugins/gitlabpages.jl b/test/plugins/gitlabpages.jl index 36283ec..299206d 100644 --- a/test/plugins/gitlabpages.jl +++ b/test/plugins/gitlabpages.jl @@ -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"))