Skip to content

Commit

Permalink
Add Aliases tag on API pages.
Browse files Browse the repository at this point in the history
  • Loading branch information
garg3133 committed Nov 10, 2024
1 parent aafb39b commit be34851
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
11 changes: 10 additions & 1 deletion public/css/main.css
Original file line number Diff line number Diff line change
Expand Up @@ -874,7 +874,16 @@ p.secondary-text {
padding: 10px;
font-style: italic;
font-size: 15px;
color: #555
color: #555;
}

.page-header span.alias {
padding: 10px 20px;
font-style: italic;
font-size: 15px;
color: #555;
display: block;
margin: 10px 0;
}

/* .docs-section h3 {
Expand Down
4 changes: 4 additions & 0 deletions src/includes/api-method.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@
<% if (method.since) { %>
<span class="since">Since: <%= method.since %></span>
<% } %>
<% if (method.aliases && method.aliases.length > 0) { %>
<span class="alert alert-info alias">Aliases: <%- '<code>' + method.aliases.join('</code>, <code>') + '</code>' %></span>
<% } %>
</div>
<%- method.description %>
Expand Down

0 comments on commit be34851

Please sign in to comment.