docs: added code blocks without headers (#2560)

This commit is contained in:
Shahed Nasser
2022-11-07 17:36:51 +02:00
committed by GitHub
parent bbf4039147
commit c0639ef708
35 changed files with 336 additions and 98 deletions

View File

@@ -61,7 +61,7 @@ const plugins = [
newsletter_list_id: process.env.MAILCHIMP_NEWSLETTER_LIST_ID
}
}
};
];
```
## Test it Out
@@ -72,7 +72,7 @@ This plugin adds a new `POST` endpoint at `/mailchimp/subscribe`. This endpoint
Try sending a `POST` request to `/mailchimp/subscribe` with the following JSON body:
```json
```json noHeader
{
"email": "example@gmail.com"
}
@@ -90,7 +90,7 @@ If you check your Mailchimp dashboard, you should find the email added to your A
Heres an example of sending additional data with the subscription:
```json
```json noHeader
{
"email": "example@gmail.com",
"data": {

View File

@@ -79,7 +79,7 @@ You dont have to create a template for every type in the reference. You can s
<details>
<summary>Example Data</summary>
```jsx
```json noHeader
{
"beforeInsert": [Function],
"billing_address": null,
@@ -306,7 +306,7 @@ You dont have to create a template for every type in the reference. You can s
<details>
<summary>Example Data</summary>
```jsx
```json noHeader
{
"beforeInsert": [Function],
"billing_address": null,
@@ -537,7 +537,7 @@ You dont have to create a template for every type in the reference. You can s
<details>
<summary>Example Data</summary>
```jsx
```json noHeader
{
"date": Any<String>,
"email": "test@testson.com",
@@ -819,7 +819,7 @@ You dont have to create a template for every type in the reference. You can s
<details>
<summary>Example Data</summary>
```jsx
```json noHeader
{
"date": Any<String>,
"email": "test@testson.com",
@@ -1261,7 +1261,7 @@ You dont have to create a template for every type in the reference. You can s
<details>
<summary>Example Data</summary>
```jsx
```json noHeader
{
"date": Any<String>,
"email": "test@testson.com",
@@ -1703,7 +1703,7 @@ You dont have to create a template for every type in the reference. You can s
<details>
<summary>Example Data</summary>
```jsx
```json noHeader
{
"claim": Object {
"canceled_at": null,
@@ -2000,7 +2000,7 @@ You dont have to create a template for every type in the reference. You can s
<details>
<summary>Example Data</summary>
```jsx
```json noHeader
{
"locale": null,
"swap": Object {
@@ -2509,7 +2509,7 @@ You dont have to create a template for every type in the reference. You can s
<details>
<summary>Example Data</summary>
```jsx
```json noHeader
Object {
"additional_total": "16.88 USD",
"date": Any<String>,
@@ -3089,7 +3089,7 @@ You dont have to create a template for every type in the reference. You can s
<details>
<summary>Example Data</summary>
```jsx
```json noHeader
{
"locale": null,
"swap": Object {
@@ -3599,7 +3599,7 @@ You dont have to create a template for every type in the reference. You can s
<details>
<summary>Example Data</summary>
```jsx
```json noHeader
Object {
"code": Any<String>,
"value": 4,
@@ -3766,7 +3766,7 @@ You dont have to create a template for every type in the reference. You can s
<details>
<summary>Example Data</summary>
```jsx
```json noHeader
Object {
"id": Any<String>,
"email": "test@testson.com",
@@ -3786,7 +3786,7 @@ You dont have to create a template for every type in the reference. You can s
<details>
<summary>Example Data</summary>
```jsx
```json noHeader
Object {
"email": "test@testson.com",
"token": Any<String>,
@@ -3803,7 +3803,7 @@ You dont have to create a template for every type in the reference. You can s
<details>
<summary>Example Data</summary>
```jsx
```json noHeader
Object {
"product": Object {
"collection_id": null,