Skip to content

Commit

Permalink
fix: Expose reflection kind in title
Browse files Browse the repository at this point in the history
  • Loading branch information
tgreyuk committed Apr 11, 2023
1 parent 676b974 commit 3c25b3b
Showing 1 changed file with 3 additions and 7 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import * as Handlebars from 'handlebars';
import { PageEvent, ParameterReflection } from 'typedoc';
import { PageEvent, ParameterReflection, ReflectionKind } from 'typedoc';
import { escapeChars } from '../../utils';
import { MarkdownTheme } from '../../theme';

Expand All @@ -8,12 +8,8 @@ export default function (theme: MarkdownTheme) {
'reflectionTitle',
function (this: PageEvent<any>, shouldEscape = true) {
const title: string[] = [''];
if (
this.model &&
this.model.kindString &&
this.url !== this.project.url
) {
title.push(`${this.model.kindString}: `);
if (this.model && this.url !== this.project.url) {
title.push(`${ReflectionKind.singularString(this.model.kind)}: `);
}
if (this.url === this.project.url) {
title.push(theme.indexTitle || this.project.name);
Expand Down

0 comments on commit 3c25b3b

Please sign in to comment.