Skip to content

Commit

Permalink
[doc] alphabetize subnodes (methods etc) under classes in generated doco
Browse files Browse the repository at this point in the history
  • Loading branch information
apjanke committed Feb 7, 2024
1 parent 2b27437 commit baf54b8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion doc/mktexi.pl
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,8 @@ sub node_name_to_doc_file_name {
if ($node) {
my $main_doc = OctTexiDoc::munge_texi_block_text($$node{block});
emit "$main_doc\n\n";
for my $subnode (@{$$node{children}}) {
my @subnodes = sort { lc($$a{node}) cmp lc($$b{node}) } @{$$node{children}};
for my $subnode (@subnodes) {
my $subnode_name = $$subnode{node};
my $subnode_doc = OctTexiDoc::munge_texi_block_text($$subnode{block});
emit "\@node $subnode_name\n";
Expand Down

0 comments on commit baf54b8

Please sign in to comment.