Skip to content

Initial implementation of calm-widgets#1417

Closed
rocketstack-matt wants to merge 9 commits intofinos:mainfrom
rocketstack-matt:calm-template-simplification
Closed

Initial implementation of calm-widgets#1417
rocketstack-matt wants to merge 9 commits intofinos:mainfrom
rocketstack-matt:calm-template-simplification

Conversation

@rocketstack-matt
Copy link
Member

@rocketstack-matt rocketstack-matt commented Jul 12, 2025

This pull request introduces the calm-widgets module, a comprehensive library of Handlebars widgets for generating CALM architecture documentation. The changes include setting up workflows, adding documentation, implementing core functionality, and creating supporting infrastructure for the module.

Module Setup and Infrastructure

Documentation

  • calm-widgets/README.md: Created detailed documentation for the calm-widgets module, including its features, syntax guide, and integration examples with CALM CLI.

Core Functionality

Supporting Scripts

Future changes

This PR lays the foundation for providing simpler documentation generation using the CALM CLI without needing to provide a complex bundle. Further PRs should build in additional widgets such as diagram generation.

@github-actions github-actions bot removed the shared label Jul 12, 2025
@jpgough-ms
Copy link
Member

@rocketstack-matt PR has merge conflicts atm, going to convert to draft

@jpgough-ms jpgough-ms marked this pull request as draft July 24, 2025 10:23
@LeighFinegold
Copy link
Member

Discussed PR with @markscott-ms @aidanm3341 @Thels in conjunction with #1452 with a particular focus on what is there currently.

Agreed an approach whereby

  • We update the model that exists today so that we allow for
    details.nodes
    nodes.controls.security.requirement[0] syntax
    nodes.interfaces[0]
  • We leverage the PathExtracter.ts for Dot Notation - we reduce usage of any (as the plan is to turn on strict mode). @aidanm3341 also wants to see if there are already any libraries doing it that we can atleast build upon. @Thels had brief look but not convinced there is. We also discussed that the PathExtractor has this additional filter capability that unlikely to get from a library
  • The widgets can largely remain (can keep in shared to start and then pull out) and be merged with the existing templates/helpers in docify and default template processor extracted out.

@rocketstack-matt rocketstack-matt deleted the calm-template-simplification branch October 28, 2025 13:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants