Skip to content

Commit

Permalink
Deprecated and private (?) slots recieve appropriate CSS classes
Browse files Browse the repository at this point in the history
  • Loading branch information
superbobry committed Apr 18, 2010
1 parent 2469f8a commit 2165e2c
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 3 deletions.
11 changes: 9 additions & 2 deletions DocFormatter.io
Original file line number Diff line number Diff line change
Expand Up @@ -60,10 +60,17 @@ DocFormatter := Object clone prependProto(ProgressMixIn) do(
E div(class="ref-slots")
)
meta slots keys sort foreach(slot,
description := meta slots at(slot)
class := if(description beginsWithSeq("Deprecated"),
"deprecated"
,
if(description beginsWithSeq("Private"),
"private", nil)
)
details insert(
E dl(id=slot beforeSeq("("), # Check for deprecation?
E dl(id=slot beforeSeq("("), class=class,
E dt(slot),
E dd(meta slots at(slot))
E dd(description)
)
)
)
Expand Down
5 changes: 4 additions & 1 deletion css/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -101,4 +101,7 @@ h2 {
.ref-slots dd {
margin-left: 2em;
margin-top: .8em;
}
}

.deprecated { color: #5555AA; }
.private { color: #888888; }

0 comments on commit 2165e2c

Please sign in to comment.