forked from crystal-lang/crystal
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Expose inherited macros in generated API docs (crystal-lang#13810)
- Loading branch information
1 parent
92edee4
commit c25640d
Showing
3 changed files
with
16 additions
and
0 deletions.
There are no files selected for viewing
11 changes: 11 additions & 0 deletions
11
src/compiler/crystal/tools/doc/html/_macros_inherited.html
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 |
---|---|---|
@@ -0,0 +1,11 @@ | ||
<% macro_groups = macros.group_by { |m| m.name } %> | ||
<% unless macro_groups.empty? %> | ||
<h3>Macros inherited from <%= ancestor.kind %> <code><%= ancestor.link_from(type) %></code></h3> | ||
<% i = 0 %> | ||
<% macro_groups.each do |k, v| %> | ||
<a href="<%= type.path_to(ancestor) %><%= v[0].anchor %>" class="tooltip"> | ||
<span><%= v.map { |m| m.name + m.args_to_html(:highlight) } .join("<br/>") %></span> | ||
<%= k %></a><%= ", " if i != macro_groups.size - 1 %> | ||
<% i += 1 %> | ||
<% end %> | ||
<% end %> |
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
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