docs: fix code block titles (#5733)

* docs: fix code block titles

* remove console

* fix build error
This commit is contained in:
Shahed Nasser
2023-11-27 16:08:10 +00:00
committed by GitHub
parent de8f748674
commit 547b16ead5
110 changed files with 483 additions and 456 deletions
@@ -32,7 +32,7 @@ Fulfillment providers are loaded and installed on the backend startup.
The first step is to create a JavaScript or TypeScript file under `src/services`. For example, create the file `src/services/my-fulfillment.ts` with the following content:
```ts title=src/services/my-fulfillment.ts
```ts title="src/services/my-fulfillment.ts"
import {
AbstractFulfillmentService,
Cart,
@@ -60,7 +60,7 @@ The first step to create a payment processor is to create a JavaScript or TypeSc
For example, create the file `src/services/my-payment-processor.ts` with the following content:
```ts title=src/services/my-payment-processor.ts
```ts title="src/services/my-payment-processor.ts"
import {
AbstractPaymentProcessor,
PaymentProcessorContext,
@@ -19,7 +19,7 @@ This guide only explains how to override the cart completion strategy. Its hi
Create a TypeScript or JavaScript file in `src/strategies` of your Medusa backend project with a class that extends the `AbstractCartCompletionStrategy` class:
```ts title=src/strategies/cart-completion.ts
```ts title="src/strategies/cart-completion.ts"
import {
AbstractCartCompletionStrategy,
CartCompletionResponse,
@@ -52,7 +52,7 @@ You can use a constructor to access services and resources registered in the dep
<!-- eslint-disable prefer-rest-params -->
```ts title=src/strategies/cart-completion.ts
```ts title="src/strategies/cart-completion.ts"
// ...
import { IdempotencyKeyService } from "@medusajs/medusa"