Skip to content

Commit d840264

Browse files
authored
feat: add separate Help tab for help.apify.com results in Inkeep (#1792)
Help articles are not intermingled with Docs anymore (and are only accessible through the `All` tab).
1 parent 59dc057 commit d840264

File tree

1 file changed

+8
-1
lines changed
  • apify-docs-theme/src/theme/SearchBar

1 file changed

+8
-1
lines changed

apify-docs-theme/src/theme/SearchBar/index.js

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,10 +129,17 @@ export default function SearchBar({ onClick }) {
129129
organizationDisplayName: 'Apify',
130130
primaryBrandColor: '#FF9013',
131131
transformSource: (source) => {
132+
function getTabForSource(src) {
133+
if (src.url.includes('help.apify.com')) {
134+
return 'Help';
135+
}
136+
return 'Docs';
137+
}
138+
132139
if (source.contentType === 'documentation') {
133140
return {
134141
...source,
135-
tabs: [...(source.tabs || []), 'Docs'],
142+
tabs: [...(source.tabs || []), getTabForSource(source)],
136143
};
137144
}
138145
return source;

0 commit comments

Comments
 (0)