docs: improved commerce modules [5/5] (#9592)

- Improve remaining commerce modules
- Other: add a note about using methods of the modules' main services.
This commit is contained in:
Shahed Nasser
2024-10-16 13:25:21 +03:00
committed by GitHub
parent 6e856d3156
commit eed88c95ec
42 changed files with 594 additions and 582 deletions

View File

@@ -88,7 +88,13 @@ const mergerOptions: Partial<TypeDocOptions> = {
},
},
[`^${snakeCaseModuleName}/${moduleServiceName}/methods`]: {
reflectionDescription: `This documentation provides a reference to the \`{{alias}}\` {{kind}}. This belongs to the ${titleModuleName} Module.`,
reflectionDescription: `This documentation provides a reference to the \`{{alias}}\` {{kind}}. This belongs to the ${titleModuleName} Module.
<Note>
You should only use this methods when implementing complex customizations. For common cases, check out [available workflows instead](/medusa-workflows-reference).
</Note>`,
frontmatterData: {
displayed_sidebar: `${camelCaseModuleName}Reference`,
slug: `/references/${moduleName}/{{alias}}`,
@@ -101,7 +107,13 @@ const mergerOptions: Partial<TypeDocOptions> = {
},
},
[`^${snakeCaseModuleName}/.*${moduleServiceName}/page\\.mdx`]: {
reflectionDescription: `This section of the documentation provides a reference to the \`${moduleServiceName}\` interfaces methods. This is the interface developers use to use the functionalities provided by the ${titleModuleName} Module.`,
reflectionDescription: `This section of the documentation provides a reference to the \`${moduleServiceName}\` interfaces methods. This is the interface developers use to use the functionalities provided by the ${titleModuleName} Module.
<Note>
You should only use the methods in this reference when implementing complex customizations. For common cases, check out [available workflows instead](/medusa-workflows-reference).
</Note>`,
frontmatterData: {
displayed_sidebar: `${camelCaseModuleName}Reference`,
slug: `/references/${moduleName}`,