Skip to content

Commit 491d691

Browse files
committed
feat: add separate Help tab for help.apify.com results in Inkeep
1 parent 6c08682 commit 491d691

File tree

1 file changed

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

1 file changed

+9
-1
lines changed

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

Lines changed: 9 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(source) {
133+
if (source.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;
@@ -157,6 +164,7 @@ export default function SearchBar({ onClick }) {
157164
tabs: [
158165
'All',
159166
'Docs',
167+
'Help',
160168
'Publications',
161169
'PDFs',
162170
'GitHub',

0 commit comments

Comments
 (0)