From 3c0b48dba9ffd1cd4644a0a11679ab4cb2743b9d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Ad=C3=A1mek?= Date: Tue, 14 Jan 2025 12:10:52 +0100 Subject: [PATCH] address feedback --- apify-docs-theme/static/js/custom.js | 2 +- src/theme/DocSidebarItem/Category/index.js | 2 +- static/robots.txt | 1 - 3 files changed, 2 insertions(+), 3 deletions(-) diff --git a/apify-docs-theme/static/js/custom.js b/apify-docs-theme/static/js/custom.js index 10723945f..8cc567067 100644 --- a/apify-docs-theme/static/js/custom.js +++ b/apify-docs-theme/static/js/custom.js @@ -78,7 +78,7 @@ function scrollOpenApiSidebarItemIntoView() { function redirectOpenApiDocs() { const { hash, pathname, origin } = new URL(window.location.href); - if (pathname.startsWith('/api/v2') && pathname.startsWith('/api/v2-')) { + if (!pathname.startsWith('/api/v2') || pathname.startsWith('/api/v2-')) { return; } diff --git a/src/theme/DocSidebarItem/Category/index.js b/src/theme/DocSidebarItem/Category/index.js index 025ab30be..ff3d37ddc 100644 --- a/src/theme/DocSidebarItem/Category/index.js +++ b/src/theme/DocSidebarItem/Category/index.js @@ -137,7 +137,7 @@ export default function DocSidebarItemCategory({ item, onItemClick, activePath, } } - console.log(item); + // console.log('sidebar category', item); return (