Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: fix links to steps in workflow references #10503

Merged
merged 1 commit into from
Dec 9, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,9 @@ const allowedProjectDocuments: AllowedProjectDocumentsOption = {
[ReflectionKind.Method]: true,
[ReflectionKind.Property]: true,
},
"core-flows": {
[ReflectionKind.Function]: true,
},
}

modules.forEach((module) => {
Expand Down Expand Up @@ -77,7 +80,7 @@ const mergerOptions: Partial<TypeDocOptions> = {
mdxImports: [`import { TypeList } from "docs-ui"`],
parameterComponentExtraProps: {
expandUrl:
"https://docs.medusajs.com/v2/advanced-development/data-models/manage-relationships#retrieve-records-of-relation",
"https://docs.medusajs.com/learn/fundamentals/data-models/manage-relationships#retrieve-records-of-relation",
},
},
internal: {
Expand Down
5 changes: 5 additions & 0 deletions www/utils/packages/typedoc-plugin-workflows/src/plugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,10 @@ class WorkflowsPlugin {
* @param context - The project's context.
*/
handleResolve(context: Context) {
const isEnabled = this.app.options.getValue("enableWorkflowsPlugins")
if (!isEnabled) {
return
}
for (const reflection of context.project.getReflectionsByKind(
ReflectionKind.All
)) {
Expand All @@ -84,6 +88,7 @@ class WorkflowsPlugin {

if (
!initializer ||
!initializer.arguments ||
(!ts.isArrowFunction(initializer.arguments[1]) &&
!ts.isFunctionExpression(initializer.arguments[1]))
) {
Expand Down
Loading