@apify/docs-theme 1.0.236 → 1.0.237

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@apify/docs-theme",
3
- "version": "1.0.236",
3
+ "version": "1.0.237",
4
4
  "description": "",
5
5
  "main": "./src/index.js",
6
6
  "files": [
@@ -12,9 +12,16 @@ export default function LayoutWrapper(props) {
12
12
  const baseUrl = useBaseUrl('/');
13
13
  const { pathname } = useLocation();
14
14
  const currentPath = pathname.replace(new RegExp(`^${baseUrl}`), '').trim();
15
- const allDocsData = useAllDocsData();
16
- const isVersionedPage = Object.values(allDocsData).some(
17
- (pluginData) => pluginData.versions.some((version) => !version.isLast && pathname.startsWith(version.path)),
15
+ const docsPluginData = useAllDocsData();
16
+ const typedocPluginData = usePluginData('docusaurus-plugin-typedoc-api') ?? {};
17
+
18
+ const allPluginData = {
19
+ ...docsPluginData,
20
+ 'typedoc-plugin-default': typedocPluginData,
21
+ };
22
+
23
+ const isVersionedPage = Object.values(allPluginData).some(
24
+ (pluginData) => pluginData.versions?.some((version) => !version.isLast && pathname.startsWith(version.path)),
18
25
  );
19
26
 
20
27
  const shouldRenderAlternateLink = currentPath && currentPath !== '404' && !isVersionedPage;