w3c / dapt

Dubbing and Audio description Profiles of TTML2
https://w3c.github.io/dapt/
Other
5 stars 3 forks source link

Consider building the SVGs from PlantUML sources using a GitHub Action #89

Open nigelmegitt opened 1 year ago

nigelmegitt commented 1 year ago

https://github.com/marketplace/actions/plantuml-generator could be useful for generating the SVG images from PlantUML sources as a build step. Currently any edits to the diagram(s) need to have an SVG generated locally and committed and pushed, but arguably they could be build artefacts instead.

Low priority.

himorin commented 1 year ago

some random considerations...

another possible way with some restriction, separate PR into two, one only with UML sources, and anything else. For latter, the same as now, and for former we can copy and paste an example in plantUML action's page.

nigelmegitt commented 1 year ago

Discovery we made after adding the GitHub Action to check or check and deploy for automated publication: the SVG that PlantUML makes does not pass our validation checker. It has a few issues, which are certainly manually fixable. If we were to generate the SVG as an action, we'd also have to write a script to clean it up.

Most of the fixes are easy enough - a simple regexp could be used, but one of them in particular, where the XML needs to be slightly restructured so there are not nested <a> elements, is likely to be a bit trickier to fix.

himorin commented 1 year ago

I believe nested a itself is wrong, since most of them are link covering all of UML class diagram, and nested ones are its members. (I've not checked whether it is non-changeable styling of the processor, although...) One another possible way could be using separate SVG image, if SVG themselves are valid (I believe validator will not check files linked from html), but named links would not work for this option...

nigelmegitt commented 1 year ago

I think keeping the current Respec inclusion mechanism is best, because I prefer to keep those links working. Of course the other option is to file a bug report with PlantUML, which I intend to do.

nigelmegitt commented 1 year ago

I looked at Mermaid as an alternative to PlantUML but according to the docs (and my experiment) it cannot generate links from class members, only classes. That seems like a significant drop-off to me.