Skip to content

Commit 32fc2cf

Browse files
committed
fix finmax on 1.6
1 parent 015ee31 commit 32fc2cf

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/documentertools/canonical_urls.jl

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,9 @@ function canonical_version_from_versions_js(docs_directory)
211211
if isempty(version_symlinks)
212212
error("Unable to determine the canonical path. Found no version directories")
213213
end
214-
_, idx = findmax(first, version_symlinks)
214+
# Note: findmax(first, version_symlinks) would be nicer, but is not supported
215+
# on Julia 1.6
216+
_, idx = findmax(first.(version_symlinks))
215217
version_symlinks[idx][2]
216218
elseif length(non_version_symlinks) > 1
217219
error(

0 commit comments

Comments
 (0)