Skip to content

Commit

Permalink
merge
Browse files Browse the repository at this point in the history
  • Loading branch information
PissedCapslock committed Feb 21, 2020
2 parents a9aca95 + 042f26d commit 015813e
Show file tree
Hide file tree
Showing 16 changed files with 265 additions and 68 deletions.
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "typedoc-default-themes",
"description": "Default themes for TypeDoc.",
"version": "0.6.3",
"version": "0.7.2",
"homepage": "https://typedoc.org/",
"main": "bin/plugin.js",
"files": [
Expand Down
2 changes: 1 addition & 1 deletion src/default/partials/header.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -68,4 +68,4 @@
{{/compact}}</h1>
</div>
</div>
</header>
</header>
2 changes: 1 addition & 1 deletion src/default/partials/hierarchy.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
{{#if ../isTarget}}
<span class="target">{{this}}</span>
{{else}}
{{> type}}
{{#compact}}{{> type}}{{/compact}}
{{/if}}

{{#if @last}}
Expand Down
2 changes: 1 addition & 1 deletion src/default/partials/member.declaration.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -33,4 +33,4 @@
{{> parameter}}
{{/with}}
</div>
{{/if}}
{{/if}}
2 changes: 1 addition & 1 deletion src/default/partials/member.getterSetter.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -34,4 +34,4 @@
</li>
{{/with}}
{{/if}}
</ul>
</ul>
4 changes: 3 additions & 1 deletion src/default/partials/member.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,11 @@
{{> member.signatures}}
{{else}}{{#if hasGetterOrSetter}}
{{> member.getterSetter}}
{{else}}{{#if isReference}}
{{> member.reference}}
{{else}}
{{> member.declaration}}
{{/if}}{{/if}}
{{/if}}{{/if}}{{/if}}

{{#each groups}}
{{#each children}}
Expand Down
11 changes: 11 additions & 0 deletions src/default/partials/member.reference.hbs
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{{#with tryGetTargetReflectionDeep}}
{{#ifCond ../name '===' name}}
Re-exports <a href="{{relativeURL url}}">{{name}}</a>
{{else if flags.isExported}}
Renames and re-exports <a href="{{relativeURL url}}">{{name}}</a>
{{else}}
Renames and exports <a href="{{relativeURL url}}">{{name}}</a>
{{/ifCond}}
{{else}}
Re-exports {{name}}
{{/with}}
4 changes: 2 additions & 2 deletions src/default/partials/member.signature.body.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
{{/if}}

{{#if type}}
<h4 class="tsd-returns-title">Returns {{#with type}}{{>type}}{{/with}}</h4>
<h4 class="tsd-returns-title">Returns {{#compact}}{{#with type}}{{>type}}{{/with}}{{/compact}}</h4>

{{#if comment.returns}}
{{#markdown}}{{{comment.returns}}}{{/markdown}}
Expand All @@ -53,4 +53,4 @@
{{> parameter}}
{{/with}}
{{/if}}
{{/if}}
{{/if}}
52 changes: 28 additions & 24 deletions src/default/partials/member.signature.title.hbs
Original file line number Diff line number Diff line change
@@ -1,28 +1,32 @@
{{#compact}}
{{#unless hideName}}{{{wbr (formatDisplayName name)}}}{{/unless}}
{{#if typeParameters}}
&lt;
{{#each typeParameters}}
{{#if @index}},&nbsp;{{/if}}
{{formatDisplayName name}}
{{/each}}
&gt;
{{/if}}
<span class="tsd-signature-symbol">(</span>
{{#each parameters}}
{{#unless hideName}}{{{formatDisplayName wbr name}}}{{/unless}}
{{#if typeParameters}}
&lt;
{{#each typeParameters}}
{{#if @index}},&nbsp;{{/if}}
{{#if flags.isRest}}<span class="tsd-signature-symbol">...</span>{{/if}}
{{formatDisplayName name}}
<span class="tsd-signature-symbol">
{{#if flags.isOptional}}?{{/if}}
{{#if defaultValue}}?{{/if}}
:&nbsp;
</span>
{{#with type}}{{>type}}{{/with}}
{{/each}}
<span class="tsd-signature-symbol">)</span>
{{#if type}}
<span class="tsd-signature-symbol">:&nbsp;</span>
{{#with type}}{{>type}}{{/with}}
&gt;
{{/if}}
<span class="tsd-signature-symbol">(</span>
{{#each parameters}}
{{#if @index}},&nbsp;{{/if}}
{{#if flags.isRest}}<span class="tsd-signature-symbol">...</span>{{/if}}
{{name}}
<span class="tsd-signature-symbol">
{{#if flags.isOptional}}?{{/if}}
{{#if defaultValue}}?{{/if}}
:&nbsp;
</span>
{{#with type}}{{>type}}{{/with}}
{{/each}}
<span class="tsd-signature-symbol">)</span>
{{#if type}}
{{#if arrowStyle}}
<span class="tsd-signature-symbol"> =&gt; </span>
{{else}}
<span class="tsd-signature-symbol">: </span>
{{/if}}
{{/compact}}
{{#with type}}
{{>type}}
{{/with}}
{{/if}}
4 changes: 2 additions & 2 deletions src/default/partials/member.signatures.hbs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<ul class="tsd-signatures {{cssClasses}}">
{{#each signatures}}
<li class="tsd-signature tsd-kind-icon">{{> member.signature.title }}</li>
<li class="tsd-signature tsd-kind-icon">{{#compact}}{{> member.signature.title }}{{/compact}}</li>
{{/each}}
</ul>

Expand All @@ -10,4 +10,4 @@
{{> member.signature.body }}
</li>
{{/each}}
</ul>
</ul>
4 changes: 3 additions & 1 deletion src/default/partials/parameter.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@
<li class="tsd-parameter-siganture">
<ul class="tsd-signatures {{cssClasses}}">
{{#each signatures}}
<li class="tsd-signature tsd-kind-icon">{{> member.signature.title hideName=true }}</li>
<li class="tsd-signature tsd-kind-icon">{{#compact}}
{{> member.signature.title hideName=true }}
{{/compact}}</li>
{{/each}}
</ul>

Expand Down

0 comments on commit 015813e

Please sign in to comment.