Skip to content

Commit c2b0f07

Browse files
committed
add an isexternal field to Link
1 parent 5ddcfc9 commit c2b0f07

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/MultiDocumenter.jl

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,16 +83,18 @@ function MultiDocRef(;
8383
end
8484

8585
"""
86-
Link([text::String], link::String) <: DropdownComponent
86+
Link([text::String], link::String, [isexternal::Bool]) <: DropdownComponent
8787
8888
Represents a link to an external site.
8989
"""
9090
struct Link <: MultiDocumenter.DropdownComponent
9191
text::String
9292
link::String
93+
isexternal::Bool
9394
end
9495

9596
Link(link::String) = Link(link, link)
97+
Link(text::String, link::String) = Link(text, string, true #=isexternal=#) # TODO: add check / test
9698

9799
struct DropdownNav
98100
name::String

0 commit comments

Comments
 (0)