Skip to content

Commit 7fdfc66

Browse files
committed
fix: Fix rendering of exit tags
Issue-2: #2
1 parent 7ad7431 commit 7fdfc66

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

docs/examples/drag

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,8 @@
3131
## In this example, we define a `drop` alias that allows us to actually
3232
## run `drag` then `drop` (instead of `drag --drop`).
3333

34+
## \exit 1 No arguments provided.
35+
3436
if [ $# -eq 0 ]; then
3537
shellman "$0"
3638
exit 1

src/mkdocstrings_handlers/shell/templates/material/_base/script.html.jinja

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,11 @@
88
{% endfor %}
99
{% endmacro %}
1010

11-
{% macro render_name_desc_tag(tag) %}
11+
{% macro render_name_desc_tag(tag, name="name") %}
1212
<ul>
1313
{% for occurrence in tag %}
1414
<li>
15-
<em><code>{{ occurrence.name }}</code></em>:
15+
<code>{{ occurrence|attr(name) }}</code>:
1616
<div class="doc doc-md-description">
1717
{{ occurrence.description | convert_markdown(heading_level, html_id=filename) }}
1818
</div>
@@ -73,7 +73,7 @@
7373

7474
{% if script.exit %}
7575
<strong>Exit Status</strong>
76-
{{ render_name_desc_tag(script.exit) }}
76+
{{ render_name_desc_tag(script.exit, name="code") }}
7777
{% endif %}
7878

7979
{% if script.stdin %}

0 commit comments

Comments
 (0)