chore(dgeni): add anchor links to docs

This commit is contained in:
perry
2016-03-11 10:33:55 -06:00
parent 028e181471
commit 559ecd6912

View File

@@ -124,7 +124,7 @@ angular_controller: APIDemoCtrl <@ endif @>
<@ block header @>
<h1 class="api-title">
<a name="<$ doc.name | dashCase $>"></a>
<@ if doc.docType == "directive" @>
<$ doc.name | dashCase $>
<@ else @>
@@ -163,13 +163,13 @@ Improve this doc
<@- if doc.directiveInfo @>
<h2><$ doc.directiveInfo.type $></h2>
<h2><a name="<$ doc.directiveInfo.type $>"></a><$ doc.directiveInfo.type $></h2>
<h3><$ doc.directiveInfo.properties[0].name $>: <code><$ doc.directiveInfo.properties[0].values $></code></h3>
<@ endif -@>
<!-- @usage tag -->
<@ if doc.usage @>
<h2>Usage</h2>
<h2><a name="usage"></a>Usage</h2>
<@ block usage @>
<$ doc.usage | marked $>
<@ endblock @>
@@ -177,7 +177,7 @@ Improve this doc
<!-- @property tags -->
<@ if doc.properties @>
<h2>Attributes:</h2>
<h2><a name="attributes"></a>Attributes:</h2>
<table class="table" style="margin:0;">
<thead>
<tr>
@@ -220,7 +220,7 @@ Improve this doc
<@- if doc.statics.length -@>
<h2>Static Methods</h2>
<h2><a name="static-methods"></a>Static Methods</h2>
<@- for method in doc.statics @><@ if not method.internal @>
<div id="<$ method.name $>"></div>
<h3><$ functionSyntax(method) $></h3>
@@ -251,7 +251,7 @@ Improve this doc
<!-- instance methods on the class -->
<@- if doc.members and doc.members.length @>
<h2>Instance Methods</h2>
<h2><a name="instance-methods"></a>Instance Methods</h2>
<@- for method in doc.members @>
<div id="<$ method.name $>"></div>
@@ -286,13 +286,13 @@ Improve this doc
<@- if doc.inputs and doc.inputs.length @>
<!-- input methods on the class -->
<h2>Input Properties</h2>
<h2><a name="input-properties"></a>Input Properties</h2>
<$ inputTable(doc.inputs) $>
<@- endif -@>
<@- if doc.outputs and doc.outputs.length @>
<!-- output events on the class -->
<h2>Output Events</h2>
<h2><a name="output-events"></a>Output Events</h2>
<$ outputTable(doc.outputs) $>
<@- endif -@>
@@ -300,7 +300,7 @@ Improve this doc
<!-- related link -->
<@- if doc.see @>
<h2>Related</h2>
<h2><a name="related"></a>Related</h2>
<@ for s in doc.see @>
<$ s | safe $>
<@- endfor -@>