Skip to content

Commit

Permalink
Revert "chore: Update to TypeDoc 0.25.13"
Browse files Browse the repository at this point in the history
This reverts commit 7304e86.
Blocked by TypeStrong/typedoc#2589.
  • Loading branch information
personalizedrefrigerator committed Jun 11, 2024
1 parent 7304e86 commit a7144cd
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 25 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
"lerna": "8.1.2",
"lint-staged": "13.2.3",
"ts-jest": "29.1.2",
"typedoc": "0.25.13",
"typedoc": "0.25.8",
"typescript": "5.4.5"
},
"packageManager": "yarn@4.2.2"
Expand Down
2 changes: 1 addition & 1 deletion packages/typedoc-extensions/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
},
"dependencies": {
"katex": "0.16.10",
"react": "18.3.1",
"react": "18.2.0",
"typescript": "5.4.5"
},
"peerDependencies": {
Expand Down
15 changes: 5 additions & 10 deletions packages/typedoc-extensions/src/browser/browser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -65,20 +65,15 @@ const navigateBasedOnURL = () => {
}
};

const onDomContentLoaded = () => {
window.addEventListener('DOMContentLoaded', () => {
fixImageURLs();
replaceInternalPackageToPackageLinks();
navigateBasedOnURL();
initRunnableElements();
};
});

if (document.readyState === 'loading') {
window.addEventListener('DOMContentLoaded', () => {
onDomContentLoaded();
});
} else {
onDomContentLoaded();
}
window.addEventListener('load', () => {
initRunnableElements();
});

(window as any).navigateTo = (packageName: string, _exportName: string) => {
location.replace(join(basePath, packageName.replace(/[^a-zA-Z_0-9]/g, '_') + '.html'));
Expand Down
3 changes: 1 addition & 2 deletions packages/typedoc-extensions/src/loadRendererHooks.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -38,13 +38,12 @@ const loadRendererHooks = (renderer: Renderer) => {
window.process ??= { versions: {} };
`;

// Note: The browser extension script **must** be marked as defer. If it isn't, it breaks TypeDoc >= 0.25.9.
return (
<>
<script>
<JSX.Raw html={pageVariables}/>
</script>
<script defer src={event.relativeURL('assets/js-draw-typedoc-extension--browser.js')}></script>
<script src={event.relativeURL('assets/js-draw-typedoc-extension--browser.js')}></script>
</>
);
});
Expand Down
22 changes: 11 additions & 11 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1078,7 +1078,7 @@ __metadata:
lerna: "npm:8.1.2"
lint-staged: "npm:13.2.3"
ts-jest: "npm:29.1.2"
typedoc: "npm:0.25.13"
typedoc: "npm:0.25.8"
typescript: "npm:5.4.5"
languageName: unknown
linkType: soft
Expand Down Expand Up @@ -1109,7 +1109,7 @@ __metadata:
codemirror: "npm:6.0.1"
js-draw: "npm:^1.20.3"
katex: "npm:0.16.10"
react: "npm:18.3.1"
react: "npm:18.2.0"
typescript: "npm:5.4.5"
peerDependencies:
typedoc: 0.25.x
Expand Down Expand Up @@ -8064,12 +8064,12 @@ __metadata:
languageName: node
linkType: hard

"react@npm:18.3.1":
version: 18.3.1
resolution: "react@npm:18.3.1"
"react@npm:18.2.0":
version: 18.2.0
resolution: "react@npm:18.2.0"
dependencies:
loose-envify: "npm:^1.1.0"
checksum: 10c0/283e8c5efcf37802c9d1ce767f302dd569dd97a70d9bb8c7be79a789b9902451e0d16334b05d73299b20f048cbc3c7d288bbbde10b701fa194e2089c237dbea3
checksum: 10c0/b562d9b569b0cb315e44b48099f7712283d93df36b19a39a67c254c6686479d3980b7f013dc931f4a5a3ae7645eae6386b4aa5eea933baa54ecd0f9acb0902b8
languageName: node
linkType: hard

Expand Down Expand Up @@ -9435,19 +9435,19 @@ __metadata:
languageName: node
linkType: hard

"typedoc@npm:0.25.13":
version: 0.25.13
resolution: "typedoc@npm:0.25.13"
"typedoc@npm:0.25.8":
version: 0.25.8
resolution: "typedoc@npm:0.25.8"
dependencies:
lunr: "npm:^2.3.9"
marked: "npm:^4.3.0"
minimatch: "npm:^9.0.3"
shiki: "npm:^0.14.7"
peerDependencies:
typescript: 4.6.x || 4.7.x || 4.8.x || 4.9.x || 5.0.x || 5.1.x || 5.2.x || 5.3.x || 5.4.x
typescript: 4.6.x || 4.7.x || 4.8.x || 4.9.x || 5.0.x || 5.1.x || 5.2.x || 5.3.x
bin:
typedoc: bin/typedoc
checksum: 10c0/13878e6a9fc2b65d65e3b514efa11b43bdfd57149861cefc4a969ec213f4bc4b36ee9239d0b654ae18bcbbd5174206d409383f9000b7bdea22da1945f7ac91de
checksum: 10c0/f1adb64bd124a04da57227bdd7ec367a38e17b59e33b1acfaf04da560efc6318b0f7a0dfee85b90671b5e81e1e6dca6ca0d7157c10774c7a1a1f0931e8b30099
languageName: node
linkType: hard

Expand Down

0 comments on commit a7144cd

Please sign in to comment.