diff --git a/src/plugins/documenter.jl b/src/plugins/documenter.jl index 81a1192..1e2119f 100644 --- a/src/plugins/documenter.jl +++ b/src/plugins/documenter.jl @@ -46,7 +46,7 @@ function gen_plugin(p::Documenter, t::Template, pkg_name::AbstractString) "[]" end - kwargs_string = if in(:additional_kwargs, fieldnames(typeof(p))) && + kwargs_string = if :additional_kwargs in fieldnames(typeof(p)) && fieldtype(typeof(p), :additional_kwargs) <: Union{AbstractDict, NamedTuple} # We want something that looks like the following: # key1="val1", diff --git a/test/tests.jl b/test/tests.jl index 666d630..f702fea 100644 --- a/test/tests.jl +++ b/test/tests.jl @@ -408,10 +408,7 @@ end pkg_dir = joinpath(t.dir, test_pkg) function check_kwargs(kwargs, warn_str) - p = Qux( - [], - kwargs - ) + p = Qux([], kwargs) @test_logs (:warn, warn_str) gen_plugin(p, t, test_pkg) make = readchomp(joinpath(pkg_dir, "docs", "make.jl"))