diff --git a/apify-docs-theme/src/theme/SearchBar/index.js b/apify-docs-theme/src/theme/SearchBar/index.js index 8353369618..1c30dc7ed1 100644 --- a/apify-docs-theme/src/theme/SearchBar/index.js +++ b/apify-docs-theme/src/theme/SearchBar/index.js @@ -129,10 +129,17 @@ export default function SearchBar({ onClick }) { organizationDisplayName: 'Apify', primaryBrandColor: '#FF9013', transformSource: (source) => { + function getTabForSource(src) { + if (src.url.includes('help.apify.com')) { + return 'Help'; + } + return 'Docs'; + } + if (source.contentType === 'documentation') { return { ...source, - tabs: [...(source.tabs || []), 'Docs'], + tabs: [...(source.tabs || []), getTabForSource(source)], }; } return source;