Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@ Context:
{{ log.debug("Rendering children of " + obj.path) }}
{% endblock logs %}

{% import "language.html.jinja" as lang with context %}
{#- Language module providing the `t` translation method. -#}

<div class="doc doc-children">

{% if root_members %}
Expand All @@ -45,7 +48,7 @@ Context:
) %}
{% if attributes %}
{% if config.show_category_heading %}
{% filter heading(heading_level, id=html_id ~ "-attributes", skip_inventory=config.skip_local_inventory) %}Attributes{% endfilter %}
{% filter heading(heading_level, id=html_id ~ "-attributes", skip_inventory=config.skip_local_inventory) %}{{ lang.t("Attributes") }}{% endfilter %}
{% endif %}
{% with heading_level = heading_level + extra_level %}
{% for attribute in attributes|order_members(config.members_order, members_list) %}
Expand All @@ -65,7 +68,7 @@ Context:
) %}
{% if type_aliases %}
{% if config.show_category_heading %}
{% filter heading(heading_level, id=html_id ~ "-type_aliases") %}Type Aliases{% endfilter %}
{% filter heading(heading_level, id=html_id ~ "-type_aliases") %}{{ lang.t("Type Aliases") }}{% endfilter %}
{% endif %}
{% with heading_level = heading_level + extra_level %}
{% for type_alias in type_aliases|order_members(config.members_order, members_list) %}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@ Context:
{{ log.debug("Rendering " + class.path) }}
{% endblock logs %}

{% import "language.html.jinja" as lang with context %}
{#- Language module providing the `t` translation method. -#}

<div class="doc doc-object doc-class">
{% with obj = class, html_id = class.path, all_members = class.all_members %}

Expand Down Expand Up @@ -246,7 +249,7 @@ Context:
{% if "__init__" in all_members and all_members["__init__"].source %}
{% with init = all_members["__init__"] %}
<details class="mkdocstrings-source">
<summary>Source code in <code>
<summary>{{ lang.t("Source code in") }} <code>
{%- if init.relative_filepath.is_absolute() -%}
{{ init.relative_package_filepath }}
{%- else -%}
Expand All @@ -259,7 +262,7 @@ Context:
{% endif %}
{% elif class.source %}
<details class="mkdocstrings-source">
<summary>Source code in <code>
<summary>{{ lang.t("Source code in") }} <code>
{%- if class.relative_filepath.is_absolute() -%}
{{ class.relative_package_filepath }}
{%- else -%}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ Context:
<p>
{% if attribute.annotation %}
<span class="doc-attribute-annotation">
<b>TYPE:</b>
<b>{{ lang.t("TYPE:") }}</b>
{% with expression = attribute.annotation %}
<code>{% include "expression.html.jinja" with context %}</code>
{% endwith %}
Expand Down
Loading