File tree Expand file tree Collapse file tree 1 file changed +9
-1
lines changed
apify-docs-theme/src/theme/SearchBar Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Original file line number Diff line number Diff 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' ,
You can’t perform that action at this time.
0 commit comments