@apify/docs-theme 1.0.176 → 1.0.178
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 +1 -1
- package/src/config.js +4 -1
- package/src/theme/SearchBar/index.js +1 -1
package/package.json
CHANGED
package/src/config.js
CHANGED
|
@@ -10,6 +10,8 @@ if (process.env.LOCALHOST) {
|
|
|
10
10
|
absoluteUrl = process.env.APIFY_DOCS_ABSOLUTE_URL;
|
|
11
11
|
}
|
|
12
12
|
|
|
13
|
+
const noIndex = ['true', '1'].includes(process.env.NO_INDEX ?? '');
|
|
14
|
+
|
|
13
15
|
const themeConfig = {
|
|
14
16
|
docs: {
|
|
15
17
|
versionPersistence: 'localStorage',
|
|
@@ -271,7 +273,7 @@ const themeConfig = {
|
|
|
271
273
|
algolia: {
|
|
272
274
|
appId: 'N8EOCSBQGH',
|
|
273
275
|
apiKey: 'e97714a64e2b4b8b8fe0b01cd8592870', // search only (public) API key
|
|
274
|
-
indexName: '
|
|
276
|
+
indexName: 'apify_sdk_v2',
|
|
275
277
|
algoliaOptions: {
|
|
276
278
|
facetFilters: ['version:VERSION'],
|
|
277
279
|
},
|
|
@@ -313,4 +315,5 @@ module.exports = {
|
|
|
313
315
|
themeConfig,
|
|
314
316
|
plugins,
|
|
315
317
|
absoluteUrl,
|
|
318
|
+
noIndex,
|
|
316
319
|
};
|
|
@@ -59,7 +59,7 @@ export default function SearchBar() {
|
|
|
59
59
|
<BrowserOnly>
|
|
60
60
|
{() => <ApifySearch
|
|
61
61
|
algoliaAppId={siteConfig.themeConfig.algolia.appId}
|
|
62
|
-
algoliaIndexName='
|
|
62
|
+
algoliaIndexName='apify_sdk_v2'
|
|
63
63
|
algoliaKey={siteConfig.themeConfig.algolia.apiKey}
|
|
64
64
|
filters={`version:${getVersion()}`}
|
|
65
65
|
navigate={navigate}
|