@apify/docs-theme 1.0.196 → 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.196",
3
+ "version": "1.0.197",
4
4
  "description": "",
5
5
  "main": "./src/index.js",
6
6
  "files": [
@@ -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;