Skip to content

Commit 11b214f

Browse files
authored
Make sure docgen uses induced slots (#408)
Before, slot information was taken outside the context of a specific class (not induced), which led to wrong rendering in the docs. Resolves #406
1 parent a4486b4 commit 11b214f

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/doc-templates/index.md.jinja2

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ See [here](https://github.com/mapping-commons/sssom/tree/master/examples/schema)
5050
| Column/Field | Description | Required |
5151
|--------------------|---------------------------------------------------------|-------------|
5252
{%- for slot in c.slots %}
53-
{%- set slot_info = schemaview.get_slot(slot) %}
53+
{%- set slot_info = schemaview.induced_slot(slot, c.name) %}
5454
| **{{ gen.link(slot) }}** | {{ slot_info.description | default("No description") }} | {% if slot_info.required | default(false) %}Required{% elif slot_info.recommended | default(false) %}Recommended{% else %}Optional{% endif %} |
5555
{%- endfor %}
5656
{%- endif %}
@@ -65,7 +65,7 @@ See [here](https://github.com/mapping-commons/sssom/tree/master/examples/schema)
6565
| Column/Field | Description | Required |
6666
|--------------------|---------------------------------------------------------|-------------|
6767
{%- for slot in c.slots %}
68-
{%- set slot_info = schemaview.get_slot(slot) %}
68+
{%- set slot_info = schemaview.induced_slot(slot, c.name) %}
6969
| **{{ gen.link(slot) }}** | {{ slot_info.description | default("No description") }} | {% if slot_info.required | default(false) %}Required{% elif slot_info.recommended | default(false) %}Recommended{% else %}Optional{% endif %} |
7070
{%- endfor %}
7171
{%- endif %}

0 commit comments

Comments
 (0)