Skip to content

Commit d00e814

Browse files
committed
Make rendering consistent for non-external modules
1 parent 9b6e0bf commit d00e814

File tree

2 files changed

+34
-0
lines changed

2 files changed

+34
-0
lines changed

etc/typedoc/theme/assets/js/theme.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,11 @@
3737
j = txt.indexOf( '/docs/types/' );
3838
if ( j >= 0 ) {
3939
txt = txt.slice( 0, j );
40+
} else {
41+
j = txt.indexOf( '/index.d' );
42+
if ( j >= 0 ) {
43+
txt = txt.slice( 0, j );
44+
}
4045
}
4146
return txt;
4247
}
@@ -127,6 +132,9 @@
127132
el = document.querySelectorAll( '.tsd-kind-external-module a' );
128133
cleanLinks( el );
129134

135+
el = document.querySelectorAll( '.tsd-is-not-exported a' );
136+
cleanLinks( el );
137+
130138
el = document.querySelectorAll( '.tsd-breadcrumb a' );
131139
cleanLinks( el );
132140

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
{{#if isVisible}}
2+
{{#if isLabel}}
3+
<li class="label {{cssClasses}}">
4+
<span>{{{wbr title}}}</span>
5+
</li>
6+
{{else}}
7+
{{#if isGlobals}}
8+
<li class="globals {{#if isInPath}}current{{/if}} {{cssClasses}}">
9+
<a href="{{relativeURL url}}"><em>Packages</em></a>
10+
</li>
11+
{{else}}
12+
<li class="{{#if isInPath}}current{{/if}} {{cssClasses}}">
13+
<a href="{{relativeURL url}}">{{{wbr title}}}</a>
14+
{{#if isInPath}}
15+
{{#if children}}
16+
<ul>
17+
{{#each children}}
18+
{{> navigation}}
19+
{{/each}}
20+
</ul>
21+
{{/if}}
22+
{{/if}}
23+
</li>
24+
{{/if}}
25+
{{/if}}
26+
{{/if}}

0 commit comments

Comments
 (0)