We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 015ee31 commit 32fc2cfCopy full SHA for 32fc2cf
src/documentertools/canonical_urls.jl
@@ -211,7 +211,9 @@ function canonical_version_from_versions_js(docs_directory)
211
if isempty(version_symlinks)
212
error("Unable to determine the canonical path. Found no version directories")
213
end
214
- _, idx = findmax(first, version_symlinks)
+ # Note: findmax(first, version_symlinks) would be nicer, but is not supported
215
+ # on Julia 1.6
216
+ _, idx = findmax(first.(version_symlinks))
217
version_symlinks[idx][2]
218
elseif length(non_version_symlinks) > 1
219
error(
0 commit comments