Skip to content

Commit

Permalink
chore: Update default themes
Browse files Browse the repository at this point in the history
  • Loading branch information
Gerrit0 committed Jan 14, 2020
1 parent f388ee0 commit 100fafd
Show file tree
Hide file tree
Showing 52 changed files with 2,267 additions and 94 deletions.
10 changes: 10 additions & 0 deletions examples/basic/src/flattened.ts
Expand Up @@ -55,6 +55,16 @@ class FlattenedClass {
(value: number): FlattenedClass;
};

/**
* Single call signature.
*/
public singleCallSignature: (...args: string[]) => () => string;

/**
* Rendering edge case: the function needs to be wrapped in parens or the type changes.
*/
unionAndFunction: (() => 1) | 2;

/**
* A constructor that accepts an option object defined inline.
*
Expand Down
File renamed without changes.
3 changes: 0 additions & 3 deletions examples/mixin/run

This file was deleted.

7 changes: 0 additions & 7 deletions examples/mixin/run.bat

This file was deleted.

6 changes: 3 additions & 3 deletions 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
Expand Up @@ -39,7 +39,7 @@
"minimatch": "^3.0.0",
"progress": "^2.0.3",
"shelljs": "^0.8.3",
"typedoc-default-themes": "^0.7.0",
"typedoc-default-themes": "^0.7.1",
"typescript": "3.7.x"
},
"devDependencies": {
Expand Down
13 changes: 6 additions & 7 deletions src/lib/output/helpers/compact.ts
Expand Up @@ -5,11 +5,10 @@
* @returns The string with all newlines stripped.
*/
export function compact(options: any): string {
const lines = options.fn(this).split('\n');

for (let i = 0, c = lines.length; i < c; i++) {
lines[i] = lines[i].trim().replace(/&nbsp;/, ' ');
}

return lines.join('');
return options.fn(this)
.split('\n')
.map(line => line.trim())
.join('')
.replace(/&nbsp;/g, ' ')
.trim();
}
3 changes: 3 additions & 0 deletions src/test/renderer/specs/classes/_access_.privateclass.html
Expand Up @@ -218,6 +218,9 @@ <h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</spa
<li class=" tsd-kind-external-module">
<a href="../modules/_generics_.html">&quot;generics&quot;</a>
</li>
<li class=" tsd-kind-external-module">
<a href="../modules/_mixin_.html">&quot;mixin&quot;</a>
</li>
<li class=" tsd-kind-external-module">
<a href="../modules/_mod_.html">&quot;mod&quot;</a>
</li>
Expand Down
5 changes: 4 additions & 1 deletion src/test/renderer/specs/classes/_classes_.baseclass.html
Expand Up @@ -181,7 +181,7 @@ <h2>Properties</h2>
<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-private">
<a name="internalclass" class="tsd-anchor"></a>
<h3><span class="tsd-flag ts-flagPrivate">Private</span> internal<wbr>Class</h3>
<div class="tsd-signature tsd-kind-icon">internal<wbr>Class<span class="tsd-signature-symbol">:</span> <a href="_classes_.internalclass.html" class="tsd-signature-type">InternalClass</a><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">keyof <a href="_classes_.baseclass.html" class="tsd-signature-type">BaseClass</a></span><span class="tsd-signature-symbol">&gt;</span></div>
<div class="tsd-signature tsd-kind-icon">internal<wbr>Class<span class="tsd-signature-symbol">:</span> <a href="_classes_.internalclass.html" class="tsd-signature-type">InternalClass</a><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-symbol">keyof </span><a href="_classes_.baseclass.html" class="tsd-signature-type">BaseClass</a><span class="tsd-signature-symbol">&gt;</span></div>
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/sebastian-lenz/typedoc/blob/master/examples/basic/src/classes.ts#L69">classes.ts:69</a></li>
Expand Down Expand Up @@ -508,6 +508,9 @@ <h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">string</s
<li class=" tsd-kind-external-module">
<a href="../modules/_generics_.html">&quot;generics&quot;</a>
</li>
<li class=" tsd-kind-external-module">
<a href="../modules/_mixin_.html">&quot;mixin&quot;</a>
</li>
<li class=" tsd-kind-external-module">
<a href="../modules/_mod_.html">&quot;mod&quot;</a>
</li>
Expand Down
3 changes: 3 additions & 0 deletions src/test/renderer/specs/classes/_classes_.genericclass.html
Expand Up @@ -349,6 +349,9 @@ <h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</spa
<li class=" tsd-kind-external-module">
<a href="../modules/_generics_.html">&quot;generics&quot;</a>
</li>
<li class=" tsd-kind-external-module">
<a href="../modules/_mixin_.html">&quot;mixin&quot;</a>
</li>
<li class=" tsd-kind-external-module">
<a href="../modules/_mod_.html">&quot;mod&quot;</a>
</li>
Expand Down
9 changes: 6 additions & 3 deletions src/test/renderer/specs/classes/_classes_.internalclass.html
Expand Up @@ -80,7 +80,7 @@ <h1>Class InternalClass&lt;TTT&gt;</h1>
<h3>Type parameters</h3>
<ul class="tsd-type-parameters">
<li>
<h4>TTT<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">keyof <a href="_classes_.baseclass.html" class="tsd-signature-type">BaseClass</a></span></h4>
<h4>TTT<span class="tsd-signature-symbol">: </span><span class="tsd-signature-symbol">keyof </span><a href="_classes_.baseclass.html" class="tsd-signature-type">BaseClass</a></h4>
</li>
</ul>
</section>
Expand Down Expand Up @@ -111,7 +111,7 @@ <h2>Constructors</h2>
<a name="constructor" class="tsd-anchor"></a>
<h3>constructor</h3>
<ul class="tsd-signatures tsd-kind-constructor tsd-parent-kind-class tsd-is-not-exported">
<li class="tsd-signature tsd-kind-icon">new <wbr>Internal<wbr>Class<span class="tsd-signature-symbol">(</span>options<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">object</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><a href="_classes_.internalclass.html" class="tsd-signature-type">InternalClass</a></li>
<li class="tsd-signature tsd-kind-icon">new <wbr>Internal<wbr>Class<span class="tsd-signature-symbol">(</span>options<span class="tsd-signature-symbol">: </span><span class="tsd-signature-symbol">{ </span>name<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol"> }</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><a href="_classes_.internalclass.html" class="tsd-signature-type">InternalClass</a></li>
</ul>
<ul class="tsd-descriptions">
<li class="tsd-description">
Expand All @@ -123,7 +123,7 @@ <h3>constructor</h3>
<h4 class="tsd-parameters-title">Parameters</h4>
<ul class="tsd-parameters">
<li>
<h5>options: <span class="tsd-signature-type">object</span></h5>
<h5>options: <span class="tsd-signature-symbol">{ </span>name<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol"> }</span></h5>
<ul class="tsd-parameters">
<li class="tsd-parameter">
<h5>name<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span></h5>
Expand Down Expand Up @@ -164,6 +164,9 @@ <h4 class="tsd-returns-title">Returns <a href="_classes_.internalclass.html" cla
<li class=" tsd-kind-external-module">
<a href="../modules/_generics_.html">&quot;generics&quot;</a>
</li>
<li class=" tsd-kind-external-module">
<a href="../modules/_mixin_.html">&quot;mixin&quot;</a>
</li>
<li class=" tsd-kind-external-module">
<a href="../modules/_mod_.html">&quot;mod&quot;</a>
</li>
Expand Down
Expand Up @@ -327,6 +327,9 @@ <h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</spa
<li class=" tsd-kind-external-module">
<a href="../modules/_generics_.html">&quot;generics&quot;</a>
</li>
<li class=" tsd-kind-external-module">
<a href="../modules/_mixin_.html">&quot;mixin&quot;</a>
</li>
<li class=" tsd-kind-external-module">
<a href="../modules/_mod_.html">&quot;mod&quot;</a>
</li>
Expand Down
3 changes: 3 additions & 0 deletions src/test/renderer/specs/classes/_classes_.subclassa.html
Expand Up @@ -647,6 +647,9 @@ <h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">string</s
<li class=" tsd-kind-external-module">
<a href="../modules/_generics_.html">&quot;generics&quot;</a>
</li>
<li class=" tsd-kind-external-module">
<a href="../modules/_mixin_.html">&quot;mixin&quot;</a>
</li>
<li class=" tsd-kind-external-module">
<a href="../modules/_mod_.html">&quot;mod&quot;</a>
</li>
Expand Down
3 changes: 3 additions & 0 deletions src/test/renderer/specs/classes/_classes_.subclassb.html
Expand Up @@ -482,6 +482,9 @@ <h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">string</s
<li class=" tsd-kind-external-module">
<a href="../modules/_generics_.html">&quot;generics&quot;</a>
</li>
<li class=" tsd-kind-external-module">
<a href="../modules/_mixin_.html">&quot;mixin&quot;</a>
</li>
<li class=" tsd-kind-external-module">
<a href="../modules/_mod_.html">&quot;mod&quot;</a>
</li>
Expand Down
Expand Up @@ -206,6 +206,9 @@ <h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">string</s
<li class=" tsd-kind-external-module">
<a href="../modules/_generics_.html">&quot;generics&quot;</a>
</li>
<li class=" tsd-kind-external-module">
<a href="../modules/_mixin_.html">&quot;mixin&quot;</a>
</li>
<li class=" tsd-kind-external-module">
<a href="../modules/_mod_.html">&quot;mod&quot;</a>
</li>
Expand Down
Expand Up @@ -207,6 +207,9 @@ <h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">string</s
<li class=" tsd-kind-external-module">
<a href="../modules/_generics_.html">&quot;generics&quot;</a>
</li>
<li class=" tsd-kind-external-module">
<a href="../modules/_mixin_.html">&quot;mixin&quot;</a>
</li>
<li class=" tsd-kind-external-module">
<a href="../modules/_mod_.html">&quot;mod&quot;</a>
</li>
Expand Down

0 comments on commit 100fafd

Please sign in to comment.