Skip to content

Commit

Permalink
Merge pull request #259 from commerce-docs/ds_codeblock-lang
Browse files Browse the repository at this point in the history
Set matching languages in CodeBlock
  • Loading branch information
dshevtsov committed Aug 19, 2024
2 parents 586ba3c + 650a2b7 commit 42dd225
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/pages/app-development/examples.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ API Mesh has several features which allow for further extensibility:

- `beforeAll` [Hooks](https://developer.adobe.com/graphql-mesh-gateway/gateway/hooks/) - Allow you to insert a function before the query takes place, which can be helpful for use cases like authenticating or checking for a header before making a request.

- [Custom Resolvers](https://developer.adobe.com/graphql-mesh-gateway/gateway/extending-unified-schema/) - Allow you to upload a resolver to your mesh that uses JavaScript to modify data, insert custom logic, and return custom computed data. [This example](https://developer.adobe.com/graphql-mesh-gateway/gateway/extending-unified-schema/#programmatic-additionalresolvers) uses a discounts API to apply discounts to your products.
- [Custom Resolvers](https://developer.adobe.com/graphql-mesh-gateway/mesh/advanced/extend/) - Allow you to upload a resolver to your mesh that uses JavaScript to modify data, insert custom logic, and return custom computed data. [This example](https://developer.adobe.com/graphql-mesh-gateway/mesh/advanced/extend/resolvers/programmatic-resolvers/#programmatic-additionalresolvers) uses a discounts API to apply discounts to your products.

- [Transforms](https://developer.adobe.com/graphql-mesh-gateway/gateway/transforms/) - Allow you to modify the structure of an API's data without modifying the source itself.

Expand Down
6 changes: 3 additions & 3 deletions src/pages/starter-kit/events.md
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ When it receives an event that it does not know how to route, it is expected to

By default, `consumer` actions have the following response:

<CodeBlock slots="heading, code" repeat="2" languages="JSON, JSON" />
<CodeBlock slots="heading, code" repeat="2" languages="javascript, javascript" />

### Success

Expand Down Expand Up @@ -166,7 +166,7 @@ The response returned by an event handler action includes a `statusCode` attribu

By default, `event handler` actions have the following response:

<CodeBlock slots="heading, code" repeat="2" languages="JSON, JSON" />
<CodeBlock slots="heading, code" repeat="2" languages="javascript, javascript" />

### Success

Expand Down Expand Up @@ -208,7 +208,7 @@ aio runtime action get ingestion/webhook --url

By default, `event ingestion` actions have the following response:

<CodeBlock slots="heading, code" repeat="2" languages="JSON, JSON" />
<CodeBlock slots="heading, code" repeat="2" languages="javascript, javascript" />

### Success

Expand Down
2 changes: 1 addition & 1 deletion src/pages/starter-kit/receive-data.md
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ The interaction with the Adobe Commerce API is defined in the `sendData` functio

Parameters from the environment can be accessed from `params`. Add the necessary parameters in the `actions/<object>/external/actions.config.yaml` under `created -> inputs`, `updated -> inputs`, or `deleted -> inputs` as follows:

<CodeBlock slots="heading, code" repeat="3" languages="JSON, JSON, JSON" />
<CodeBlock slots="heading, code" repeat="3" languages="yaml, yaml, yaml" />

#### create

Expand Down
2 changes: 1 addition & 1 deletion src/pages/starter-kit/webhooks.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ aio runtime action get webhook/check-stock --url

By default, `synchronous webhook` actions have the following response:

<CodeBlock slots="heading, code" repeat="2" languages="JSON, JSON" />
<CodeBlock slots="heading, code" repeat="2" languages="javascript, javascript" />

### Success

Expand Down

0 comments on commit 42dd225

Please sign in to comment.