vacuumlabs/ledgerjs-cardano-shelley

custom typedoc theme

Closed this issue · 1 comments

In _typedoc, we had a custom theme that worked with an older version of typedoc, but is not compatible with v0.22 anymore.
The point of the theme was a better display format for union types.

The mechanism for custom themes is now completely different:
https://github.com/TypeStrong/typedoc/blob/master/internal-docs/custom-themes.md

Our custom modifications of the default theme were like this:

diff -r default/partials/type.hbs ../../custom-theme/partials/type.hbs
65c65
<         {{> type needsParens=true}}
---
>         {{> type}}
169a170
>         <span style="display: block; text-indent: 15px">
172,174c173
<             {{#unless @first}}
<                 <span class="tsd-signature-symbol">; </span>
<             {{/unless}}
---
>         <span style="display: block; text-indent: 30px">
224a224,225
>                 <span class="tsd-signature-symbol">; </span>
>         </span>
226c227,228
<         <span class="tsd-signature-symbol"> }</span>
---
>         <span class="tsd-signature-symbol" style="display: inline-block; text-indent: 15px">}</span>
>         </span>
301,303c303
<     {{#if needsParens}}
<         <span class="tsd-signature-symbol">(</span>
<     {{/if}}
---
>         <span class="tsd-signature-symbol"></span>
306c306
<             <span class="tsd-signature-symbol"> | </span>
---
>             <span class="tsd-signature-symbol">&nbsp;| </span>
310,312c310
<     {{#if needsParens}}
<         <span class="tsd-signature-symbol">)</span>
<     {{/if}}
---
>         <span class="tsd-signature-symbol"></span>

Not worth it in terms of time and money.