Skip to content

Commit

Permalink
refactor: namespace members are sorted
Browse files Browse the repository at this point in the history
  • Loading branch information
alandefreitas committed Nov 21, 2023
1 parent 7d689c9 commit d788ed8
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@
= {{#if symbol.name}}Namespace {{symbol.name}}{{else if symbol.parent}}Unnamed namespace{{else}}Global namespace{{/if}}

{{#each (group_by symbol.members "kind")}}
== {{#if (eq @key "record")}}Classes{{else}}{{capitalize @key}}s{{/if}}
== {{#if (eq @key "record")}}Types{{else if (eq @key "variable")}}Constants{{else}}{{capitalize @key}}s{{/if}}

[,cols=2]
|===
|Name |Description
{{#each .}}
{{#each (sort_by . "name")}}
|xref:{{ref}}[`pass:v[{{name}}]`] |{{doc.brief}}
{{/each}}
|===
Expand Down

0 comments on commit d788ed8

Please sign in to comment.