Skip to content

Commit

Permalink
display enums as tables
Browse files Browse the repository at this point in the history
  • Loading branch information
JR-1991 committed Jun 6, 2024
1 parent 271bb23 commit 4b660af
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
6 changes: 3 additions & 3 deletions templates/mkdocs.jinja
Original file line number Diff line number Diff line change
Expand Up @@ -96,9 +96,9 @@ __{{ attribute.name }}__{{ required }} {{ get_dtype(attribute) }}
{% if enum.docstring %}
{{ enum.docstring }}
{% endif %}
```
| Alias | Value |
|-------|-------|
{%- for key, value in enum.mappings | dictsort %}
{{ key }} = {{ value }}
| `{{ key }}` | {{ value }} |
{%- endfor %}
```
{% endfor %}
10 changes: 5 additions & 5 deletions tests/data/expected_mkdocs.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,8 @@ __number__ `float`

### Ontology

```
ECO = https://www.evidenceontology.org/term/
GO = https://amigo.geneontology.org/amigo/term/
SIO = http://semanticscience.org/resource/
```
| Alias | Value |
|-------|-------|
| `ECO` | https://www.evidenceontology.org/term/ |
| `GO` | https://amigo.geneontology.org/amigo/term/ |
| `SIO` | http://semanticscience.org/resource/ |

0 comments on commit 4b660af

Please sign in to comment.