Link individual attributes. Fixes #131. Also shows default false defaults

This commit is contained in:
Tom MacWright 2012-05-08 16:31:43 -04:00
parent 5f1629f78f
commit 0f071f14f8
3 changed files with 1700 additions and 1505 deletions

3161
index.html

File diff suppressed because it is too large Load Diff

View File

@ -67,6 +67,16 @@ span.css {
line-height:20px;
}
span.css a {
text-decoration:none;
color:#222;
border-bottom:1px solid #ccc;
}
span.css a:hover {
border-bottom:1px solid #555;
}
.type {
background:#ffe8e1;
padding:2px 4px;

View File

@ -6,24 +6,24 @@
.filter(function(p) { return p.css; })
.each(function(p, name) {
%>
<li><div>
<span class='css'><%= p.css %></span>
<small class='types'>
<% if (_.isArray(p.type)) { _(p.type).each(function(type) { %>
<span class='type'><%= type %></span>
<% }); } else { %>
<span class='type'><a href='#<%= p.type %>'><%= p.type %></a></span>
<li id='section-<%= name %>-<%= p.css %>'><div>
<span class='css'><a href='#section-<%= name %>-<%= p.css %>'><%= p.css %></a></span>
<small class='types'>
<% if (_.isArray(p.type)) { _(p.type).each(function(type) { %>
<span class='type'><%= type %></span>
<% }); } else { %>
<span class='type'><a href='#<%= p.type %>'><%= p.type %></a></span>
<% } %>
</small>
</div>
<% if (typeof p['default-value'] !== 'undefined') { %>
<small>Default:
<%= p['default-value'] %>
<% if (p['default-meaning']) { %><span class='description'>(<%= p['default-meaning'] %>)</span><% } %>
</small>
<% } %>
</small>
</div>
<% if (p['default-value']) { %>
<small>Default:
<%= p['default-value'] %>
<% if (p['default-meaning']) { %><span class='description'>(<%= p['default-meaning'] %>)</span><% } %>
</small>
<% } %>
<% if (p.doc) { %><div class='description'><%=p.doc%></div><% } %>
</li>
<% if (p.doc) { %><div class='description'><%=p.doc%></div><% } %>
</li>
<% }); %>
</ul>
</div>