Add a sample UML diagram and model descriptions to ical-tasks#4
Open
ronaldtse wants to merge 1 commit into
Open
Add a sample UML diagram and model descriptions to ical-tasks#4ronaldtse wants to merge 1 commit into
ronaldtse wants to merge 1 commit into
Conversation
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.
Originally ported from:
For @douglm .
This PR adds the following to the iCal-Tasks document:
The UML syntax used is called LutaML:
Structure
The diagram is stored at:
The class definitions are at:
The LutaML structure works like this:
Rendering in text
In the new file
sections/70-model.adoc, it looks like this:lutaml_diagram
This line:
lutaml_diagram::views/calendar_view.lutaml[]Makes Metanorma render the diagram.
lutaml_uml_class
This line:
[lutaml_uml_class,views/calendar_view.lutaml,Calendar]Makes Metanorma render a clause that contains the descriptions and definitions of the UML class "Calendar" class.
lutaml_uml_attributes_table
This line:
[lutaml_uml_attributes_table,views/calendar_view.lutaml,Calendar]Makes Metanorma render a table of UML attributes for the "Calendar" class in the calendar_view.lutaml view.
That's it
Hope this helps!