Skip to content

Commit db53bad

Browse files
TC-MObarjin
andauthored
docs: make inkeep and kapa display docs first when using search (#1780)
Co-authored-by: Jindřich Bär <[email protected]>
1 parent 6c08682 commit db53bad

File tree

2 files changed

+3
-8
lines changed

2 files changed

+3
-8
lines changed

apify-docs-theme/src/config.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -323,6 +323,7 @@ const scripts = [
323323
'data-project-color': '#666666',
324324
'data-button-hide': 'true',
325325
'data-search-mode-enabled': 'true',
326+
'data-search-include-source-names': '["Docs"]',
326327
'data-project-logo': 'https://apify.com/img/apify-logo/logomark-32x32.svg',
327328
'data-modal-example-questions': 'How to run an Actor?,Create a version of an Actor?',
328329
'data-modal-override-open-id': 'ask-ai-input',

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

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -155,15 +155,9 @@ export default function SearchBar({ onClick }) {
155155
},
156156
searchSettings: {
157157
tabs: [
158-
'All',
159-
'Docs',
160-
'Publications',
161-
'PDFs',
158+
['Docs', { isAlwaysVisible: true }],
162159
'GitHub',
163-
'Forums',
164-
'Discord',
165-
'Slack',
166-
'StackOverflow',
160+
'All',
167161
],
168162
},
169163
aiChatSettings: {

0 commit comments

Comments
 (0)