Skip to content

Commit 0fe6955

Browse files
committed
Make category titles render consistently
Closes #2196
1 parent ad73e37 commit 0fe6955

File tree

4 files changed

+11
-10
lines changed

4 files changed

+11
-10
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@
5757
- Fixed `@inheritDoc` on signatures (functions, methods, constructors, getters, setters) being unable to inherit from a non-signature.
5858
- Interfaces/classes created via extending a module will no longer contain variables/functions where the member should have been converted as properties/methods, #2150.
5959
- TypeDoc will now ignore a leading `v` in versions, #2212.
60+
- Category titles now render with the same format in the page index and heading title, #2196.
6061

6162
### Thanks!
6263

example/package-lock.json

Lines changed: 8 additions & 8 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

example/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,6 @@
1919
"react-dom": "^17.0.2"
2020
},
2121
"devDependencies": {
22-
"typescript": "^4.5.2"
22+
"typescript": "^5.0.3"
2323
}
2424
}

src/lib/output/themes/default/partials/members.group.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ export function membersGroup(context: DefaultThemeRenderContext, group: Reflecti
99
{group.categories.map((item) => (
1010
<section class="tsd-panel-group tsd-member-group">
1111
<h2>
12-
{!!item.title && <>{item.title} </>}
1312
{group.title}
13+
{!!item.title && <> - {item.title}</>}
1414
</h2>
1515
{item.children.map((item) => !item.hasOwnDocument && context.member(item))}
1616
</section>

0 commit comments

Comments
 (0)