Add back some deprecated methods (#116)

This commit is contained in:
Chris de Graaf 2019-12-17 15:21:31 +07:00 committed by GitHub
parent a41187be1c
commit 761dfe534d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 0 deletions

View File

@ -42,6 +42,7 @@ abstract type Plugin end
include("template.jl")
include("plugin.jl")
include("show.jl")
include("deprecated.jl")
# Run some function with a project activated at the given path.
function with_project(f::Function, path::AbstractString)

5
src/deprecated.jl Normal file
View File

@ -0,0 +1,5 @@
@deprecate generate(t::Template, pkg::AbstractString) t(pkg)
@deprecate generate(pkg::AbstractString, t::Template) t(pkg)
@deprecate interactive_template() Template(; interactive=true)
@deprecate generate_interactive(pkg::AbstractString) Template(; interactive=true)(pkg)
@deprecate GitHubPages(; kwargs...) Documenter{TravisCI}(; kwargs...)