From da0d5c38c9233ef240e4afc456539277d298e05b Mon Sep 17 00:00:00 2001 From: Tom Frenken <54979414+tomfrenken@users.noreply.github.com> Date: Wed, 13 Apr 2022 14:59:25 +0200 Subject: [PATCH] fix: DocSearch (#773) * update api-key * run lint * remove env * add .env to gitignore --- .gitignore | 1 + docs/js/features/odata/generate-odata-client.mdx | 4 ++-- docs/js/release-notes.mdx | 3 ++- docusaurus.config.js | 4 ++-- 4 files changed, 7 insertions(+), 5 deletions(-) diff --git a/.gitignore b/.gitignore index c89bd09d27e..24c550714b7 100644 --- a/.gitignore +++ b/.gitignore @@ -25,3 +25,4 @@ yarn-error.log* *.iml .idea/ +.env diff --git a/docs/js/features/odata/generate-odata-client.mdx b/docs/js/features/odata/generate-odata-client.mdx index 39f223860ea..85cef84d656 100644 --- a/docs/js/features/odata/generate-odata-client.mdx +++ b/docs/js/features/odata/generate-odata-client.mdx @@ -57,8 +57,8 @@ This file is used for generation and contains a mapping from the original file n - `directoryName` - the name of the subdirectory the client code will be generated into. - `servicePath` - the URL path to be prepended before every request. - By default, this is read from the EDMX file, if available. - Otherwise, the value will be set as `VALUE_IS_UNDEFINED`, and an error will be logged. + By default, this is read from the EDMX file, if available. + Otherwise, the value will be set as `VALUE_IS_UNDEFINED`, and an error will be logged. In this case, you can specify `servicePath` in the `serviceMapping.json` manually and re-generate again. - `npmPackageName` - the name of the npm package, if a `package.json` is generated. This information is optional. diff --git a/docs/js/release-notes.mdx b/docs/js/release-notes.mdx index bab22ec8e02..ec143f5100f 100644 --- a/docs/js/release-notes.mdx +++ b/docs/js/release-notes.mdx @@ -52,12 +52,13 @@ To easily search for services and get typed client library for them, use our [AP ### Fixed Issues --> + ## 2.2.0 [Core Modules] - Apr 6, 2022 ### Compatibility Notes - [eslint-config] Replace `valid-jsdoc` with `eslint-plugin-jsdoc` plugin for checking JSDoc comments, since the `valid-jsdoc` rule is deprecated in ESLint. -To stop your project from using a specific rule, turn it off by setting the rule ID to `off` under the `rules` key inside your configuration file. + To stop your project from using a specific rule, turn it off by setting the rule ID to `off` under the `rules` key inside your configuration file. - [generator] Stop exporting service classes (e.g., `BusinessPartnerService`) from generated clients, use `businessPartnerService()` instead. - [generator] Stop exporting API classes (e.g., `BusinessPartnerAPI`) from generated clients, use `businessPartnerService().businessPartnerApi` instead. diff --git a/docusaurus.config.js b/docusaurus.config.js index 967193c8f16..9e0a02e8512 100644 --- a/docusaurus.config.js +++ b/docusaurus.config.js @@ -33,9 +33,9 @@ module.exports = { darkTheme: require('prism-react-renderer/themes/dracula') }, algolia: { - apiKey: '84d46c71e9f2445436400effad7c4e1b', + apiKey: '441c57554e5a0ca9338cc9f047fb10c8', indexName: 'sap_cloud-sdk', - // appId: 'app-id', // Optional, if you run the DocSearch crawler on your own + appId: 'E4A268JVO0', algoliaOptions: {} // Optional, if provided by Algolia }, // ***************************************************************