Skip to content

Commit

Permalink
Update attribute template (#87)
Browse files Browse the repository at this point in the history
  • Loading branch information
hoodmane authored Sep 29, 2023
1 parent ceddc32 commit 1faf61f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
4 changes: 3 additions & 1 deletion sphinx_js/templates/attribute.rst
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@
{{ common.deprecated(deprecated)|indent(3) }}

{% if type -%}
**type:** {{ type|indent(3) }}
.. rst-class:: js attribute type

type: {{ type|indent(3) }}
{%- endif %}

{% if description -%}
Expand Down
8 changes: 4 additions & 4 deletions tests/test_build_ts/test_build_ts.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ def test_optional_members(self):
"\n"
" OptionalThings.boop?\n"
"\n"
" **type:** boolean\n"
" type: boolean\n"
"\n"
" OptionalThings.foop?()\n",
)
Expand Down Expand Up @@ -201,13 +201,13 @@ class GetSetDocs()
GetSetDocs.a
**type:** number
type: number
Getter with comment
GetSetDocs.b
**type:** any
type: any
Setter with comment
"""
Expand All @@ -226,7 +226,7 @@ class Base()
Base.a
**type:** number
type: number
Base.f()
Expand Down

0 comments on commit 1faf61f

Please sign in to comment.