@apify/docs-theme 1.0.195 → 1.0.197

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@apify/docs-theme",
3
- "version": "1.0.195",
3
+ "version": "1.0.197",
4
4
  "description": "",
5
5
  "main": "./src/index.js",
6
6
  "files": [
package/src/config.js CHANGED
@@ -323,6 +323,7 @@ const scripts = [
323
323
  'data-project-color': '#666666',
324
324
  'data-button-hide': 'true',
325
325
  'data-search-mode-enabled': 'true',
326
+ 'data-search-include-source-names': '["Docs"]',
326
327
  'data-project-logo': 'https://apify.com/img/apify-logo/logomark-32x32.svg',
327
328
  'data-modal-example-questions': 'How to run an Actor?,Create a version of an Actor?',
328
329
  'data-modal-override-open-id': 'ask-ai-input',
@@ -129,10 +129,17 @@ export default function SearchBar({ onClick }) {
129
129
  organizationDisplayName: 'Apify',
130
130
  primaryBrandColor: '#FF9013',
131
131
  transformSource: (source) => {
132
+ function getTabForSource(src) {
133
+ if (src.url.includes('help.apify.com')) {
134
+ return 'Help';
135
+ }
136
+ return 'Docs';
137
+ }
138
+
132
139
  if (source.contentType === 'documentation') {
133
140
  return {
134
141
  ...source,
135
- tabs: [...(source.tabs || []), 'Docs'],
142
+ tabs: [...(source.tabs || []), getTabForSource(source)],
136
143
  };
137
144
  }
138
145
  return source;
@@ -155,15 +162,9 @@ export default function SearchBar({ onClick }) {
155
162
  },
156
163
  searchSettings: {
157
164
  tabs: [
158
- 'All',
159
- 'Docs',
160
- 'Publications',
161
- 'PDFs',
165
+ ['Docs', { isAlwaysVisible: true }],
162
166
  'GitHub',
163
- 'Forums',
164
- 'Discord',
165
- 'Slack',
166
- 'StackOverflow',
167
+ 'All',
167
168
  ],
168
169
  },
169
170
  aiChatSettings: {