Skip to content
This repository has been archived by the owner on Nov 7, 2019. It is now read-only.

Commit

Permalink
Only display the API doc link if the project has API docs
Browse files Browse the repository at this point in the history
This is something of a hack at the moment. The right border on the
reference doc link has been removed. This border provides a separator
between the reference doc link and the API doc link. It’s fine for the
platform as it has no API docs but it’s not a general solution.
  • Loading branch information
wilkinsona committed May 13, 2014
1 parent 36f7610 commit cf77f1b
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion _includes/widget_templates.html
Expand Up @@ -19,7 +19,7 @@
</div>
<div class="item--right-column">
<a href='{@= release.refDocUrl @}' class="docs-link reference-link">Reference</a>
<a href='{@= release.apiDocUrl @}' class="docs-link api-link">API</a>
{% if release.apiDocUrl %} <a href='{@= release.apiDocUrl @}' class="docs-link api-link">API</a> {% endif %}
</div>
</div>
{@ }); @}
Expand Down
1 change: 0 additions & 1 deletion css/main.css.css
Expand Up @@ -815,7 +815,6 @@ footer .container-fluid {

.item--dropdown .item--body .item--body--version .docs-link.reference-link
{
border-right: 1px solid #4a4540;
padding-right: 10px;
margin-right: 5px;
}
Expand Down

0 comments on commit cf77f1b

Please sign in to comment.