Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 9 additions & 1 deletion apify-docs-theme/src/theme/SearchBar/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -129,10 +129,17 @@
organizationDisplayName: 'Apify',
primaryBrandColor: '#FF9013',
transformSource: (source) => {
function getTabForSource(source) {

Check failure on line 132 in apify-docs-theme/src/theme/SearchBar/index.js

View workflow job for this annotation

GitHub Actions / Lint app code

'source' is already declared in the upper scope on line 131 column 39
if (source.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;
Expand All @@ -157,6 +164,7 @@
tabs: [
'All',
'Docs',
'Help',
'Publications',
'PDFs',
'GitHub',
Expand Down
Loading