Skip to content

Commit 85f7211

Browse files
sort to help stability
1 parent a0e1255 commit 85f7211

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

doc/make.jl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ const EXT_STDLIB_DOCS = ["Pkg"]
5151
cd(joinpath(buildrootdoc, "src")) do
5252
Base.rm("stdlib"; recursive=true, force=true)
5353
mkdir("stdlib")
54-
for dir in readdir(STDLIB_DIR)
54+
for dir in sort!(collect(readdir(STDLIB_DIR)))
5555
sourcefile = joinpath(STDLIB_DIR, dir, "docs", "src")
5656
if dir in EXT_STDLIB_DOCS
5757
sourcefile = joinpath(sourcefile, "basedocs.md")
@@ -95,9 +95,9 @@ end
9595
documenter_stdlib_remotes = let stdlib_dir = realpath(joinpath(@__DIR__, "..", "stdlib")),
9696
stdlib_build_dir = joinpath(buildrootdoc, "..", "stdlib")
9797
# Get a list of all *.version files in stdlib/..
98-
version_files = filter(readdir(stdlib_dir)) do fname
98+
version_files = sort!(filter(readdir(stdlib_dir)) do fname
9999
isfile(joinpath(stdlib_dir, fname)) && endswith(fname, ".version")
100-
end
100+
end)
101101
# .. and then parse them, each becoming an entry for makedocs's remotes.
102102
# The values for each are of the form path => (remote, sha1), where
103103
# - path: the path to the stdlib package's root directory, i.e. "stdlib/$PACKAGE"

0 commit comments

Comments
 (0)