diff --git a/cds/cdl.md b/cds/cdl.md index 9487f78260..4b0dbd1957 100644 --- a/cds/cdl.md +++ b/cds/cdl.md @@ -149,6 +149,7 @@ Using directives allow to import definitions from other CDS models. As shown in ::: code-group +```cds using foo.bar.scoped.Bar from './contexts'; using foo.bar.scoped.nested from './contexts'; using foo.bar.scoped.nested as animal from './contexts'; diff --git a/guides/databases/initial-data.md b/guides/databases/initial-data.md index e7c03e04a8..3ce7308cfe 100644 --- a/guides/databases/initial-data.md +++ b/guides/databases/initial-data.md @@ -113,7 +113,7 @@ The following table describes the purpose and deployment scope of each location: ::: details Bookshop data is actually test data... Note that the initial data provided in the [_@capire/bookshop_](../../get-started/bookshop) sample is actually test data, and hence we would typically place it in the _test/data_ folder. But for simplicity, it's placed in _db/data_, also because the whole purpose of that project is to be a _sample_. -:::: +::: > [!danger] Don't let users modify productive initial data > Otherwise this [data might get overridden on SAP HANA](./hana#csv-data-gets-overridden). diff --git a/guides/integration/calesi.md b/guides/integration/calesi.md index 658e6566ed..154d6e4b5c 100644 --- a/guides/integration/calesi.md +++ b/guides/integration/calesi.md @@ -52,7 +52,6 @@ With CAP, Service integration is greatly simplified. Consumption of remote servi } }` ``` -::: The graphic below illustrates what happened here: diff --git a/guides/uis/localized-data.md b/guides/uis/localized-data.md index 15ab453d06..8c83dafb32 100644 --- a/guides/uis/localized-data.md +++ b/guides/uis/localized-data.md @@ -444,5 +444,6 @@ d2a65a27-9f2a-480f-bc38-84ee8ec5c13e,201,de,Sturmhöhe,Sturmhöhe (Originaltitel 9e1c4c81-dc90-4600-85b1-e9dd4bf12ce0,207,de,Jane Eyre,Jane Eyre. Eine Autobiographie (Originaltitel: Jane Eyre. An Autobiography)... 9be0524b-4cb9-4fc1-9dc2-d65b1c13cf53,252,de,Eleonora,Eleonora ist eine Erzählung von Edgar Allan Poe. Sie wurde 1841... ``` +::: [Learn more about Enabling Draft for Localized Data.](./fiori#draft-for-localized-data){.learn-more} diff --git a/java/cqn-services/remote-services.md b/java/cqn-services/remote-services.md index 1388ed4234..a81e45cd19 100644 --- a/java/cqn-services/remote-services.md +++ b/java/cqn-services/remote-services.md @@ -228,6 +228,7 @@ cds: name: my-ias-destination onBehalfOf: systemUser ``` +::: The following options are available: @@ -527,7 +528,7 @@ Destination destination = DestinationAccessor.getDestination("" HttpClient httpClient = HttpClientAccessor.getHttpClient(destination); ... ``` -:::: +::: ### Programmatic Destinations { #programmatic-destinations } diff --git a/java/migration.md b/java/migration.md index c047ae2373..232e051675 100644 --- a/java/migration.md +++ b/java/migration.md @@ -371,7 +371,7 @@ If you have customized the security configuration, you need to adapt it to the n Though CAP does not support multiple XSUAA bindings, it was possible in previous versions to extend the standard security configuration to work with multiple bindings. If you require this, you need to set `cds.security.xsuaa.allowMultipleBinding` to `true` so that all XSUAA bindings are available in custom spring auto-configurations. Note: CAP Java still does not process multiple bindings and requires a dedicated spring configuration. In general, applications should refrain from configuring several XSUAA bindings. [Learn more about the security configuration.](./security#xsuaa-ias){.learn-more} -[Learn more about migration to SAP´s `spring-security` library.](https://github.com/SAP/cloud-security-services-integration-library/blob/main/spring-security/Migration_SpringXsuaaProjects.md) +[Learn more about migration to SAP´s `spring-security` library.](https://github.com/SAP/cloud-security-services-integration-library/blob/main/spring-security/Migration_SpringXsuaaProjects.md){.learn-more} ### Proof-Of-Possession enforced for IAS-based authentication diff --git a/java/working-with-cql/query-api.md b/java/working-with-cql/query-api.md index 0e987657a4..944627e6e3 100644 --- a/java/working-with-cql/query-api.md +++ b/java/working-with-cql/query-api.md @@ -860,7 +860,7 @@ Aliases of columns have precedence over the element names when `orderBy` is eval ::: warning Aliases may shadow elements names. To avoid shadowing, don't use element names as aliases. -:::: +::: On SAP HANA, the user's locale is passed to the database, resulting in locale-specific sorting of string-based columns. @@ -2137,7 +2137,7 @@ Select.from("bookshop.Books").where(t -> t.get("title").matchesPattern("CAP")); ::: tip As a general rule, consider regular expressions as a last resort. They are powerful, but also complex and hard to read. For simple string operations, prefer other simpler functions like `contains`. -:::: +::: In the following example, the title of the book must start with the letter `C` and end with the letter `e` and contains any number of letters in between: diff --git a/node.js/authentication.md b/node.js/authentication.md index 8271a0b3f6..cc73c26931 100644 --- a/node.js/authentication.md +++ b/node.js/authentication.md @@ -448,7 +448,7 @@ Both caches are enabled by default. The _signature cache_ can be configured or deactivated via cds.requires.auth.config (which is passed through to `@sap/xssec`). -[Learn more about signature cache and its configuration.](https://www.npmjs.com/package/@sap/xssec#signature-cache){}.learn-more} +[Learn more about signature cache and its configuration.](https://www.npmjs.com/package/@sap/xssec#signature-cache){.learn-more} The _token decode cache_, on the other hand, can only be configured programmatically during bootstrapping, for example in a [custom `server.js`](cds-server#custom-server-js) file, as follows: ```js diff --git a/tools/apis/cds-add.md b/tools/apis/cds-add.md index 68515d73c8..d51a7d5326 100644 --- a/tools/apis/cds-add.md +++ b/tools/apis/cds-add.md @@ -90,6 +90,7 @@ Starting with 1, register the plugin: ```js [cds-plugin.js] cds.add?.register?.('postgres', require('./lib/add')) // ...or inline: cds.add?.register?.('postgres', class extends cds.add.Plugin {}) +``` ::: In our example, we'll create a file _lib/add.js_: