-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Inline YAML proposal #716
Comments
Would like input from @ogcscotts |
@opoudjis I really like this improvement. I presume that the requirement number is being pulled from the filename? Will there also be a means to create the Requirements Classes inline? |
@ogcscotts thanks for the feedback! The requirement number is auto-generated per document just like before. Yes, Requirements Classes can also be generated inline using YAML directly in this syntax. It is actually possible to create the entire Requirements Class with its Requirements embedded in YAML so all the "Requirement Class <==> Requirement" links are automatically built too. |
On hold pending metanorma/modspec-ruby#2 which is pending metanorma/mn-requirements#30 which is pending lutaml/lutaml-model#88 |
@gbuehler @ghobona @ogcscotts : We discussed in our latest teleconference the complaint from editors that they have to edit lots of little separate requirement files for a Modspec document, instead of being able to edit a single document containing all the requirements at the same time.
The requirement to have the requirements in separate files for processing is legitimate, but there are a couple of little-used concepts in Metanorma, which we could combine to address this preference:
YAML can be incorporated in an Asciidoc document, as sourcecode. We are already using that, to add YAML-structured metadata into other Metanorma flavours, e.g. for document history.
In addition, there is functionality to associate a filename with sourcecode snippets: this was included to do exactly this, to export soucecode snippets to a filename. We've never actually done it.
I suggest that we:
filename=
telling it what file to export each YAML file toThis is introducing another way of doing Modspec requirements out of YAML:
So, to give an illustration:
Processing will do the following:
My assumption from what you've said tonight is that your editors would rather edit a single file containing two YAML snippets, like the above, than two separate YAML files like req/1.yaml and req/2.yaml
This is a small bit of work, and it's yet another way of doing things; but it builds on notions that are halfway there already in Metanorma.
Let me know if this kind of thing is of interest to your editors. I am going to implement metanorma/modspec-ruby#2 anyway; the code for that would end up reused for this.
The text was updated successfully, but these errors were encountered: