Skip to content

Commit

Permalink
fixup Default
Browse files Browse the repository at this point in the history
  • Loading branch information
laborg committed Mar 8, 2024
1 parent 4405994 commit cca21de
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/html/HTMLWriter.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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 = "",
Expand All @@ -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
Expand Down

0 comments on commit cca21de

Please sign in to comment.