mirror of
https://github.com/danielsogl/awesome-cordova-plugins.git
synced 2025-01-19 00:12:53 +08:00
docs(): add anchors to make headlines linkable (#1766)
This commit is contained in:
parent
c972497475
commit
2f3331e9ea
12
scripts/docs/templates/common.template.html
vendored
12
scripts/docs/templates/common.template.html
vendored
@ -127,7 +127,7 @@ docType: "<$ doc.docType $>"
|
|||||||
|
|
||||||
<@- macro documentClass(doc) @>
|
<@- macro documentClass(doc) @>
|
||||||
<@- if doc.statics.length -@>
|
<@- if doc.statics.length -@>
|
||||||
<h2>Static Members</h2>
|
<h2><a class="anchor" name="static-members" href="#static-members"></a>Static Members</h2>
|
||||||
<@ for method in doc.statics -@>
|
<@ for method in doc.statics -@>
|
||||||
<$ documentMethod(method) $>
|
<$ documentMethod(method) $>
|
||||||
<@ endfor -@>
|
<@ endfor -@>
|
||||||
@ -136,7 +136,7 @@ docType: "<$ doc.docType $>"
|
|||||||
<# --- methods in class --- #>
|
<# --- methods in class --- #>
|
||||||
<@- if doc.members and doc.members.length @>
|
<@- if doc.members and doc.members.length @>
|
||||||
|
|
||||||
<h2>Instance Members</h2>
|
<h2><a class="anchor" name="instance-members" href="#instance-members"></a>Instance Members</h2>
|
||||||
<@ for method in doc.members -@>
|
<@ for method in doc.members -@>
|
||||||
<$ documentMethod(method) $>
|
<$ documentMethod(method) $>
|
||||||
<@- endfor @>
|
<@- endfor @>
|
||||||
@ -174,7 +174,7 @@ docType: "<$ doc.docType $>"
|
|||||||
</p>
|
</p>
|
||||||
|
|
||||||
<# --- Install commands --- #>
|
<# --- Install commands --- #>
|
||||||
<h2>Installation</h2>
|
<h2><a class="anchor" name="installation" href="#installation"></a>Installation</h2>
|
||||||
<ol class="installation">
|
<ol class="installation">
|
||||||
<li>Install the Cordova and Ionic Native plugins:<br>
|
<li>Install the Cordova and Ionic Native plugins:<br>
|
||||||
<pre><code class="nohighlight">$ <@ if prop.install @><$ prop.install $><@ else @>ionic cordova plugin add <$ prop.plugin $><@ endif @>
|
<pre><code class="nohighlight">$ <@ if prop.install @><$ prop.install $><@ else @>ionic cordova plugin add <$ prop.plugin $><@ endif @>
|
||||||
@ -186,7 +186,7 @@ $ npm install --save @ionic-native/<$ doc.npmId $>
|
|||||||
|
|
||||||
<# --- Plugin supported platforms --- #>
|
<# --- Plugin supported platforms --- #>
|
||||||
<@ if prop.platforms @>
|
<@ if prop.platforms @>
|
||||||
<h2>Supported platforms</h2>
|
<h2><a class="anchor" name="platforms" href="#platforms"></a>Supported platforms</h2>
|
||||||
<ul>
|
<ul>
|
||||||
<@ for platform in prop.platforms -@>
|
<@ for platform in prop.platforms -@>
|
||||||
<li><$ platform $></li>
|
<li><$ platform $></li>
|
||||||
@ -198,13 +198,13 @@ $ npm install --save @ionic-native/<$ doc.npmId $>
|
|||||||
|
|
||||||
<# --- Plugin usage --- #>
|
<# --- Plugin usage --- #>
|
||||||
<@ if doc.usage @>
|
<@ if doc.usage @>
|
||||||
<h2>Usage</h2>
|
<h2><a class="anchor" name="usage" href="#usage"></a>Usage</h2>
|
||||||
<$ doc.usage | marked $>
|
<$ doc.usage | marked $>
|
||||||
<@ endif @>
|
<@ endif @>
|
||||||
|
|
||||||
<# --- Plugin attributes --- #>
|
<# --- Plugin attributes --- #>
|
||||||
<@- if doc.properties -@>
|
<@- if doc.properties -@>
|
||||||
<h2>Attributes:</h2>
|
<h2><a class="anchor" name="attributes" href="#attributes"></a>Attributes:</h2>
|
||||||
<table class="table" style="margin:0;">
|
<table class="table" style="margin:0;">
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
|
Loading…
Reference in New Issue
Block a user