From cca21de485953c38ec8fea29a51a2be16341cc2e Mon Sep 17 00:00:00 2001 From: Gerhard Aigner Date: Fri, 8 Mar 2024 09:01:12 +0100 Subject: [PATCH] fixup Default --- src/html/HTMLWriter.jl | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/html/HTMLWriter.jl b/src/html/HTMLWriter.jl index da925328d6..b611ce50d0 100644 --- a/src/html/HTMLWriter.jl +++ b/src/html/HTMLWriter.jl @@ -73,7 +73,7 @@ using SHA: SHA using CodecZlib: ZlibCompressorStream using ANSIColoredPrinters: ANSIColoredPrinters -using ..Documenter: Documenter, Remotes +using ..Documenter: Documenter, Default, Remotes using ...JSDependencies: JSDependencies using ...DOM: DOM, @tags using ...MDFlatten: mdflatten @@ -488,8 +488,8 @@ struct HTML <: Documenter.Writer function HTML(; prettyurls :: Bool = true, disable_git :: Bool = false, - repolink :: Union{String, Nothing, Default} = Documenter.Default(nothing), - edit_link :: Union{String, Symbol, Nothing, Default} = Documenter.Default(Documenter.git_remote_head_branch("HTML(edit_link = ...)", Documenter.currentdir())), + repolink :: Union{String, Nothing, Default} = Default(nothing), + edit_link :: Union{String, Symbol, Nothing, Default} = Default(Documenter.git_remote_head_branch("HTML(edit_link = ...)", Documenter.currentdir())), canonical :: Union{String, Nothing} = nothing, assets :: Vector = String[], analytics :: String = "", @@ -515,7 +515,7 @@ struct HTML <: Documenter.Writer inventory_version = nothing, # deprecated keywords - edit_branch :: Union{String, Nothing, Default} = Documenter.Default(nothing), + edit_branch :: Union{String, Nothing, Default} = Default(nothing), ) collapselevel >= 1 || throw(ArgumentError("collapselevel must be >= 1")) if prerender