Skip to content

Commit 3e1020e

Browse files
committed
refactor: Use new autoref elements instead of deprecated spans
1 parent c23ba7c commit 3e1020e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/griffe_pydantic/templates/material/_base/pydantic_model.html.jinja

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
<ul>
3131
{% for name, field in fields.items() %}
3232
<li>
33-
<code><span data-autorefs-optional-hover="{{ field.path }}">{{ name }}</span></code>
33+
<code><autoref optional hover identifier="{{ field.path }}">{{ name }}</autoref></code>
3434
{% with expression = field.annotation %}
3535
(<code>{% include "expression.html.jinja" with context %}</code>)
3636
{% endwith %}
@@ -48,9 +48,9 @@
4848
<ul>
4949
{% for name, validator in validators.items() %}
5050
<li>
51-
<code><span data-autorefs-optional-hover="{{ validator.path }}">{{ name }}</span></code> &rarr;
51+
<code><autoref optional hover identifier="{{ validator.path }}">{{ name }}</autoref></code> &rarr;
5252
{% for target in validator.extra.griffe_pydantic.targets %}
53-
<code><span data-autorefs-optional-hover="{{ target.path }}">{{ target.name }}</span></code>
53+
<code><autoref optional hover identifier="{{ target.path }}">{{ target.name }}</autoref></code>
5454
{%- if not loop.last %}, {% endif %}
5555
{% endfor %}
5656
</li>

0 commit comments

Comments
 (0)