Skip to content
This repository was archived by the owner on Dec 4, 2017. It is now read-only.

Commit baf84a4

Browse files
author
Eric Jimenez
committed
docs(static methods): fix style of static methods in api doc. anchoring works now
1 parent e186288 commit baf84a4

File tree

2 files changed

+9
-3
lines changed

2 files changed

+9
-3
lines changed

public/resources/css/module/_api.scss

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -204,6 +204,11 @@ input.api-filter {
204204
cursor: pointer;
205205
text-decoration: none;
206206

207+
// Override highlight.js
208+
.kwd {
209+
color: #1E88E5 !important;
210+
}
211+
207212
&:hover {
208213
text-decoration: underline;
209214
}

tools/api-builder/angular.io-package/templates/class.template.html

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
{% if doc.statics.length %}
3737
.div(layout="column")
3838
{% for member in doc.statics %}{% if not member.internal %}
39-
pre(class="prettyprint no-bg" ng-class="{ 'anchor-focused': appCtrl.isApiDocMemberFocused('{$ member.name $}') }")
39+
pre(class="prettyprint no-bg-with-indent")
4040
a(class="code-anchor" href="#{$ member.name $}-anchor")
4141
code(class="code-background api-doc-code") {$ member.name | indent(6, false) | trim $}
4242
code(class="api-doc-code") {$ paramList(member.parameters) | indent(8, false) | trim $}{$ returnType(member.returnType) $}
@@ -126,14 +126,15 @@
126126
h2(class="h2-api-docs") Static Members
127127
div(flex="80" flex-xs="100")
128128
{% for member in doc.statics %}{% if not member.internal %}
129-
pre.prettyprint.no-bg
129+
a(name="{$ member.name $}-anchor" class="anchor-offset")
130+
pre(class="prettyprint no-bg" ng-class="{ 'anchor-focused': appCtrl.isApiDocMemberFocused('{$ member.name $}') }")
130131
code(class="api-doc-code").
131132
{$ member.name $}{$ paramList(member.parameters) | indent(8, false) | trim $}{$ returnType(member.returnType) $}
132133
:marked
133134
{%- if member.notYetDocumented %}
134135
*Not yet documented*
135136
{% else %}
136-
{$ member.description | indentForMarkdown(6) | replace('## Example', '') | replace('# Example', '') | trimBlankLines $}
137+
{$ member.description | indentForMarkdown(6) | replace('### Example', '') | replace('## Example', '') | replace('# Example', '') | trimBlankLines $}
137138
{% endif %}
138139

139140
{% if not loop.last %}

0 commit comments

Comments
 (0)