docs(static methods): fix style of static methods in api doc. anchoring works now
This commit is contained in:
parent
e1862887ae
commit
baf84a48e8
|
@ -204,6 +204,11 @@ input.api-filter {
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
|
|
||||||
|
// Override highlight.js
|
||||||
|
.kwd {
|
||||||
|
color: #1E88E5 !important;
|
||||||
|
}
|
||||||
|
|
||||||
&:hover {
|
&:hover {
|
||||||
text-decoration: underline;
|
text-decoration: underline;
|
||||||
}
|
}
|
||||||
|
|
|
@ -36,7 +36,7 @@ include {$ relativePath(doc.path, '_util-fns') $}
|
||||||
{% if doc.statics.length %}
|
{% if doc.statics.length %}
|
||||||
.div(layout="column")
|
.div(layout="column")
|
||||||
{% for member in doc.statics %}{% if not member.internal %}
|
{% for member in doc.statics %}{% if not member.internal %}
|
||||||
pre(class="prettyprint no-bg" ng-class="{ 'anchor-focused': appCtrl.isApiDocMemberFocused('{$ member.name $}') }")
|
pre(class="prettyprint no-bg-with-indent")
|
||||||
a(class="code-anchor" href="#{$ member.name $}-anchor")
|
a(class="code-anchor" href="#{$ member.name $}-anchor")
|
||||||
code(class="code-background api-doc-code") {$ member.name | indent(6, false) | trim $}
|
code(class="code-background api-doc-code") {$ member.name | indent(6, false) | trim $}
|
||||||
code(class="api-doc-code") {$ paramList(member.parameters) | indent(8, false) | trim $}{$ returnType(member.returnType) $}
|
code(class="api-doc-code") {$ paramList(member.parameters) | indent(8, false) | trim $}{$ returnType(member.returnType) $}
|
||||||
|
@ -126,14 +126,15 @@ include {$ relativePath(doc.path, '_util-fns') $}
|
||||||
h2(class="h2-api-docs") Static Members
|
h2(class="h2-api-docs") Static Members
|
||||||
div(flex="80" flex-xs="100")
|
div(flex="80" flex-xs="100")
|
||||||
{% for member in doc.statics %}{% if not member.internal %}
|
{% for member in doc.statics %}{% if not member.internal %}
|
||||||
pre.prettyprint.no-bg
|
a(name="{$ member.name $}-anchor" class="anchor-offset")
|
||||||
|
pre(class="prettyprint no-bg" ng-class="{ 'anchor-focused': appCtrl.isApiDocMemberFocused('{$ member.name $}') }")
|
||||||
code(class="api-doc-code").
|
code(class="api-doc-code").
|
||||||
{$ member.name $}{$ paramList(member.parameters) | indent(8, false) | trim $}{$ returnType(member.returnType) $}
|
{$ member.name $}{$ paramList(member.parameters) | indent(8, false) | trim $}{$ returnType(member.returnType) $}
|
||||||
:marked
|
:marked
|
||||||
{%- if member.notYetDocumented %}
|
{%- if member.notYetDocumented %}
|
||||||
*Not yet documented*
|
*Not yet documented*
|
||||||
{% else %}
|
{% else %}
|
||||||
{$ member.description | indentForMarkdown(6) | replace('## Example', '') | replace('# Example', '') | trimBlankLines $}
|
{$ member.description | indentForMarkdown(6) | replace('### Example', '') | replace('## Example', '') | replace('# Example', '') | trimBlankLines $}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
{% if not loop.last %}
|
{% if not loop.last %}
|
||||||
|
|
Loading…
Reference in New Issue