chore(doc-gen): improve method signature formatting
Re-use the preformatting from the source code to layout method signatures more cleanly.
This commit is contained in:
parent
ee8bf0b3c0
commit
105ba30ce9
|
@ -364,3 +364,16 @@ md-content.demo-source-container > hljs > pre > code.highlight {
|
|||
padding-left:32px !important;
|
||||
padding-right:32px !important;
|
||||
}
|
||||
|
||||
|
||||
.member .name {
|
||||
white-space: pre-wrap;
|
||||
word-wrap: break-word;
|
||||
font-family: monospace;
|
||||
font-size: 1.17em;
|
||||
margin: 1em 0;
|
||||
}
|
||||
|
||||
.member {
|
||||
|
||||
}
|
|
@ -8,13 +8,24 @@
|
|||
|
||||
{%- if doc.constructorDoc or doc.members.length -%}
|
||||
<h2>Members</h2>
|
||||
|
||||
{%- if doc.constructorDoc %}
|
||||
<h3>{$ doc.constructorDoc.name $}{$ paramList(doc.constructorDoc.params) $}</h3>
|
||||
<p>{$ doc.constructorDoc.description | marked $}</p>
|
||||
<section class="member constructor">
|
||||
<h1 class="name">{$ doc.constructorDoc.name $}{$ paramList(doc.constructorDoc.params) $}</h1>
|
||||
{% marked %}
|
||||
{$ doc.constructorDoc.description $}
|
||||
{% endmarked %}
|
||||
</section>
|
||||
{% endif -%}
|
||||
|
||||
{%- for member in doc.members %}
|
||||
<h3>{$ member.name $}{$ paramList(member.params) $}</h3>
|
||||
<p>{$ member.description | marked $}</p>
|
||||
<section class="member">
|
||||
<h1 class="name">{$ member.name $}{$ paramList(member.params) $}</h1>
|
||||
{% marked %}
|
||||
{$ member.description $}
|
||||
{% endmarked %}
|
||||
</section>
|
||||
|
||||
{% endfor %}
|
||||
{%- endif -%}
|
||||
|
||||
|
|
Loading…
Reference in New Issue