Skip to content

Commit

Permalink
fixup! feat: add parameters defaults to RTD
Browse files Browse the repository at this point in the history
  • Loading branch information
pawamoy committed Jul 24, 2023
1 parent 42f6b8a commit c1b44d3
Show file tree
Hide file tree
Showing 8 changed files with 18 additions and 21 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -53,21 +53,18 @@
<b>{{ parameter.name }}</b>
{% if parameter.annotation %}
{% with expression = parameter.annotation %}
(<code>{% include "expression.html" with context %}</code>)
(<code>{% include "expression.html" with context %}</code>
{%- if parameter.default %}, {{ lang.t("default:") }}
{% with expression = parameter.default %}
<code>{% include "expression.html" with context %}</code>
{% endwith %}
{% endif %})
{% endwith %}
{% endif %}
<div class="doc-md-description">
{{ parameter.description|convert_markdown(heading_level, html_id) }}
</div>
{% if parameter.default %}
<p>
<b>{{ lang.t("Default:") }}</b>
{% with expression = parameter.default %}
<code>{% include "expression.html" with context %}</code>
{% endwith %}
</p>
{% endif %}
</li>
{% endfor %}
</ul>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
"Attributes:": "Attributes:",
"DEFAULT:": "DEFAULT:",
"Default": "Default",
"default:": "default:",
"DESCRIPTION": "DESCRIPTION",
"Description": "Description",
"Examples:": "Examples:",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
"Attributes:": "属性:",
"DEFAULT:": "デフォルト:",
"Default": "デフォルト",
"default:": "デフォルト:",
"DESCRIPTION": "デスクリプション",
"Description": "デスクリプション",
"Examples:": "例:",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
"Attributes:": "属性:",
"DEFAULT:": "默认:",
"Default": "默认",
"default:": "默认:",
"DESCRIPTION": "描述",
"Description": "描述",
"Examples:": "示例:",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,21 +17,18 @@
<b>{{ parameter.name }}</b>
{% if parameter.annotation %}
{% with expression = parameter.annotation %}
(<code>{% include "expression.html" with context %}</code>)
(<code>{% include "expression.html" with context %}</code>
{%- if parameter.default %}, {{ lang.t("default:") }}
{% with expression = parameter.default %}
<code>{% include "expression.html" with context %}</code>
{% endwith %}
{% endif %})
{% endwith %}
{% endif %}
<div class="doc-md-description">
{{ parameter.description|convert_markdown(heading_level, html_id) }}
</div>
{% if parameter.default %}
<p>
<b>{{ lang.t("Default:") }}</b>
{% with expression = parameter.default %}
<code>{% include "expression.html" with context %}</code>
{% endwith %}
</p>
{% endif %}
</li>
{% endfor %}
</ul>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"Attributes:": "Attributes:",
"Other parameters:": "Other parameters:",
"Parameters:": "Parameters:",
"Default": "Default",
"default:": "default:",
"Raises:" : "Raises:",
"Receives:": "Receives:",
"Returns:": "Returns:",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"Attributes:": "属性:",
"Other Parameters:": "他の引数:",
"Parameters:": "引数:",
"Default": "デフォルト",
"default:": "デフォルト",
"Raises:" : "発生:",
"Receives:": "取得:",
"Returns:": "戻り値:",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"Attributes:": "属性:",
"Other Parameters:": "其他参数:",
"Parameters:": "参数:",
"Default": "默认",
"default:": "默认",
"Raises:" : "引发:",
"Receives:": "接收:",
"Returns:": "返回:",
Expand Down

0 comments on commit c1b44d3

Please sign in to comment.