docs: add line highlight validation (#14380)
* docs: add line highlight validation * add to all projects * fixes * fixes * fix * fixes
This commit is contained in:
@@ -161,8 +161,6 @@ To add a new address for the customer, send a request to the [Add Customer Addre
|
||||
export const addHighlights = [
|
||||
["4", "useRegion", "Use the hook defined in the Region Context guide."],
|
||||
["5", "useCustomer", "Use the hook defined in the Customer Context guide."],
|
||||
["29"], ["30"], ["31"], ["32"], ["33"], ["34"], ["35"], ["36"], ["37"],
|
||||
["38"], ["39"], ["40"], ["41"], ["42"], ["43"],
|
||||
]
|
||||
|
||||
```tsx highlights={addHighlights} collapsibleLines="46-117" expandButtonLabel="Show form"
|
||||
@@ -334,8 +332,6 @@ export const editHighlights = [
|
||||
["4", "useRegion", "Use the hook defined in the Region Context guide."],
|
||||
["5", "useCustomer", "Use the hook defined in the Customer Context guide."],
|
||||
["18", "address", "Retrieve the address from the customer's `addresses` property."],
|
||||
["59"], ["60"], ["61"], ["62"], ["63"], ["64"], ["65"], ["66"], ["67"],
|
||||
["68"], ["69"], ["70"], ["71"], ["72"], ["73"],
|
||||
]
|
||||
|
||||
```tsx highlights={editHighlights} collapsibleLines="76-147" expandButtonLabel="Show form"
|
||||
|
||||
@@ -292,7 +292,7 @@ curl '{backend_url}/store/products' \
|
||||
</CodeTab>
|
||||
<CodeTab label="Fetch" value="fetch">
|
||||
|
||||
```ts highlights={["2", "", "Passes the cookie session ID in your request."]}
|
||||
```ts highlights={[["2", "credentials", "Passes the cookie session ID in your request."]]}
|
||||
fetch(`<BACKEND_URL>/store/products`, {
|
||||
credentials: "include",
|
||||
})
|
||||
|
||||
@@ -33,7 +33,6 @@ For example:
|
||||
|
||||
export const highlights = [
|
||||
["4", "useCustomer", "Use the hook defined in the Customer Context guide."],
|
||||
["35"], ["36"], ["37"], ["38"], ["39"], ["40"], ["41"], ["42"], ["43"], ["44"],
|
||||
]
|
||||
|
||||
```tsx highlights={highlights} collapsibleLines="47-85" expandButtonLabel="Show form"
|
||||
|
||||
Reference in New Issue
Block a user