Skip to content

Commit

Permalink
Merge pull request #64 from co-cddo/usage-notes
Browse files Browse the repository at this point in the history
Usage Notes heading always appears
  • Loading branch information
Alasdair Gray authored Oct 31, 2023
2 parents 3287148 + d3e79ea commit 3923023
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/docs/templates/slot.md.jinja2
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,8 @@ The obligation or cardinality can be overridden when used by classes. Check the
Mixin: {{ element.mixin }}
{% endif -%}

{% if element.comments %}
## Usage Notes

{% if element.comments %}
{% set comments = element.comments | join('') %}

{% set comments_lines = comments.split('\n') %}
Expand All @@ -44,6 +43,8 @@ Mixin: {{ element.mixin }}
{{ line }}
{% endif %}
{% endfor %}
{% else %}
_Usage notes still to be provided._
{% endif %}

{% if schemaview.slot_parents(element.name) or schemaview.slot_children(element.name, mixins=False) %}
Expand Down

0 comments on commit 3923023

Please sign in to comment.