How to insert a widget in a sitemap


I build a SONOS widgets and would like to integrate it into a standard sitemap. What is the right way to implement a widget into existing sitemap?

Thank you very much in advance and have a nice evening

You would have to modify all the sitemap using UIs (BasicUI, Android app, Iphone app) to interpret and display your new widget syntax.
Then you’d need the core modified to handle parsing the new widget syntax.
You’d submit PRs for all these for approval.
Most new development is focused on other UIs so there might be a reluctance to change the long standing sitemap system now.

It might be smart to first propose what you are doing, to gauge reactions.