-
Notifications
You must be signed in to change notification settings - Fork 1
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
Hardcoded header depth #38
Comments
This has been partially addressed, by 1dbd31a : titles are now optional, and can be disabled with the "skip" parameter. But now that lutaml is importing correctly, things are worse than that. The IDs automatically being generated for titles in lutaml_uml_attributes_table instances is colliding with anchors present elsewhere in the document. This results in invalid Metanorma documents. For example,
is being generated by lutaml_uml_attributes_table, and it collides with a instance of Metanorma determines ID assignment for assets. Without exception. It is responsible for their uniqueness. If this functionality is to persist, I am going to overwrite any anchor generated by lutaml with a GUID, to avoid collisions, and I'd rather lutaml do that. As is, I am removing every single title in lutaml_uml_attributes_table instances in the document I am working on, and replacing them with skip. |
Agree.
Isn't this easily solved by having lutaml change the IDs generated? e.g. Why is skip even necessary? |
To have the title hardcoded in the YAML is absurd. You have no business telling the author there shall be no content between the clause title and the generated table: only the table is automated content; the title I put it under in my document is my business. And you certainly cannot hardcode the depth of the title, as was the case: that is just absurd. |
@opoudjis @ronaldtse what should we do with entity name(definition.name)? Currently, its rendered like that:
|
@w00lf we can either use the AsciiDoc include to increase the depth, or use a Liquid counter to determine the number of |
@ronaldtse do have an example? |
In case we will be using nesting level variable we will need user to pass depth each time, is it ok? @opoudjis |
I think it's something like:
|
You can set a default level if user didn't set it. |
You can do that, sure. I'm not going to use it anyway, because I feel the title should be decided by the author. |
@opoudjis how do you plan to "decide" the title for an enumerated tree of packages? Providing a pattern that accepts the name of the package/class? Can you elaborate how that can be possible? |
@ronaldtse lutaml_uml_attributes_table macro always accepts entity name to render, there will never be a package tree here. |
@w00lf @ronaldtse Is this ticket still open? |
ping @ronaldtse |
https://github.com/metanorma/metanorma-plugin-lutaml/blob/4ffdcaad5c1ac6a6c0bf3f1ac6f41dd26639fa7e/lib/metanorma/plugin/lutaml/lutaml_uml_attributes_table_preprocessor.rb
This means that any instance of lutaml_uml_attributes_table ever will always result in a section number one level deep.
It should go without saying that this is unacceptable: I should be able to get lutaml to generate clauses at any level depth I choose, in general.
In fact, I think it is completely wrong for Lutaml macros to be generating the title of the section at all. If it must do that, you have to give me the option of choosing the section depth.
The text was updated successfully, but these errors were encountered: