Repository navigation
Feature: Allow calm docify to register external custom widgets #3869
jason-marston-lbg
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Target Project
calm CLI / calm-widgets / docify
Problem
calm-widgets already supports registering arbitrary widgets through WidgetEngine.setupWidgets().
However, calm docify currently creates a WidgetEngine and calls only:
There does not appear to be a CLI/configuration mechanism for registering organisation or project-specific widgets.
This means consumers can implement a CalmWidget, but cannot use that widget through the standard calm docify workflow without either:
Proposed capability
Allow Docify to load additional widgets from a project-controlled location, for example:
An alternative could be a configuration entry in the Docify template bundle rather than a CLI parameter.
Docify would continue to register the standard widgets:
then additionally register supplied widgets using the existing:
Example use case
An organisation has additional semantic node types such as:
A custom widget might provide organisation-specific architecture visualisation while keeping those concepts represented correctly in the underlying CALM model:
This avoids changing the semantic node-type merely to obtain a particular visual treatment.
Benefits
Design considerations
Current workaround
Consumers can construct their own WidgetEngine, call:
and then:
but this requires replacing the standard calm docify execution path.
All reactions