docs: prep for v2 documentation (#6710)
This PR includes documentation that preps for v2 docs (but doesn't introduce new docs). _Note: The number of file changes in the PR is due to find-and-replace within the `references` which is unavoidable. Let me know if I should move it to another PR._ ## Changes - Change Medusa version in base OAS used for v2. - Fix to docblock generator related to not catching all path parameters. - Added typedoc plugin that generates ER Diagrams, which will be used specifically for data model references in commerce modules. - Changed OAS tool to output references in `www/apps/api-reference/specs-v2` directory when the `--v2` option is used. - Added a version switcher to the API reference to switch between V1 and V2. This switcher is enabled by an environment variable, so it won't be visible/usable at the moment. - Upgraded docusaurus to v3.0.1 - Added new Vale rules to ensure correct spelling of Medusa Admin and module names. - Added new components to the `docs-ui` package that will be used in future documentation changes.
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
import ParameterTypes from "@site/src/components/ParameterTypes"
|
||||
import TypeList from "@site/src/components/TypeList"
|
||||
|
||||
# entities
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import ParameterTypes from "@site/src/components/ParameterTypes"
|
||||
import TypeList from "@site/src/components/TypeList"
|
||||
|
||||
# file
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import ParameterTypes from "@site/src/components/ParameterTypes"
|
||||
import TypeList from "@site/src/components/TypeList"
|
||||
|
||||
# fulfillment
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import ParameterTypes from "@site/src/components/ParameterTypes"
|
||||
import TypeList from "@site/src/components/TypeList"
|
||||
|
||||
# inventory
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import ParameterTypes from "@site/src/components/ParameterTypes"
|
||||
import TypeList from "@site/src/components/TypeList"
|
||||
|
||||
# js-client
|
||||
|
||||
|
||||
File diff suppressed because one or more lines are too long
@@ -1,4 +1,4 @@
|
||||
import ParameterTypes from "@site/src/components/ParameterTypes"
|
||||
import TypeList from "@site/src/components/TypeList"
|
||||
|
||||
# medusa-config
|
||||
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
displayed_sidebar: medusaReactSidebar
|
||||
---
|
||||
|
||||
import ParameterTypes from "@site/src/components/ParameterTypes"
|
||||
import TypeList from "@site/src/components/TypeList"
|
||||
|
||||
# medusa-react
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import ParameterTypes from "@site/src/components/ParameterTypes"
|
||||
import TypeList from "@site/src/components/TypeList"
|
||||
|
||||
# notification
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import ParameterTypes from "@site/src/components/ParameterTypes"
|
||||
import TypeList from "@site/src/components/TypeList"
|
||||
|
||||
# payment
|
||||
|
||||
@@ -21,8 +21,8 @@ ___
|
||||
|
||||
#### Parameters
|
||||
|
||||
<ParameterTypes parameters={[{"name":"obj","type":"`any`","description":"","optional":false,"defaultValue":"","expandable":false,"children":[]}]} sectionTitle="isPaymentProcessorError"/>
|
||||
<TypeList types={[{"name":"obj","type":"`any`","description":"","optional":false,"defaultValue":"","expandable":false,"children":[]}]} sectionTitle="isPaymentProcessorError"/>
|
||||
|
||||
#### Returns
|
||||
|
||||
<ParameterTypes parameters={[{"name":"obj","type":"obj is PaymentProcessorError","optional":false,"defaultValue":"","description":"","expandable":false,"children":[]}]} sectionTitle="isPaymentProcessorError"/>
|
||||
<TypeList types={[{"name":"obj","type":"obj is PaymentProcessorError","optional":false,"defaultValue":"","description":"","expandable":false,"children":[]}]} sectionTitle="isPaymentProcessorError"/>
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import ParameterTypes from "@site/src/components/ParameterTypes"
|
||||
import TypeList from "@site/src/components/TypeList"
|
||||
|
||||
# price-selection
|
||||
|
||||
@@ -26,4 +26,4 @@ ___
|
||||
|
||||
#### Properties
|
||||
|
||||
<ParameterTypes parameters={[{"name":"DEFAULT","type":"[DEFAULT](medusa.mdx#default)","description":"","optional":false,"defaultValue":"\"default\"","expandable":false,"children":[]},{"name":"SALE","type":"[SALE](../medusa/enums/medusa.PriceListType.mdx#sale)","description":"","optional":false,"defaultValue":"\"sale\"","expandable":false,"children":[]},{"name":"OVERRIDE","type":"[OVERRIDE](../medusa/enums/medusa.PriceListType.mdx#override)","description":"","optional":false,"defaultValue":"\"override\"","expandable":false,"children":[]}]} sectionTitle="PriceType"/>
|
||||
<TypeList types={[{"name":"DEFAULT","type":"[DEFAULT](medusa.mdx#default)","description":"","optional":false,"defaultValue":"\"default\"","expandable":false,"children":[]},{"name":"SALE","type":"[SALE](../medusa/enums/medusa.PriceListType.mdx#sale)","description":"","optional":false,"defaultValue":"\"sale\"","expandable":false,"children":[]},{"name":"OVERRIDE","type":"[OVERRIDE](../medusa/enums/medusa.PriceListType.mdx#override)","description":"","optional":false,"defaultValue":"\"override\"","expandable":false,"children":[]}]} sectionTitle="PriceType"/>
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import ParameterTypes from "@site/src/components/ParameterTypes"
|
||||
import TypeList from "@site/src/components/TypeList"
|
||||
|
||||
# pricing
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import ParameterTypes from "@site/src/components/ParameterTypes"
|
||||
import TypeList from "@site/src/components/TypeList"
|
||||
|
||||
# product
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import ParameterTypes from "@site/src/components/ParameterTypes"
|
||||
import TypeList from "@site/src/components/TypeList"
|
||||
|
||||
# search
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import ParameterTypes from "@site/src/components/ParameterTypes"
|
||||
import TypeList from "@site/src/components/TypeList"
|
||||
|
||||
# services
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import ParameterTypes from "@site/src/components/ParameterTypes"
|
||||
import TypeList from "@site/src/components/TypeList"
|
||||
|
||||
# stock-location
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import ParameterTypes from "@site/src/components/ParameterTypes"
|
||||
import TypeList from "@site/src/components/TypeList"
|
||||
|
||||
# tax
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import ParameterTypes from "@site/src/components/ParameterTypes"
|
||||
import TypeList from "@site/src/components/TypeList"
|
||||
|
||||
# tax-calculation
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import ParameterTypes from "@site/src/components/ParameterTypes"
|
||||
import TypeList from "@site/src/components/TypeList"
|
||||
|
||||
# types
|
||||
|
||||
|
||||
@@ -3,7 +3,7 @@ displayed_sidebar: workflowsSidebar
|
||||
slug: /references/workflows
|
||||
---
|
||||
|
||||
import ParameterTypes from "@site/src/components/ParameterTypes"
|
||||
import TypeList from "@site/src/components/TypeList"
|
||||
|
||||
# Workflows API Reference
|
||||
|
||||
|
||||
Reference in New Issue
Block a user