{% extends "base.html" %} {% from "chirpui/layout.html" import stack %} {% from "chirpui/callout.html" import callout %} {% from "partials/navigation-components.html" import page_navigation %} {% block content %} {% let element = element | default(metadata?.autodoc_element ?? none) %} {% let source_file = element?.source_file ?? none %} {% let source_line = element?.line_number ?? none %} {% let github_edit_base = config?.params?.github_edit_base ?? config?.github_edit_base ?? none %} {% let repo_url = config?.params?.repo_url ?? config?.repo_url ?? none %} {% let source_href = (github_edit_base ~ source_file) if (github_edit_base and source_file) else ((repo_url ~ "/blob/main/" ~ source_file ~ ("#L" ~ source_line if source_line else "")) if (repo_url and source_file) else none) %}
{% include "autodoc/partials/header.html" %}
{% call stack(gap="lg") %} {% include "autodoc/partials/badges.html" %} {% if element?.deprecated ?? none %} {% call callout(variant="warning", title="Deprecated", cls="chirp-theme-reference-deprecated") %}{{ element.deprecated | safe }}{% end %} {% end %} {% include "autodoc/partials/usage.html" %} {% include "autodoc/partials/params-table.html" %} {% include "autodoc/partials/returns.html" %} {% include "autodoc/partials/raises.html" %} {% include "autodoc/partials/examples.html" %} {% include "autodoc/partials/members.html" %} {% if source_href %}

{{ icon('code', size=14) }} View source{% if source_file %} ยท {{ source_file }}{% if source_line %}:{{ source_line }}{% end %}{% end %}

{% end %} {% end %}
{% if page %}{{ page_navigation(page) }}{% end %} {% with footer_class='chirp-theme-footer chirp-theme-footer--shell' %}{% include 'partials/site-footer.html' %}{% end %}
{% if toc_items | length > 0 %} {% end %}
{% end %} {% block site_footer %}{% end %}