Skip to content

Commit

Permalink
Merge pull request #28 from Gerrit0/master
Browse files Browse the repository at this point in the history
Updates to support TypeDoc 0.25.x
  • Loading branch information
DiFuks authored Oct 2, 2023
2 parents dec58bc + 6d52611 commit 818e638
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 7 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
"webpack-cli": "^4.9.1"
},
"peerDependencies": {
"typedoc": ">=0.24.0"
"typedoc": "^0.24.0 || ^0.25.0"
},
"scripts": {
"build": "webpack && tsc --project tsconfig.build.json",
Expand Down
6 changes: 1 addition & 5 deletions src/themes/OverrideTheme.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@ import { Renderer } from 'typedoc/dist/lib/output/renderer';
import { OverrideThemeContext } from './OverrideThemeContext';

export class OverrideTheme extends DefaultTheme {
private _contextCache?: OverrideThemeContext;

public constructor(renderer: Renderer) {
super(renderer);

Expand All @@ -27,12 +25,10 @@ export class OverrideTheme extends DefaultTheme {
public override getRenderContext(
page: PageEvent<Reflection>,
): OverrideThemeContext {
this._contextCache ||= new OverrideThemeContext(
return new OverrideThemeContext(
this,
page,
this.application.options,
);

return this._contextCache;
}
}
2 changes: 1 addition & 1 deletion yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -5867,7 +5867,7 @@ __metadata:
webpack: ^5.65.0
webpack-cli: ^4.9.1
peerDependencies:
typedoc: ">=0.24.0"
typedoc: ^0.24.0 || ^0.25.0
languageName: unknown
linkType: soft

Expand Down

0 comments on commit 818e638

Please sign in to comment.