Skip to content

Commit 4c827c0

Browse files
committed
Sort function documentation by name of the function
1 parent a6bac85 commit 4c827c0

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

mkdocs.metta

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,11 +45,12 @@
4545
(= (document-module $title $mod)
4646
(let $_ (import! &self $mod)
4747
(let $helps (collapse (help-md-space! (module-space-no-deps (mod-space! $mod))))
48-
(let $text (foldl-atom $helps "" $r $i (format-args "{}{}" ($r $i)))
48+
(let $sorted (sort-strings $helps)
49+
(let $text (foldl-atom $sorted "" $r $i (format-args "{}{}" ($r $i)))
4950
(let $md (format-args "# {}\n{}" ($title $text))
5051
(let $path (format-args "./docs/{}.md" ($mod))
5152
(let $file (file-open! $path "wct")
52-
(file-write! $file $md) )))))))
53+
(file-write! $file $md) ))))))))
5354

5455
!(document-module "Standard library" corelib)
5556
!(document-module "File Input/Output" fileio)

0 commit comments

Comments
 (0)