Stream: IG creation
Topic: Layout for resource types
Jose Costa Teixeira (Dec 18 2019 at 11:38):
How does the IG publisher pass the structureDefinitions through the layout-profile.html, and other resource types through other layouts?
Jose Costa Teixeira (Dec 18 2019 at 11:38):
In other words, where do we have to work to add a new resource type?
Grahame Grieve (Dec 18 2019 at 12:11):
config.json in the template
Jose Costa Teixeira (Dec 18 2019 at 19:11):
ok, interesting stuff...
in the layout-profile.html, it seems that the tab content are imported from another file
{%include StructureDefinition-{{[id]}}-diff.xhtml%}
Jose Costa Teixeira (Dec 18 2019 at 19:12):
where are these xhtml generated?
Grahame Grieve (Dec 18 2019 at 19:12):
that file is generated by the IG publisher before calling Jekyll
Eric Haas (Dec 18 2019 at 20:26):
all the stuff that ig-pub creates magically as xhtml files can be seen in the temp includes directory
~/temp/_includes
so you can include any of that stuff.
Jose Costa Teixeira (Dec 19 2019 at 07:22):
If I want to enable ExampleScenario rendering, with 3 tabs (tab 1= diagram, tab 2= a list, tab 3= a few tables), how could I do some work in that direction?
Jose Costa Teixeira (Dec 19 2019 at 07:25):
does that work with xslts? Should I prepare the transformations that take the resource and create the xhtml for each tab?
Grahame Grieve (Dec 19 2019 at 07:31):
I am not sure how that would work at the moment
Grahame Grieve (Dec 19 2019 at 07:40):
what do the example scenario transforms consist of? pure xslt?
Jose Costa Teixeira (Dec 19 2019 at 07:54):
it's in a few steps
Jose Costa Teixeira (Dec 19 2019 at 07:54):
Grahame Grieve (Dec 19 2019 at 08:15):
what's on the 3 tabs?
Jose Costa Teixeira (Dec 19 2019 at 08:48):
not decided, possibly continuing this early draft
http://blog.zeora.net/mma/examplescenario-mma1-scenario.html
Grahame Grieve (Dec 19 2019 at 09:20):
it would be a lot easier to integrate and maintain if as much of it as possible is in java
Grahame Grieve (Dec 19 2019 at 09:24):
actually.. I think it would be much better not to do this with plantUML at all. The real advantage of generating SVGs rather than PNGs is that you can have links etc. And the geometry really doesn't look that hard
Jose Costa Teixeira (Dec 19 2019 at 09:35):
early prototype is png, but I have the svg version
Grahame Grieve (Dec 19 2019 at 09:44):
so you have 3 ant scripts? xslts?
Jose Costa Teixeira (Dec 19 2019 at 10:08):
Depends on what is needed. first trial consists of an updated ant.xml that does this:
Jose Costa Teixeira (Dec 19 2019 at 10:09):
Jose Costa Teixeira (Dec 19 2019 at 10:09):
I added the bottom part to see it working.
Jose Costa Teixeira (Dec 19 2019 at 10:13):
I have still one xslt that creates the 3 tabs,
but from what I learned recently this could be 3 xslts, with the first one depending on the preparing source and parsing via plantuml
Jose Costa Teixeira (Dec 19 2019 at 10:13):
this diagram above is the ig's ant.xml
Jose Costa Teixeira (Dec 19 2019 at 12:00):
Meanwhile I have 3 xslts triggered by the ant script
Jose Costa Teixeira (Dec 20 2019 at 21:08):
So my quest now is to find out how to use the results of these transformations (which I can do in ant easily) into a layout that goes into the ig.
Grahame Grieve (Dec 20 2019 at 21:19):
I'll look at it after xmas. It's all publishing deadline before that
Jose Costa Teixeira (Dec 20 2019 at 21:23):
ok, thanks
Jose Costa Teixeira (Dec 20 2019 at 21:23):
if ther is anything I can prepare for that, I will. Meanwhile I will put this in some repo
Last updated: Apr 12 2022 at 19:14 UTC