Skip to content
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

Usage Notes heading always appears #64

Merged
merged 2 commits into from
Oct 31, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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