Don't define an interactive method for any Documenter

Since Documenter subtypes can have extra fields now, it isn't safe.
This commit is contained in:
Chris de Graaf 2018-11-07 14:56:37 -06:00
parent 984475cd83
commit 2797d6dffc
2 changed files with 5 additions and 6 deletions

View File

@ -115,9 +115,3 @@ function Base.show(io::IO, p::Documenter)
print(io, "$spc→ $n gitignore entrie$s")
n > 0 && print(io, ": $(join(map(g -> "\"$g\"", p.gitignore), ", "))")
end
function interactive(T::Type{<:Documenter})
name = string(nameof(T))
print("$name: Enter any Documenter asset files (separated by spaces) []: ")
return T(; assets=string.(split(readline())))
end

View File

@ -61,3 +61,8 @@ function gen_plugin(p::GitHubPages, t::Template, pkg_name::AbstractString)
end
return ["docs/"]
end
function interactive(::Type{GitHubPages})
print("GitHubPages: Enter any Documenter asset files (separated by spaces) []: ")
return GitHubPages(; assets=string.(split(readline())))
end