diff --git a/src/Generator.jl b/src/Generator.jl index e6b783c..24a7ea3 100644 --- a/src/Generator.jl +++ b/src/Generator.jl @@ -30,13 +30,17 @@ Contents of the default `make.jl` file. function make(pkgname; format = :html) fmtpkg = format === :markdown ? ", DocumenterMarkdown" : format === :pdf ? ", DocumenterLaTeX" : "" + fmtstr = format === :html ? "Documenter.HTML()" : + format === :markdown ? "Markdown()" : + format === :pdf ? "LaTeX()" : "" + sitename = format !== :markdown ? "\n sitename = \"$(pkgname)\"," : "" """ using Documenter$(fmtpkg) using $(pkgname) makedocs($(sitename) - format = $(repr(format)), + format = $(fmtstr), modules = [$(pkgname)] )