Skip to content

Commit be34851

Browse files
committed
Add Aliases tag on API pages.
1 parent aafb39b commit be34851

File tree

2 files changed

+14
-1
lines changed

2 files changed

+14
-1
lines changed

public/css/main.css

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -874,7 +874,16 @@ p.secondary-text {
874874
padding: 10px;
875875
font-style: italic;
876876
font-size: 15px;
877-
color: #555
877+
color: #555;
878+
}
879+
880+
.page-header span.alias {
881+
padding: 10px 20px;
882+
font-style: italic;
883+
font-size: 15px;
884+
color: #555;
885+
display: block;
886+
margin: 10px 0;
878887
}
879888

880889
/* .docs-section h3 {

src/includes/api-method.ejs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,10 @@
1010
<% if (method.since) { %>
1111
<span class="since">Since: <%= method.since %></span>
1212
<% } %>
13+
14+
<% if (method.aliases && method.aliases.length > 0) { %>
15+
<span class="alert alert-info alias">Aliases: <%- '<code>' + method.aliases.join('</code>, <code>') + '</code>' %></span>
16+
<% } %>
1317
</div>
1418
1519
<%- method.description %>

0 commit comments

Comments
 (0)