Initial implementation of calm-widgets#1417
Closed
rocketstack-matt wants to merge 9 commits intofinos:mainfrom
Closed
Initial implementation of calm-widgets#1417rocketstack-matt wants to merge 9 commits intofinos:mainfrom
rocketstack-matt wants to merge 9 commits intofinos:mainfrom
Conversation
Member
|
@rocketstack-matt PR has merge conflicts atm, going to convert to draft |
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
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This pull request introduces the
calm-widgetsmodule, 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
.github/workflows/build-calm-widgets.yml: Added a GitHub Actions workflow to build, test, lint, and generate coverage reports for thecalm-widgetsmodule.calm-widgets/package.json: Defined the package configuration, including dependencies, scripts, and exports for thecalm-widgetsmodule.calm-widgets/pom.xml: Added a Maven POM file to define the module's metadata and parent project configuration.Documentation
calm-widgets/README.md: Created detailed documentation for thecalm-widgetsmodule, including its features, syntax guide, and integration examples with CALM CLI.Core Functionality
calm-widgets/src/formatters/table-formatter.ts: Implemented theTableFormatterclass to format data as Markdown and HTML tables, with features like column inference, custom formatting, and empty data handling.calm-widgets/src/formatters/table-formatter.spec.ts: Added unit tests for theTableFormatterclass to ensure correct functionality for various scenarios, including headers, empty data, and custom columns.Supporting Scripts
calm-widgets/scripts/copy-widgets.mjs: Added a script to copy widget templates from thewidgetsdirectory to thedist/widgetsdirectory during the build process.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.