glossarist / iev-document

Auto-generated IEV document from ConceptYAML
1 stars 0 forks source link

Use yaml2text to replace part-specific T&D section #15

Closed ronaldtse closed 2 years ago

ronaldtse commented 2 years ago

This PR replaces this:

=== General

include::terms/concept-192-01*.adoc[]

=== States and times

include::terms/concept-192-02*.adoc[]

=== Reliability related concepts: failures

include::terms/concept-192-03*.adoc[]

=== Reliability related concepts: faults

include::terms/concept-192-04*.adoc[]
...

With a yaml2text block:


[yaml2text,iev-192.yaml,data]
----
{% for section in data.sections %}
=== {{section[1].title}}

include::terms/concept-{{ section[0] }}-*.adoc[]

{% endfor %}
----

However, this results in:

image

This is a yaml2text bug that needs to be fixed.

ronaldtse commented 2 years ago

Superseded by #16, thanks to @opoudjis .