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; | ||||
|     text-decoration: none; | ||||
| 
 | ||||
|     // Override highlight.js | ||||
|     .kwd { | ||||
|       color: #1E88E5 !important; | ||||
|     } | ||||
| 
 | ||||
|     &:hover { | ||||
|       text-decoration: underline; | ||||
|     } | ||||
|  | ||||
| @ -36,7 +36,7 @@ include {$ relativePath(doc.path, '_util-fns') $} | ||||
|     {% if doc.statics.length %} | ||||
|     .div(layout="column") | ||||
|       {% 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") | ||||
|             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) $} | ||||
| @ -126,14 +126,15 @@ include {$ relativePath(doc.path, '_util-fns') $} | ||||
|     h2(class="h2-api-docs") Static Members | ||||
|   div(flex="80" flex-xs="100") | ||||
|   {% 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"). | ||||
|         {$ member.name $}{$ paramList(member.parameters) | indent(8, false) | trim $}{$ returnType(member.returnType) $} | ||||
|     :marked | ||||
|       {%- if member.notYetDocumented %} | ||||
|       *Not yet documented* | ||||
|       {% else %} | ||||
| {$ member.description | indentForMarkdown(6) | replace('## Example', '') | replace('# Example', '') | trimBlankLines $} | ||||
| {$ member.description | indentForMarkdown(6) | replace('### Example', '') | replace('## Example', '') | replace('# Example', '') | trimBlankLines $} | ||||
|       {% endif %} | ||||
| 
 | ||||
|     {% if not loop.last %} | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user