-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: group namespace members by kind
- Loading branch information
1 parent
a7afbe1
commit 76998f4
Showing
2 changed files
with
8 additions
and
2 deletions.
There are no files selected for viewing
8 changes: 7 additions & 1 deletion
8
share/mrdocs/addons/generator/asciidoc/partials/namespace.adoc.hbs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,16 @@ | ||
{{!-- namespace --}} | ||
= {{#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}} | ||
|
||
[,cols=2] | ||
|=== | ||
|Name |Description | ||
{{#each symbol.members}} | ||
{{#each .}} | ||
|xref:{{ref}}[`pass:v[{{name}}]`] |{{doc.brief}} | ||
{{/each}} | ||
|=== | ||
|
||
{{/each}} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters