Skip to content

Commit b3b2665

Browse files
fingolfinKristofferC
authored andcommitted
Better order for stdlibs in the Julia manual navbar (#60155)
Resolves #50351 albeit with a bit of a hack. I deliberately left "The Julia REPL" alone (so it is still sorted under "REPL") as that felt more natural to me compared to sorting it under "Julia" but obviously this could easily be changed as well. (cherry picked from commit 9af9b15)
1 parent 083f7c6 commit b3b2665

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

doc/make.jl

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -228,6 +228,15 @@ BaseDocs = [
228228

229229
StdlibDocs = [stdlib.targetfile for stdlib in STDLIB_DOCS]
230230

231+
# HACK: get nicer sorting here, even though we don't have the header
232+
# of the .md files at hand.
233+
sort!(StdlibDocs, by=function(x)
234+
x = replace(x, "stdlib/" => "")
235+
startswith(x, "Libdl") && return lowercase("Dynamic Linker")
236+
startswith(x, "Test") && return lowercase("Unit Testing")
237+
return lowercase(x)
238+
end)
239+
231240
DevDocs = [
232241
"Documentation of Julia's Internals" => [
233242
"devdocs/init.md",

0 commit comments

Comments
 (0)