Kind: Class
Source: atloria-monorepo/apps/cli/src/generators/mdx.generator.ts
MDX Generator class Generates MDX documentation from entities
Methods
| Method | Signature | Returns |
|---|---|---|
generate | generate() | Promise<void> |
generateContent | generateContent() | Promise<{ pages: DocPage[]; navigation: NavItem[] }> |
Where it refuses work
MdxGeneratorstops the work with an early return whendeploymentDiagram.nodes.length > 0.MdxGeneratorstops the work with an early return whendiagram.MdxGeneratorstops the work with an early return when!this.options.includeRelationships || relationships.length === 0.MdxGeneratorstops the work with an early return when!name || typeof name !== 'string'.MdxGeneratorstops the work with an early return whenparts.length > 3.
When something fails
MdxGeneratorhandles failure in 6 places: it turns it into a return value in all 6.
Was this page helpful?