Skip to content

Commit

Permalink
add enumerations
Browse files Browse the repository at this point in the history
  • Loading branch information
JR-1991 committed Jun 2, 2024
1 parent 6fb7c2a commit fe7c9b7
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions templates/markdown.jinja
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
{% if title %}
# {{ title }}
{% endif %}
{% for object in objects %}
### {{ object.name }}
{{ object.docstring }}
Expand All @@ -13,3 +15,17 @@
{%- endfor -%}
{%- endfor %}
{% endfor %}

{%- if enums | length > 0 %}
## Enumerations
{% endif %}

{%- for enum in enums %}
### {{ enum.name }}

```
{%- for key, value in enum.mappings | dictsort %}
{{ key }} = {{ value }}
{%- endfor %}
```
{% endfor %}

0 comments on commit fe7c9b7

Please sign in to comment.