docs: update docusaurus to v3 (#5625)
* update dependencies * update onboarding mdx * fixes for mdx issues * fixes for mdx compatibility * resolve mdx errors * fixes in reference * fix check errors * revert change in vale action * fix node version in action * fix summary in markdown
This commit is contained in:
@@ -10,7 +10,7 @@ import ParameterTypes from "@site/src/components/ParameterTypes"
|
||||
|
||||
### calculate
|
||||
|
||||
**calculate**(`items`, `taxLines`, `calculationContext`): `Promise`<`number`\>
|
||||
`**calculate**(items, taxLines, calculationContext): Promise<number>`
|
||||
|
||||
Calculates the tax amount for a given set of line items under applicable
|
||||
tax conditions and calculation contexts.
|
||||
@@ -20,7 +20,7 @@ tax conditions and calculation contexts.
|
||||
<ParameterTypes parameters={[
|
||||
{
|
||||
"name": "items",
|
||||
"type": "[`LineItem`](../classes/LineItem.mdx)[]",
|
||||
"type": "[LineItem](../classes/LineItem.mdx)[]",
|
||||
"description": "the line items to calculate the tax total for",
|
||||
"optional": false,
|
||||
"defaultValue": "",
|
||||
@@ -29,7 +29,7 @@ tax conditions and calculation contexts.
|
||||
},
|
||||
{
|
||||
"name": "taxLines",
|
||||
"type": "([`LineItemTaxLine`](../classes/LineItemTaxLine.mdx) \\| [`ShippingMethodTaxLine`](../classes/ShippingMethodTaxLine.mdx))[]",
|
||||
"type": "([LineItemTaxLine](../classes/LineItemTaxLine.mdx) \\| [ShippingMethodTaxLine](../classes/ShippingMethodTaxLine.mdx))[]",
|
||||
"description": "the tax lines that applies to the calculation",
|
||||
"optional": false,
|
||||
"defaultValue": "",
|
||||
@@ -38,7 +38,7 @@ tax conditions and calculation contexts.
|
||||
},
|
||||
{
|
||||
"name": "calculationContext",
|
||||
"type": "[`TaxCalculationContext`](../types/TaxCalculationContext.mdx)",
|
||||
"type": "[TaxCalculationContext](../types/TaxCalculationContext.mdx)",
|
||||
"description": "other details relevant for the calculation",
|
||||
"optional": false,
|
||||
"defaultValue": "",
|
||||
@@ -49,12 +49,12 @@ tax conditions and calculation contexts.
|
||||
|
||||
#### Returns
|
||||
|
||||
`Promise`<`number`\>
|
||||
Promise<number>
|
||||
|
||||
<ParameterTypes parameters={[
|
||||
{
|
||||
"name": "Promise",
|
||||
"type": "`Promise`<`number`\\>",
|
||||
"type": "Promise<number>",
|
||||
"optional": false,
|
||||
"defaultValue": "",
|
||||
"description": "the tax total",
|
||||
|
||||
Reference in New Issue
Block a user