Fixes formatting
This commit is contained in:
parent
9f47d403f7
commit
dced413b49
@ -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",
|
||||
|
@ -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"))
|
||||
|
Loading…
Reference in New Issue
Block a user