@apify/docs-theme 1.0.236 → 1.0.238

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.238",
4
4
  "description": "",
5
5
  "main": "./src/index.js",
6
6
  "files": [
package/src/config.js CHANGED
@@ -59,7 +59,7 @@ const themeConfig = {
59
59
  },
60
60
  {
61
61
  label: 'Client for Python',
62
- href: `${absoluteUrl}/api/client/python/docs/overview`,
62
+ href: `${absoluteUrl}/api/client/python/docs`,
63
63
  target: '_self',
64
64
  rel: 'dofollow',
65
65
  },
@@ -194,7 +194,7 @@ const themeConfig = {
194
194
  },
195
195
  {
196
196
  label: 'Client for Python',
197
- href: `${absoluteUrl}/api/client/python/docs/overview`,
197
+ href: `${absoluteUrl}/api/client/python/docs`,
198
198
  target: '_self',
199
199
  rel: 'dofollow',
200
200
  },
@@ -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;