Skip to content

Commit

Permalink
lighter presentation, version bump
Browse files Browse the repository at this point in the history
  • Loading branch information
shenanigans committed Jan 14, 2015
1 parent 7e960c2 commit d06dc32
Show file tree
Hide file tree
Showing 7 changed files with 98 additions and 33 deletions.
35 changes: 30 additions & 5 deletions indexFiles/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ body.spare .markdown {

#outer {
min-height: 100%;
min-width: 65em;
}

a {
Expand All @@ -46,7 +47,8 @@ h1, h2, h3, h4, h5, h6 {
}

#content {
min-width: 33em;
min-width: 26em;
max-width: 42em;
padding: 0 2em 3em 2em;
display: inline-block;
text-align: left;
Expand Down Expand Up @@ -202,15 +204,18 @@ p {
.valsep:last-child {
display: none;
}

.punctuation {
color: #E837D2;
font-weight: 300;
}
.signature {
color: #C813B1;
font-weight: 700;
margin: 0;
padding-left: 0.3em;
}
.child .signature {
font-size: 110%;
.child > .signature {
font-size: 120%;
}
.child .child .signature {
font-size: inherit;
Expand All @@ -220,11 +225,27 @@ p {
}
.signature .argument {
display: inline-block;
/*margin-left: 2em;*/
font-size: 90%;
}
.child .argument > .title {
font-weight: 300;
font-size: 110%
}
h1.signature .argument {
display: block;
margin-left: 1em;
font-size: 80%;
}
h1.signature {
margin-top: 0.7em;
}

.optionBracket {
color: #FA8CEC;
font-weight: 300;
}

.star {
font-size: 130%;
line-height: 0.1em;
Expand All @@ -243,7 +264,7 @@ h1.signature {
line-height: 0.1em;
}
/* hide comma after final argument */
*:first-child > .comma {
*:first-of-type > .comma {
display: none;
}

Expand Down Expand Up @@ -350,3 +371,7 @@ h1.signature {
margin-left: -0.5em;
padding-left: 2em;
}

h1 .types {
font-size: 80%;
}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "doczar",
"version": "0.2.0",
"version": "0.2.1",
"description": "A highly flexible comments-only documentation generator.",
"keywords": [
"documentation",
Expand Down
22 changes: 11 additions & 11 deletions templates/argument.bars
Original file line number Diff line number Diff line change
@@ -1,41 +1,41 @@
<div class="argument">
<span class="comma">,</span>
{{#if isOptional}}[{{/if}}
{{#if isOptional}}<span class="optionBracket">[</span>{{/if}}
{{#if isKwarg}}
<a class="title" href="{{softlink path}}">
{{name}}
</a>
=
<span class="punctuation">=</span>
<span>{{#valtype}}
<span class="valsep">|</span>
<span class="valsep punctuation">|</span>
<a class="valtype" href="{{link path}}">{{name}}</a>
{{#if isArray}}[ ]{{/if}}
{{#if generics}}
[
<span class="punctuation">[</span>
<span>{{#generics}}
<a class="valtype" href="{{link path}}">{{name}}</a>
<span class="valsep">,</span>
<span class="valsep punctuation">,</span>
{{/generics}}</span>
]
<span class="punctuation">]</span>
{{/if}}
{{/valtype}}</span>
{{else}}
<span>{{#valtype}}
<span class="valsep">|</span>
<span class="valsep punctuation">|</span>
<a class="valtype" href="{{link path}}">{{name}}</a>{{#if isPointer}}<span class="star">*</span>{{/if}}
{{#if isArray}}[ ]{{/if}}
{{#if generics}}
[
<span class="punctuation">[</span>
<span>{{#generics}}
<a class="valtype" href="{{link path}}">{{name}}</a>
<span class="valsep">,</span>
<span class="valsep punctuation">,</span>
{{/generics}}</span>
]
<span class="punctuation">]</span>
{{/if}}
{{/valtype}}</span>
<a class="title" href="{{softlink path}}">
{{name}}
</a>
{{/if}}
{{#if isOptional}}]{{/if}}
{{#if isOptional}}<span class="optionBracket">]</span>{{/if}}
</div>
22 changes: 11 additions & 11 deletions templates/argumentSignature.bars
Original file line number Diff line number Diff line change
Expand Up @@ -6,38 +6,38 @@
<span class="ctype">callback</span>
{{/unless}}{{/if}}
{{#if isKwarg}}
<a class="title" href="{{link path}}">
<a class="name" href="{{link path}}">
{{name}}
</a>
=
<span class="punctuation">=</span>
<span>{{#valtype}}
<span class="valsep">|</span>
<span class="valsep punctuation">|</span>
<a class="valtype" href="{{link path}}">{{name}}</a>
{{#if isArray}}[ ]{{/if}}
{{#if generics}}
[
<span class="punctuation">[</span>
<span>{{#generics}}
<a class="valtype" href="{{softlink path}}">{{name}}</a>
<span class="valsep">,</span>
<span class="valsep punctuation">,</span>
{{/generics}}</span>
]
<span class="punctuation">]</span>
{{/if}}
{{/valtype}}</span>
{{else}}
<span>{{#valtype}}
<span class="valsep">|</span>
<span class="valsep punctuation punctuation">|</span>
<a class="valtype" href="{{link path}}">{{name}}</a>{{#if isPointer}}<span class="star">*</span>{{/if}}
{{#if isArray}}[ ]{{/if}}
{{#if generics}}
[
<span class="punctuation">[</span>
<span>{{#generics}}
<a class="valtype" href="{{link path}}">{{name}}</a>
<span class="valsep">,</span>
<span class="valsep punctuation">,</span>
{{/generics}}</span>
]
<span class="punctuation">]</span>
{{/if}}
{{/valtype}}</span>
<a class="title" href="{{link path}}">
<a class="name" href="{{link path}}">
{{name}}
</a>
{{/if}}
Expand Down
10 changes: 5 additions & 5 deletions templates/function.bars
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,16 @@
{{#if returns}}
<span>{{#returns}}
<span class="valsep">,</span>
<span>{{#valtype}}
<span class="valsep">|</span>
<span class="types">{{#valtype}}
<span class="valsep punctuation">|</span>
<a class="valtype" href="{{link path}}">{{name}}</a>{{#if isPointer}}<span class="star">*</span>{{/if}}
{{#if generics}}
[
<span class="punctuation">[</span>
<span>{{#generics}}
<a class="valtype" href="{{link path}}">{{name}}</a>
<span class="valsep">,</span>
{{/generics}}</span>
]
<span class="punctuation">]</span>
{{/if}}
{{/valtype}}</span>
{{/returns}}</span>
Expand All @@ -25,7 +25,7 @@
</a>
(
<span>{{#arguments}}
{{> argument}}
{{> lightArgument}}
{{/arguments}}</span>
) {
</span>
Expand Down
17 changes: 17 additions & 0 deletions templates/header.bars
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,23 @@
<div id="content">
{{#if isFunction}}
<h1 class="signature">
{{#if returns}}
<span>{{#returns}}
<span class="valsep">,</span>
<span class="types">{{#valtype}}
<span class="valsep punctuation">|</span>
<a class="valtype" href="{{link path}}">{{name}}</a>{{#if isPointer}}<span class="star">*</span>{{/if}}
{{#if generics}}
<span class="punctuation">[</span>
<span>{{#generics}}
<a class="valtype" href="{{link path}}">{{name}}</a>
<span class="valsep">,</span>
{{/generics}}</span>
<span class="punctuation">]</span>
{{/if}}
{{/valtype}}</span>
{{/returns}}</span>
{{/if}}
{{name}} (
{{#arguments}}
{{> argument}}
Expand Down
23 changes: 23 additions & 0 deletions templates/lightArgument.bars
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
<div class="argument">
<span class="comma">,</span>
{{#if isOptional}}<span class="optionBracket">[</span>{{/if}}
{{#if isKwarg}}
<a class="title" href="{{softlink path}}">
{{name}}
</a>
<span class="punctuation">=</span>
<span>{{#valtype}}
<span class="valsep punctuation">|</span>
<a class="valtype" href="{{link path}}">{{name}}</a>
{{#if isArray}}
<span class="punctuation">[</span>
<span class="punctuation">]</span>
{{/if}}
{{/valtype}}</span>
{{else}}
<a class="title" href="{{softlink path}}">
{{name}}
</a>
{{/if}}
{{#if isOptional}}<span class="optionBracket">]</span>{{/if}}
</div>

0 comments on commit d06dc32

Please sign in to comment.