Skip to content

Commit

Permalink
Some cosmetic tunnings.
Browse files Browse the repository at this point in the history
Also link doesn't show the current function anymore.
Added commas separator and dot for the list of links to Argument in/returned by, in structures.
  • Loading branch information
niess committed Mar 20, 2016
1 parent 1810453 commit 04a516b
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 7 deletions.
14 changes: 8 additions & 6 deletions site/index.html
Expand Up @@ -92,6 +92,7 @@ <h3><a href="#">Files</a></h3>
<% }) %>
</ul>
</li>
<% if (examples.length > 0) { %>
<li>
<h3><a href="#">Examples</a></h3>
<ul>
Expand All @@ -102,6 +103,7 @@ <h3><a href="#">Examples</a></h3>
<% }) %>
</ul>
</li>
<% } %> <!-- if we have examples -->
</script>

<!-- Listing of the details of a single function -->
Expand Down Expand Up @@ -162,14 +164,14 @@ <h3>versions</h3>
</ul>
</div>
<% } %> <!-- if we have examples -->
<% if (alsoLinks) { %>
<% if (alsoLinks && (alsoLinks.length > 0)) { %>
<div class="also">
Also in <a href="<%= alsoGroup %>"><%= groupName %></a> group: <br/>
<% _.each(_.initial(alsoLinks), function(link) { %>
<a href="<%= link.url %>"><%= link.name %></a>,
<% }) %>
<% var link = _.last(alsoLinks) %>
<a href="<%= link.url %>"><%= link.name %></a>
<a href="<%= link.url %>"><%= link.name %></a>.
</div>
<% } %> <!-- if we have "also" links -->
</script>
Expand All @@ -193,19 +195,19 @@ <h2 class="funcGroup"><%= group.name %></h2>
<% if (returns.length > 0) { %>
<h3>Returned by</h3>
<% _.each(_.initial(returns), function(fun) { %>
<a href="<%= fun.url %>"><%= fun.name %></a>
<a href="<%= fun.url %>"><%= fun.name %></a>,
<% }) %> <!-- loop over each 'return' -->
<% var fun = _.last(returns) %>
<a href="<%= fun.url %>"><%= fun.name %></a>
<a href="<%= fun.url %>"><%= fun.name %></a>.
<% } %> <!-- if we have 'returns' -->
<% if (needs.length > 0) { %>
<h3>Argument in</h3>
<% _.each(_.initial(needs), function(fun) { %>
<a href="<%= fun.url %>"><%= fun.name %></a>
<a href="<%= fun.url %>"><%= fun.name %></a>,
<% }) %> <!-- loop over each 'need' -->
<% var fun = _.last(needs) %>
<a href="<%= fun.url %>"><%= fun.name %></a>
<a href="<%= fun.url %>"><%= fun.name %></a>.
<% } %> <!-- if we have 'needs' -->

<div class="fileLink">
Expand Down
2 changes: 1 addition & 1 deletion site/js/docurium.js
Expand Up @@ -241,7 +241,7 @@ $(function() {
var cdata = docurium.get('data')['callbacks']
ldata = cdata
} else {
var functions = group[1]
var functions = _.filter(group[1], function(f){ return f != fname})
}

// Function Arguments
Expand Down

0 comments on commit 04a516b

Please sign in to comment.