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
@@ -37,7 +37,7 @@ To subscribe to an event, you must create a [subscriber](../../../development/ev
Create the file `src/subscribers/invite-created.ts` with the following content:
```ts title=src/subscribers/invite-created.ts
```ts title="src/subscribers/invite-created.ts"
import {
type SubscriberConfig,
type SubscriberArgs,
@@ -78,7 +78,7 @@ In this method, you should typically send an email to the user. You can place an
For example, you can implement this subscriber to send emails using SendGrid:
```ts title=src/subscribers/invite.ts
```ts title="src/subscribers/invite.ts"
import {
type SubscriberConfig,
type SubscriberArgs,
@@ -123,7 +123,7 @@ If the notification provider youre using already implements the logic to hand
For example:
```ts title=src/loaders/customer-confirmation.ts
```ts title="src/loaders/customer-confirmation.ts"
import {
MedusaContainer,
NotificationService,