Skip to content

Commit

Permalink
refactor: group namespace members by kind
Browse files Browse the repository at this point in the history
  • Loading branch information
alandefreitas committed Nov 21, 2023
1 parent a7afbe1 commit 76998f4
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
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}}

2 changes: 1 addition & 1 deletion src/lib/-adoc/Builder.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -162,8 +162,8 @@ Builder(
}
return first;
}));
helpers::registerStringHelpers(hbs_);
helpers::registerAntoraHelpers(hbs_);
// helpers::registerStringHelpers(hbs_);
helpers::registerContainerHelpers(hbs_);
}

Expand Down

0 comments on commit 76998f4

Please sign in to comment.