We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 91a60b7 commit 7a8ba2aCopy full SHA for 7a8ba2a
etc/typedoc/theme/assets/js/theme.js
@@ -59,8 +59,11 @@
59
*/
60
function cleanTitle( el ) {
61
var txt = cleanPath( el.innerHTML );
62
- if ( txt.indexOf( 'stdlib' ) === -1 ) {
+ var idx = txt.indexOf( 'stdlib' );
63
+ if ( idx === -1 || idx === 1 ) { // e.g., '@stdlib/types/iter'
64
txt = 'stdlib | ' + txt;
65
+ } else if ( txt.indexOf( ' | stdlib' ) === txt.length-9 ) { // e.g., 'foo/bar | stdlib'
66
+ txt = 'stdlib | ' + txt.slice( 0, -9 );
67
}
68
el.innerHTML = txt;
69
0 commit comments