incubator-callback-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mwbro...@apache.org
Subject [2/5] CB-652 Update spec/phonegap to spec/cordova
Date Mon, 07 May 2012 22:25:12 GMT
http://git-wip-us.apache.org/repos/asf/incubator-cordova-docs/blob/e0d6b692/spec/cordova/table_of_contents_spec/example_no_target.html
----------------------------------------------------------------------
diff --git a/spec/cordova/table_of_contents_spec/example_no_target.html b/spec/cordova/table_of_contents_spec/example_no_target.html
new file mode 100644
index 0000000..f6d6179
--- /dev/null
+++ b/spec/cordova/table_of_contents_spec/example_no_target.html
@@ -0,0 +1,496 @@
+<!--
+    Licensed to the Apache Software Foundation (ASF) under one
+    or more contributor license agreements.  See the NOTICE file
+    distributed with this work for additional information
+    regarding copyright ownership.  The ASF licenses this file
+    to you under the Apache License, Version 2.0 (the
+    "License"); you may not use this file except in compliance
+    with the License.  You may obtain a copy of the License at
+
+      http://www.apache.org/licenses/LICENSE-2.0
+
+    Unless required by applicable law or agreed to in writing,
+    software distributed under the License is distributed on an
+    "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+    KIND, either express or implied.  See the License for the
+    specific language governing permissions and limitations
+    under the License.
+-->
+
+<!DOCTYPE html>
+<html lang="en">
+<head>
+<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
+<meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, user-scalable=no, width=device-width">
+<meta name="generator" content="joDoc">
+<link rel="stylesheet" type="text/css" href="index.css">
+<title>PhoneGap API Documentation</title>
+</head>
+<body>
+		
+		<div id="header">
+			<h1>Phone<strong>Gap</strong> Documentation</h1>
+			<small></small>
+		</div>
+		<div id="subheader">
+			<h1>Accelerometer</h1>
+		</div>
+		<div id="content">
+			<h1><a name="Accelerometer">Accelerometer</a></h1>
+
+			<blockquote>
+			  <p>Captures device motion in the x, y, and z direction.</p>
+			</blockquote>
+
+			<h2>Methods</h2>
+
+			<ul>
+			<li><a href="phonegap_accelerometer_accelerometer.md.html#accelerometer.getCurrentAcceleration">accelerometer.getCurrentAcceleration</a></li>
+			<li><a href="phonegap_accelerometer_accelerometer.md.html#accelerometer.watchAcceleration">accelerometer.watchAcceleration</a></li>
+			<li><a href="phonegap_accelerometer_accelerometer.md.html#accelerometer.clearWatch">accelerometer.clearWatch</a></li>
+			</ul>
+			<h2>Arguments</h2>
+
+			<ul>
+			<li><a href="phonegap_accelerometer_accelerometer.md.html#accelerometerSuccess">accelerometerSuccess</a></li>
+			<li><a href="phonegap_accelerometer_accelerometer.md.html#accelerometerError">accelerometerError</a></li>
+			<li><a href="phonegap_accelerometer_accelerometer.md.html#accelerometerOptions">accelerometerOptions</a></li>
+			</ul>
+			<h2>Objects (Read-Only)</h2>
+
+			<ul>
+			<li><a href="phonegap_accelerometer_accelerometer.md.html#Acceleration">Acceleration</a></li>
+			</ul>
+			<hr>
+			<h1><a name="accelerometer.getCurrentAcceleration">accelerometer.getCurrentAcceleration</a></h1>
+
+			<p>Get the current acceleration along the x, y, and z axis.</p>
+
+			<pre><code>navigator.accelerometer.getCurrentAcceleration(<a href="phonegap_accelerometer_accelerometer.md.html#accelerometerSuccess">accelerometerSuccess</a>, <a href="phonegap_accelerometer_accelerometer.md.html#accelerometerError">accelerometerError</a>);
+			</code></pre>
+
+			<h2>Description</h2>
+
+			<p>The accelerometer is a motion sensor that detects the change (delta) in movement relative to the current position. The accelerometer can detect 3D movement along the x, y, and z axis.</p>
+
+			<p>The acceleration is returned using the <code><a href="phonegap_accelerometer_accelerometer.md.html#accelerometerSuccess">accelerometerSuccess</a></code> callback function.</p>
+
+			<h2>Supported Platforms</h2>
+
+			<ul>
+			<li>iPhone</li>
+			</ul>
+			<h2>Quick Example</h2>
+
+			<pre><code>function onSuccess(acceleration) {
+			    alert('<a href="phonegap_accelerometer_accelerometer.md.html#Acceleration">Acceleration</a> X: ' + acceleration.x + '\n' +
+			          '<a href="phonegap_accelerometer_accelerometer.md.html#Acceleration">Acceleration</a> Y: ' + acceleration.y + '\n' +
+			          '<a href="phonegap_accelerometer_accelerometer.md.html#Acceleration">Acceleration</a> Z: ' + acceleration.z + '\n';
+			};
+
+			function onError() {
+			    alert('onError!');
+			};
+
+			navigator.<a href="phonegap_accelerometer_accelerometer.md.html#accelerometer.getCurrentAcceleration">accelerometer.getCurrentAcceleration</a>(onSuccess, onError);
+			</code></pre>
+
+			<h2>Full Example</h2>
+
+			<pre><code>&lt;!DOCTYPE html&gt;
+			&lt;html&gt;
+			  &lt;head&gt;
+			    &lt;title&gt;<a href="phonegap_accelerometer_accelerometer.md.html#Acceleration">Acceleration</a> Example&lt;/title&gt;
+
+			    &lt;script type="text/javascript" charset="utf-8" src="phonegap.js"&gt;&lt;/script&gt;
+			    &lt;script type="text/javascript" charset="utf-8"&gt;
+
+			    // Wait for PhoneGap to load
+			    //
+			    function onLoad() {
+			        document.addEventListener("<a href="phonegap_events_events.md.html#deviceready">deviceready</a>", onDeviceReady, false);
+			    }
+
+			    // PhoneGap is ready
+			    //
+			    function onDeviceReady() {
+			        navigator.<a href="phonegap_accelerometer_accelerometer.md.html#accelerometer.getCurrentAcceleration">accelerometer.getCurrentAcceleration</a>(onSuccess, onError);
+			    }
+
+			    // onSuccess: Get a snapshot of the current acceleration
+			    //
+			    function onSuccess(acceleration) {
+			        alert('<a href="phonegap_accelerometer_accelerometer.md.html#Acceleration">Acceleration</a> X: ' + acceleration.x + '\n' +
+			              '<a href="phonegap_accelerometer_accelerometer.md.html#Acceleration">Acceleration</a> Y: ' + acceleration.y + '\n' +
+			              '<a href="phonegap_accelerometer_accelerometer.md.html#Acceleration">Acceleration</a> Z: ' + acceleration.z + '\n');
+			    }
+
+			    // onError: Failed to get the acceleration
+			    //
+			    function onError() {
+			        alert('onError!');
+			    }
+
+			    &lt;/script&gt;
+			  &lt;/head&gt;
+			  &lt;body onload="onLoad()"&gt;
+			    &lt;h1&gt;Example&lt;/h1&gt;
+			    &lt;p&gt;getCurrentAcceleration&lt;/p&gt;
+			  &lt;/body&gt;
+			&lt;/html&gt;
+			</code></pre>
+
+			<h2>iPhone Quirks</h2>
+
+			<ul>
+			<li>iPhone doesn't have the concept of getting the current acceleration at any given point.</li>
+			<li>You must watch the acceleration and capture the data at given time intervals.</li>
+			<li>Thus, the <code>getCurrentAcceleration</code> function will give you the last value reported from a phoneGap <code>watchAccelerometer</code> call.</li>
+			</ul>
+			<hr>
+			<h1><a name="accelerometer.watchAcceleration">accelerometer.watchAcceleration</a></h1>
+
+			<p>At a regular interval, get the acceleration along the x, y, and z axis.</p>
+
+			<pre><code>var watchID = navigator.accelerometer.watchAcceleration(<a href="phonegap_accelerometer_accelerometer.md.html#accelerometerSuccess">accelerometerSuccess</a>,
+			                                                       <a href="phonegap_accelerometer_accelerometer.md.html#accelerometerError">accelerometerError</a>,
+			                                                       [<a href="phonegap_accelerometer_accelerometer.md.html#accelerometerOptions">accelerometerOptions</a>]);
+			</code></pre>
+
+			<h2>Description</h2>
+
+			<p>The accelerometer is a motion sensor that detects the change (delta) in movement relative to the current position. The accelerometer can detect 3D movement along the x, y, and z axis.</p>
+
+			<p>The <code><a href="phonegap_accelerometer_accelerometer.md.html#accelerometer.watchAcceleration">accelerometer.watchAcceleration</a></code> gets the device's current acceleration at a regular interval. Each time the <code><a href="phonegap_accelerometer_accelerometer.md.html#Acceleration">Acceleration</a></code> is retrieved, the <code><a href="phonegap_accelerometer_accelerometer.md.html#accelerometerSuccess">accelerometerSuccess</a></code> callback function is executed. Specify the interval in milliseconds via the <code>frequency</code> parameter in the <code>acceleratorOptions</code> object.</p>
+
+			<p>The returned watch ID references references the accelerometer watch interval. The watch ID can be used with <code><a href="phonegap_accelerometer_accelerometer.md.html#accelerometer.clearWatch">accelerometer.clearWatch</a></code> to stop watching the accelerometer.</p>
+
+			<h2>Supported Platforms</h2>
+
+			<ul>
+			<li>iPhone</li>
+			</ul>
+			<h2>Quick Example</h2>
+
+			<pre><code>function onSuccess(acceleration) {
+			    alert('<a href="phonegap_accelerometer_accelerometer.md.html#Acceleration">Acceleration</a> X: ' + acceleration.x + '\n' +
+			          '<a href="phonegap_accelerometer_accelerometer.md.html#Acceleration">Acceleration</a> Y: ' + acceleration.y + '\n' +
+			          '<a href="phonegap_accelerometer_accelerometer.md.html#Acceleration">Acceleration</a> Z: ' + acceleration.z + '\n');
+			};
+
+			function onError() {
+			    alert('onError!');
+			};
+
+			var options = { frequency: 3000 };  // Update every 3 seconds
+
+			var watchID = navigator.<a href="phonegap_accelerometer_accelerometer.md.html#accelerometer.watchAcceleration">accelerometer.watchAcceleration</a>(onSuccess, onError, options);
+			</code></pre>
+
+			<h2>Full Example</h2>
+
+			<pre><code>&lt;!DOCTYPE html&gt;
+			&lt;html&gt;
+			  &lt;head&gt;
+			    &lt;title&gt;<a href="phonegap_accelerometer_accelerometer.md.html#Acceleration">Acceleration</a> Example&lt;/title&gt;
+
+			    &lt;script type="text/javascript" charset="utf-8" src="phonegap.js"&gt;&lt;/script&gt;
+			    &lt;script type="text/javascript" charset="utf-8"&gt;
+
+			    // The watch id references the current `watchAcceleration`
+			    var watchID = null;
+
+			    // Wait for PhoneGap to load
+			    //
+			    function onLoad() {
+			        document.addEventListener("<a href="phonegap_events_events.md.html#deviceready">deviceready</a>", onDeviceReady, false);
+			    }
+
+			    // PhoneGap is ready
+			    //
+			    function onDeviceReady() {
+			        startWatch();
+			    }
+
+			    // Start watching the acceleration
+			    //
+			    function startWatch() {
+
+			        // Update acceleration every 3 seconds
+			        var options = { frequency: 3000 };
+
+			        watchID = navigator.<a href="phonegap_accelerometer_accelerometer.md.html#accelerometer.watchAcceleration">accelerometer.watchAcceleration</a>(onSuccess, onError, options);
+			    }
+
+			    // Stop watching the acceleration
+			    //
+			    function stopWatch() {
+			        if (watchID) {
+			            navigator.<a href="phonegap_accelerometer_accelerometer.md.html#accelerometer.clearWatch">accelerometer.clearWatch</a>(watchID);
+			            watchID = null;
+			        }
+			    }
+
+			    // onSuccess: Get a snapshot of the current acceleration
+			    //
+			    function onSuccess(acceleration) {
+			        var element = document.getElementById('accelerometer');
+			        element.innerHTML = '<a href="phonegap_accelerometer_accelerometer.md.html#Acceleration">Acceleration</a> X: ' + acceleration.x + '&lt;br /&gt;' +
+			                            '<a href="phonegap_accelerometer_accelerometer.md.html#Acceleration">Acceleration</a> Y: ' + acceleration.y + '&lt;br /&gt;' +
+			                            '<a href="phonegap_accelerometer_accelerometer.md.html#Acceleration">Acceleration</a> Z: ' + acceleration.z + '&lt;br /&gt;';
+			    }
+
+			    // onError: Failed to get the acceleration
+			    //
+			    function onError() {
+			        alert('onError!');
+			    }
+
+			    &lt;/script&gt;
+			  &lt;/head&gt;
+			  &lt;body onload="onLoad()"&gt;
+			    &lt;div id="accelerometer"&gt;Waiting for accelerometer...&lt;/div&gt;
+			  &lt;/body&gt;
+			&lt;/html&gt;
+			</code></pre>
+
+			<h2> iPhone Quirks</h2>
+
+			<ul>
+			<li>At the interval requested, PhoneGap will call the success callback function and pass the accelerometer results.</li>
+			<li>However, in requests to the device PhoneGap restricts the interval to minimum of every 40ms and a maximum of every 1000ms.
+			<ul>
+			<li>For example, if you request an interval of 3 seconds (3000ms), PhoneGap will request an interval of 1 second from the device but invoke the success callback at the requested interval of 3 seconds.</li>
+			</ul>
+			</li>
+			</ul>
+			<hr>
+			<h1><a name="accelerometer.clearWatch">accelerometer.clearWatch</a></h1>
+
+			<p>Stop watching the <code><a href="phonegap_accelerometer_accelerometer.md.html#Acceleration">Acceleration</a></code> referenced by the watch ID parameter.</p>
+
+			<pre><code>navigator.<a href="phonegap_accelerometer_accelerometer.md.html#accelerometer.clearWatch">accelerometer.clearWatch</a>(watchID);
+			</code></pre>
+
+			<ul>
+			<li>
+			<strong>watchID</strong>: The ID returned by <code><a href="phonegap_accelerometer_accelerometer.md.html#accelerometer.watchAcceleration">accelerometer.watchAcceleration</a></code>.</li>
+			</ul>
+			<h2>Supported Platforms</h2>
+
+			<ul>
+			<li>iPhone</li>
+			</ul>
+			<h2>Quick Example</h2>
+
+			<pre><code>var watchID = navigator.<a href="phonegap_accelerometer_accelerometer.md.html#accelerometer.watchAcceleration">accelerometer.watchAcceleration</a>(onSuccess, onError, options);
+
+			// ... later on ...
+
+			navigator.<a href="phonegap_accelerometer_accelerometer.md.html#accelerometer.clearWatch">accelerometer.clearWatch</a>(watchID);
+			</code></pre>
+
+			<h2>Full Example</h2>
+
+			<pre><code>&lt;!DOCTYPE html&gt;
+			&lt;html&gt;
+			  &lt;head&gt;
+			    &lt;title&gt;<a href="phonegap_accelerometer_accelerometer.md.html#Acceleration">Acceleration</a> Example&lt;/title&gt;
+
+			    &lt;script type="text/javascript" charset="utf-8" src="phonegap.js"&gt;&lt;/script&gt;
+			    &lt;script type="text/javascript" charset="utf-8"&gt;
+
+			    // The watch id references the current `watchAcceleration`
+			    var watchID = null;
+
+			    // Wait for PhoneGap to load
+			    //
+			    function onLoad() {
+			        document.addEventListener("<a href="phonegap_events_events.md.html#deviceready">deviceready</a>", onDeviceReady, false);
+			    }
+
+			    // PhoneGap is ready
+			    //
+			    function onDeviceReady() {
+			        startWatch();
+			    }
+
+			    // Start watching the acceleration
+			    //
+			    function startWatch() {
+
+			        // Update acceleration every 3 seconds
+			        var options = { frequency: 3000 };
+
+			        watchID = navigator.<a href="phonegap_accelerometer_accelerometer.md.html#accelerometer.watchAcceleration">accelerometer.watchAcceleration</a>(onSuccess, onError, options);
+			    }
+
+			    // Stop watching the acceleration
+			    //
+			    function stopWatch() {
+			        if (watchID) {
+			            navigator.<a href="phonegap_accelerometer_accelerometer.md.html#accelerometer.clearWatch">accelerometer.clearWatch</a>(watchID);
+			            watchID = null;
+			        }
+			    }
+
+			    // onSuccess: Get a snapshot of the current acceleration
+			    //
+			    function onSuccess(acceleration) {
+			        var element = document.getElementById('accelerometer');
+			        element.innerHTML = '<a href="phonegap_accelerometer_accelerometer.md.html#Acceleration">Acceleration</a> X: ' + acceleration.x + '&lt;br /&gt;' +
+			                            '<a href="phonegap_accelerometer_accelerometer.md.html#Acceleration">Acceleration</a> Y: ' + acceleration.y + '&lt;br /&gt;' +
+			                            '<a href="phonegap_accelerometer_accelerometer.md.html#Acceleration">Acceleration</a> Z: ' + acceleration.z + '&lt;br /&gt;';
+			    }
+
+			    // onError: Failed to get the acceleration
+			    //
+			    function onError() {
+			        alert('onError!');
+			    }
+
+			    &lt;/script&gt;
+			  &lt;/head&gt;
+			  &lt;body onload="onLoad()"&gt;
+			    &lt;div id="accelerometer"&gt;Waiting for accelerometer...&lt;/div&gt;
+			    &lt;button onclick="stopWatch();"&gt;Stop Watching&lt;/button&gt;
+			  &lt;/body&gt;
+			&lt;/html&gt;
+			</code></pre>
+
+			<hr>
+			<h1><a name="Acceleration">Acceleration</a></h1>
+
+			<p>Contains <code><a href="phonegap_accelerometer_accelerometer.md.html#Accelerometer">Accelerometer</a></code> data captured at a specific point in time.</p>
+
+			<h2>Properties</h2>
+
+			<ul>
+			<li>
+			<strong>x:</strong> Amount of motion on the x-axis. Range [0, 1] (<code>Number</code>)</li>
+			<li>
+			<strong>y:</strong> Amount of motion on the y-axis. Range [0, 1] (<code>Number</code>)</li>
+			<li>
+			<strong>z:</strong> Amount of motion on the z-axis. Range [0, 1] (<code>Number</code>)</li>
+			<li>
+			<strong>timestamp:</strong> Creation timestamp in milliseconds. (<code>DOMTimeStamp</code>)</li>
+			</ul>
+			<h2>Description</h2>
+
+			<p>This object is created and populated by PhoneGap, and returned by an <code><a href="phonegap_accelerometer_accelerometer.md.html#Accelerometer">Accelerometer</a></code> method.</p>
+
+			<h2>Supported Platforms</h2>
+
+			<ul>
+			<li>Untested</li>
+			</ul>
+			<h2>Quick Example</h2>
+
+			<pre><code>function onSuccess(acceleration) {
+			    alert('<a href="phonegap_accelerometer_accelerometer.md.html#Acceleration">Acceleration</a> X: ' + acceleration.x + '\n' +
+			          '<a href="phonegap_accelerometer_accelerometer.md.html#Acceleration">Acceleration</a> Y: ' + acceleration.y + '\n' +
+			          '<a href="phonegap_accelerometer_accelerometer.md.html#Acceleration">Acceleration</a> Z: ' + acceleration.z + '\n';
+			};
+
+			function onError() {
+			    alert('onError!');
+			};
+
+			navigator.<a href="phonegap_accelerometer_accelerometer.md.html#accelerometer.getCurrentAcceleration">accelerometer.getCurrentAcceleration</a>(onSuccess, onError);
+			</code></pre>
+
+			<h2>Full Example</h2>
+
+			<pre><code>&lt;!DOCTYPE html&gt;
+			&lt;html&gt;
+			  &lt;head&gt;
+			    &lt;title&gt;<a href="phonegap_accelerometer_accelerometer.md.html#Acceleration">Acceleration</a> Example&lt;/title&gt;
+
+			    &lt;script type="text/javascript" charset="utf-8" src="phonegap.js"&gt;&lt;/script&gt;
+			    &lt;script type="text/javascript" charset="utf-8"&gt;
+
+			    // Wait for PhoneGap to load
+			    //
+			    function onLoad() {
+			        document.addEventListener("<a href="phonegap_events_events.md.html#deviceready">deviceready</a>", onDeviceReady, false);
+			    }
+
+			    // PhoneGap is ready
+			    //
+			    function onDeviceReady() {
+			        navigator.<a href="phonegap_accelerometer_accelerometer.md.html#accelerometer.getCurrentAcceleration">accelerometer.getCurrentAcceleration</a>(onSuccess, onError);
+			    }
+
+			    // onSuccess: Get a snapshot of the current acceleration
+			    //
+			    function onSuccess() {
+			        alert('<a href="phonegap_accelerometer_accelerometer.md.html#Acceleration">Acceleration</a> X: ' + acceleration.x + '\n' +
+			              '<a href="phonegap_accelerometer_accelerometer.md.html#Acceleration">Acceleration</a> Y: ' + acceleration.y + '\n' +
+			              '<a href="phonegap_accelerometer_accelerometer.md.html#Acceleration">Acceleration</a> Z: ' + acceleration.z + '\n';
+			    }
+
+			    // onError: Failed to get the acceleration
+			    //
+			    function onError() {
+			        alert('onError!');
+			    }
+
+			    &lt;/script&gt;
+			  &lt;/head&gt;
+			  &lt;body onload="onLoad()"&gt;
+			    &lt;h1&gt;Example&lt;/h1&gt;
+			    &lt;p&gt;getCurrentAcceleration&lt;/p&gt;
+			  &lt;/body&gt;
+			&lt;/html&gt;
+			</code></pre>
+
+			<hr>
+			<h1><a name="accelerometerSuccess">accelerometerSuccess</a></h1>
+
+			<p>onSuccess callback function that provides the <a href="phonegap_accelerometer_accelerometer.md.html#Acceleration">Acceleration</a> information.</p>
+
+			<pre><code>function(acceleration) {
+			    // Do something
+			}
+			</code></pre>
+
+			<h2>Parameters</h2>
+
+			<ul>
+			<li>
+			<strong>acceleration:</strong> The acceleration at a single moment in time. (<a href="phonegap_accelerometer_accelerometer.md.html#Acceleration">Acceleration</a>)</li>
+			</ul>
+			<h2>Example</h2>
+
+			<pre><code>function onSuccess(acceleration) {
+			    alert('<a href="phonegap_accelerometer_accelerometer.md.html#Acceleration">Acceleration</a> X: ' + acceleration.x + '\n' +
+			          '<a href="phonegap_accelerometer_accelerometer.md.html#Acceleration">Acceleration</a> Y: ' + acceleration.y + '\n' +
+			          '<a href="phonegap_accelerometer_accelerometer.md.html#Acceleration">Acceleration</a> Z: ' + acceleration.z + '\n';
+			};
+			</code></pre>
+
+			<hr>
+			<h1><a name="accelerometerError">accelerometerError</a></h1>
+
+			<p>onError callback function for acceleration functions.</p>
+
+			<pre><code>function() {
+			    // Handle the error
+			}
+			</code></pre>
+
+			<hr>
+			<h1><a name="accelerometerOptions">accelerometerOptions</a></h1>
+
+			<p>An optional parameter to customize the retrieval of the accelerometer.</p>
+
+			<h2>Options</h2>
+
+			<ul>
+			<li>
+			<strong>frequency:</strong> How often to retrieve the <code><a href="phonegap_accelerometer_accelerometer.md.html#Acceleration">Acceleration</a></code> in milliseconds. <em>(Number)</em> (Default: 10000)</li>
+			</ul>
+		</div>
+		
+	</body>
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-cordova-docs/blob/e0d6b692/spec/cordova/update_index_spec.rb
----------------------------------------------------------------------
diff --git a/spec/cordova/update_index_spec.rb b/spec/cordova/update_index_spec.rb
new file mode 100644
index 0000000..7b28a4f
--- /dev/null
+++ b/spec/cordova/update_index_spec.rb
@@ -0,0 +1,59 @@
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements.  See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership.  The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License.  You may obtain a copy of the License at
+# 
+#  http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied.  See the License for the
+# specific language governing permissions and limitations
+# under the License.
+
+$:.unshift File.join(File.dirname(__FILE__), '..')
+require 'spec_helpers'
+require 'update_index'
+require 'rubygems'
+require 'nokogiri'
+
+describe UpdateIndex do
+  before :each do
+    directory = Helper::create_tmp_directory_assets(__FILE__)
+    @file = {
+      :input    => File.join(directory, 'index.md.html'),
+      :output   => File.join(directory, 'index.html')
+    }
+    @update_index = UpdateIndex.new
+  end
+
+  it 'should skip all files but index.md.html' do
+    @update_index.run('index.md').should       be_false
+    @update_index.run('index.html').should     be_false
+    @update_index.run('_index.md.html').should be_false
+  end
+  
+  it 'should rename the title' do
+    Nokogiri::HTML( File.read @file[:input] ).css('#subheader > h1')[0].content.should_not == @update_index.header_title
+    @update_index.run @file[:input]
+    Nokogiri::HTML( File.read @file[:output] ).css('#subheader > h1')[0].content.should    == @update_index.header_title
+  end
+
+  it 'should rename the file' do
+    File.exists?(@file[:input]).should  be_true
+    File.exists?(@file[:output]).should be_false
+    
+    @update_index.run @file[:input]
+    
+    File.exists?(@file[:input]).should  be_false
+    File.exists?(@file[:output]).should be_true
+  end
+  
+  after :all do
+    Helper::remove_tmp_directory
+  end
+end
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/incubator-cordova-docs/blob/e0d6b692/spec/cordova/update_index_spec/index.md.html
----------------------------------------------------------------------
diff --git a/spec/cordova/update_index_spec/index.md.html b/spec/cordova/update_index_spec/index.md.html
new file mode 100644
index 0000000..5a81724
--- /dev/null
+++ b/spec/cordova/update_index_spec/index.md.html
@@ -0,0 +1,112 @@
+<!--
+    Licensed to the Apache Software Foundation (ASF) under one
+    or more contributor license agreements.  See the NOTICE file
+    distributed with this work for additional information
+    regarding copyright ownership.  The ASF licenses this file
+    to you under the Apache License, Version 2.0 (the
+    "License"); you may not use this file except in compliance
+    with the License.  You may obtain a copy of the License at
+
+      http://www.apache.org/licenses/LICENSE-2.0
+
+    Unless required by applicable law or agreed to in writing,
+    software distributed under the License is distributed on an
+    "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+    KIND, either express or implied.  See the License for the
+    specific language governing permissions and limitations
+    under the License.
+-->
+
+<!DOCTYPE html>
+<html lang="en">
+	<head>
+		<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
+		<meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, user-scalable=no, width=device-width">
+		<meta name="generator" content="joDoc">
+		<link rel="stylesheet" type="text/css" href="index.css">
+		<link rel="stylesheet" type="text/css" href="mobile.css" media="only screen and (max-device-width: 1024px)">
+		<title>PhoneGap API Documentation</title>
+	</head>
+	<body>
+		
+		<div id="header">
+			<h1><a href="index.html">Phone<strong>Gap</strong> Documentation</a></h1>
+			<small></small>
+		</div>
+		<div id="subheader">
+			<h1>Geolocation</h1>
+			<small></small>
+		</div>
+		
+		<div id="sidebar">
+			<div class="vertical_divider"></div>
+			<h1>API Reference</h1>
+			<ul>
+				<li><a href="phonegap_accelerometer_accelerometer.md.html">Accelerometer</a></li>
+				<li><a href="phonegap_camera_camera.md.html">Camera</a></li>
+				<li><a href="phonegap_media_capture.md.html">Capture</a></li>
+				<li><a href="phonegap_device_device.md.html">Device</a></li>
+				<li><a href="phonegap_events_events.md.html">Events</a></li>
+				<li><a href="phonegap_file_file.md.html">File</a></li>
+				<li><a href="phonegap_geolocation_geolocation.md.html">Geolocation</a></li>
+				<li><a href="phonegap_media_media.md.html">Media</a></li>
+				<li><a href="phonegap_notification_notification.md.html">Notification</a></li>
+				<li><a href="phonegap_storage_storage.md.html">Storage</a></li>
+			</ul>
+			<h1></h1>
+			<ul>
+				<li><a href="_index.html">Keyword Index</a></li>
+			</ul>
+		</div>
+		
+		<div id="content">
+			<div id="home">
+    <h1><a name="API Reference">API Reference</a></h1>
+    <ul>
+        <li>
+            <h2><a href="phonegap_accelerometer_accelerometer.md.html#Accelerometer">Accelerometer</a></h2>
+            <span>Tap into the device's motion sensor.</span>
+        </li>
+        <li>
+            <h2><a href="phonegap_camera_camera.md.html#Camera">Camera</a></h2>
+            <span>Capture photo using the device's camera.</span>
+        </li>
+        <li>
+            <h2><a href="phonegap_media_capture.md.html#Capture">Capture</a></h2>
+            <span>Capture media using device applications.</span>
+        </li>
+        <li>
+            <h2><a href="phonegap_device_device.md.html#Device">Device</a></h2>
+            <span>Gather device specific information.</span>
+        </li>
+        <li>
+            <h2><a href="phonegap_events_events.md.html#Events">Events</a></h2>
+            <span>Hook into native events through JavaScript.</span>
+        </li>
+        <li>
+            <h2><a href="phonegap_file_file.md.html#File">File</a></h2>
+            <span>Hook into native file system through JavaScript.</span>
+        </li>
+        <li>
+            <h2><a href="phonegap_geolocation_geolocation.md.html#Geolocation">Geolocation</a></h2>
+            <span>Make your application location aware.</span>
+        </li>
+        <li>
+            <h2><a href="phonegap_media_media.md.html#Media">Media</a></h2>
+            <span>Record and play back audio.</span>
+        </li>
+        <li>
+            <h2><a href="phonegap_notification_notification.md.html#Notification">Notification</a></h2>
+            <span>Visual, audible, and tactile device notifications.</span>
+        </li>
+        <li>
+            <h2><a href="phonegap_storage_storage.md.html#Storage">Storage</a></h2>
+            <span>Hook into the native devices storage options.</span>
+        </li>
+    </ul>
+</div>
+
+		</div>
+		
+	</body>
+</html>
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/incubator-cordova-docs/blob/e0d6b692/spec/cordova/update_keyword_index_spec.rb
----------------------------------------------------------------------
diff --git a/spec/cordova/update_keyword_index_spec.rb b/spec/cordova/update_keyword_index_spec.rb
new file mode 100644
index 0000000..96f855c
--- /dev/null
+++ b/spec/cordova/update_keyword_index_spec.rb
@@ -0,0 +1,66 @@
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements.  See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership.  The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License.  You may obtain a copy of the License at
+# 
+#  http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied.  See the License for the
+# specific language governing permissions and limitations
+# under the License.
+
+$:.unshift File.join(File.dirname(__FILE__), '..')
+require 'spec_helpers'
+require 'update_keyword_index'
+require 'rubygems'
+require 'nokogiri'
+
+describe UpdateKeywordIndex do
+  before :each do
+    directory = Helper::create_tmp_directory_assets(__FILE__)
+    @file = File.join(directory, '_index.html')
+    @update_keyword = UpdateKeywordIndex.new
+  end
+  
+  it 'should skip all files but _index.html' do
+    # All false
+    @update_keyword.run('index.html').should    be_false
+    @update_keyword.run('index.htm').should     be_false
+    @update_keyword.run('_index.htm').should    be_false
+    @update_keyword.run('index.md.html').should be_false
+  end
+  
+  it 'should rename the title' do
+    Nokogiri::HTML(File.read @file).css('#subheader > h1' )[0].content.should_not == @update_keyword.header_title
+    @update_keyword.run @file
+    Nokogiri::HTML(File.read @file).css('#subheader > h1' )[0].content.should     == @update_keyword.header_title
+  end
+  
+  it 'should rename the h1' do
+    Nokogiri::HTML(File.read @file).css('#content > h1')[0].content.should_not == @update_keyword.content_title
+    @update_keyword.run @file
+    Nokogiri::HTML(File.read @file).css('#content > h1')[0].content.should     == @update_keyword.content_title
+  end
+  
+  it 'should remove the <hr/>' do
+    Nokogiri::HTML(File.read @file).css('#content > hr').should have_at_least(1).items
+    @update_keyword.run @file
+    Nokogiri::HTML(File.read @file).css('#content > hr').should have(0).items
+  end
+  
+  it 'should update references from index.md.html to index.html' do
+    Nokogiri::HTML(File.read @file).to_html.scan('index.md.html').length.should_not == 0
+    @update_keyword.run @file
+    Nokogiri::HTML(File.read @file).to_html.scan('index.md.html').length.should     == 0
+  end
+  
+  after :all do
+    Helper::remove_tmp_directory
+  end
+end
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/incubator-cordova-docs/blob/e0d6b692/spec/cordova/update_keyword_index_spec/_index.html
----------------------------------------------------------------------
diff --git a/spec/cordova/update_keyword_index_spec/_index.html b/spec/cordova/update_keyword_index_spec/_index.html
new file mode 100644
index 0000000..ac5f59a
--- /dev/null
+++ b/spec/cordova/update_keyword_index_spec/_index.html
@@ -0,0 +1,155 @@
+<!--
+    Licensed to the Apache Software Foundation (ASF) under one
+    or more contributor license agreements.  See the NOTICE file
+    distributed with this work for additional information
+    regarding copyright ownership.  The ASF licenses this file
+    to you under the Apache License, Version 2.0 (the
+    "License"); you may not use this file except in compliance
+    with the License.  You may obtain a copy of the License at
+
+      http://www.apache.org/licenses/LICENSE-2.0
+
+    Unless required by applicable law or agreed to in writing,
+    software distributed under the License is distributed on an
+    "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+    KIND, either express or implied.  See the License for the
+    specific language governing permissions and limitations
+    under the License.
+-->
+
+<!DOCTYPE html>
+<html lang="en">
+<head>
+<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
+<meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, user-scalable=no, width=device-width">
+<meta name="generator" content="joDoc">
+<link rel="stylesheet" type="text/css" href="index.css">
+<title>PhoneGap API Documentation</title>
+</head>
+<body>
+		
+		<div id="header">
+			<h1>Phone<strong>Gap</strong> Documentation</h1>
+			<small></small>
+		</div>
+		<div id="subheader">
+			<h1>Index</h1>
+			<small>
+				<select><option>Quick Jump...</option>
+<option>Geolocation</option>
+<option>getCurrentPosition</option>
+<option>    - Description</option>
+<option>    - Quick Example</option>
+<option>    - Full Example</option>
+<option>    - iPhone Quirks</option>
+<option>watchPosition</option>
+<option>    - Description</option>
+<option>    - Quick Example</option>
+<option>    - Full Example</option>
+<option>    - iPhone Quirks</option>
+<option>clearWatch</option>
+<option>    - Description</option>
+<option>    - Quick Example</option>
+<option>    - Full Example</option>
+<option>    - iPhone Quirks</option></select></small>
+		</div>
+		
+		<div id="sidebar">
+			<div class="vertical_divider"></div>
+			<h1>API Reference</h1>
+			<ul>
+<li><a href="phonegap_accelerometer_accelerometer.md.html">Accelerometer</a></li>
+				<li><a href="phonegap_camera_camera.md.html">Camera</a></li>
+				<li><a href="phonegap_media_capture.md.html">Capture</a></li>
+				<li><a href="phonegap_device_device.md.html">Device</a></li>
+				<li><a href="phonegap_events_events.md.html">Events</a></li>
+				<li><a href="phonegap_geolocation_geolocation.md.html">Geolocation</a></li>
+				<li><a href="phonegap_notification_notification.md.html">Notification</a></li>
+			</ul>
+<h1></h1>
+			<ul>
+<li><a href="_index.html">Keyword Index</a></li>
+			</ul>
+</div>
+		
+		<div id="content">
+			
+
+<hr>
+<h1>Index</h1>
+<div id="index">
+
+<h2>A</h2>
+
+<ul>
+<li><a href="introduction.md.html#About">About</a></li>
+<li><a href="phonegap_accelerometer_accelerometer.md.html#Acceleration">Acceleration</a></li>
+<li><a href="phonegap_accelerometer_accelerometer.md.html#Accelerometer">Accelerometer</a></li>
+<li><a href="phonegap_accelerometer_accelerometer.md.html#accelerometer.clearWatch">accelerometer.clearWatch</a></li>
+<li><a href="phonegap_accelerometer_accelerometer.md.html#accelerometer.getCurrentAcceleration">accelerometer.getCurrentAcceleration</a></li>
+<li><a href="phonegap_accelerometer_accelerometer.md.html#accelerometer.watchAcceleration">accelerometer.watchAcceleration</a></li>
+<li><a href="phonegap_accelerometer_accelerometer.md.html#accelerometerError">accelerometerError</a></li>
+<li><a href="phonegap_accelerometer_accelerometer.md.html#accelerometerOptions">accelerometerOptions</a></li>
+<li><a href="phonegap_accelerometer_accelerometer.md.html#accelerometerSuccess">accelerometerSuccess</a></li>
+<li><a href="introduction.md.html#Application%20Template">Application Template</a></li>
+<li><a href="index.md.html#API%20Reference">API Reference</a></li>
+</ul>
+<h2>C</h2>
+
+<ul>
+<li><a href="phonegap_camera_camera.md.html#Camera">Camera</a></li>
+<li><a href="phonegap_camera_camera.md.html#camera.getPicture">camera.getPicture</a></li>
+<li><a href="phonegap_camera_camera.md.html#cameraError">cameraError</a></li>
+<li><a href="phonegap_camera_camera.md.html#cameraOptions">cameraOptions</a></li>
+<li><a href="phonegap_camera_camera.md.html#cameraSuccess">cameraSuccess</a></li>
+<li><a href="phonegap_geolocation_geolocation.md.html#Coordinates">Coordinates</a></li>
+</ul>
+<h2>D</h2>
+
+<ul>
+<li><a href="phonegap_device_device.md.html#Device">Device</a></li>
+<li><a href="phonegap_device_device.md.html#device.name">device.name</a></li>
+<li><a href="phonegap_device_device.md.html#device.platform">device.platform</a></li>
+<li><a href="phonegap_device_device.md.html#device.uuid">device.uuid</a></li>
+<li><a href="phonegap_device_device.md.html#device.version">device.version</a></li>
+<li><a href="phonegap_events_events.md.html#deviceready">deviceready</a></li>
+</ul>
+<h2>E</h2>
+
+<ul>
+<li><a href="phonegap_events_events.md.html#Events">Events</a></li>
+</ul>
+<h2>G</h2>
+
+<ul>
+<li><a href="phonegap_geolocation_geolocation.md.html#Geolocation">Geolocation</a></li>
+<li><a href="phonegap_geolocation_geolocation.md.html#geolocation.clearWatch">geolocation.clearWatch</a></li>
+<li><a href="phonegap_geolocation_geolocation.md.html#geolocation.getCurrentPosition">geolocation.getCurrentPosition</a></li>
+<li><a href="phonegap_geolocation_geolocation.md.html#geolocation.watchPosition">geolocation.watchPosition</a></li>
+<li><a href="phonegap_geolocation_geolocation.md.html#geolocationError">geolocationError</a></li>
+<li><a href="phonegap_geolocation_geolocation.md.html#geolocationOptions">geolocationOptions</a></li>
+<li><a href="phonegap_geolocation_geolocation.md.html#geolocationSuccess">geolocationSuccess</a></li>
+<li><a href="introduction.md.html#Getting%20Started">Getting Started</a></li>
+</ul>
+<h2>N</h2>
+
+<h2>P</h2>
+
+<ul>
+<li><a href="introduction.md.html#PhoneGap%20API%20Documentation">PhoneGap API Documentation</a></li>
+<li><a href="phonegap_geolocation_geolocation.md.html#Position">Position</a></li>
+</ul>
+<h2>R</h2>
+
+<ul>
+<li><a href="phonegap_network_network.md.html#reachableCallback">reachableCallback</a></li>
+<li><a href="phonegap_network_network.md.html#reachableHostname">reachableHostname</a></li>
+<li><a href="phonegap_network_network.md.html#reachableOptions">reachableOptions</a></li>
+</ul>
+</div>
+
+
+		</div>
+		
+	</body>
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-cordova-docs/blob/e0d6b692/spec/cordova/yaml_front_matter_spec.rb
----------------------------------------------------------------------
diff --git a/spec/cordova/yaml_front_matter_spec.rb b/spec/cordova/yaml_front_matter_spec.rb
new file mode 100644
index 0000000..74e969e
--- /dev/null
+++ b/spec/cordova/yaml_front_matter_spec.rb
@@ -0,0 +1,56 @@
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements.  See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership.  The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License.  You may obtain a copy of the License at
+# 
+#  http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied.  See the License for the
+# specific language governing permissions and limitations
+# under the License.
+
+$:.unshift File.join(File.dirname(__FILE__), '..')
+require 'spec_helpers'
+require 'yaml_front_matter'
+
+describe YamlFrontMatter do
+  before :each do
+    directory = Helper::create_tmp_directory_assets(__FILE__)
+    @file = {
+      :yaml    => File.join(directory, 'has_yaml.md'),
+      :no_yaml => File.join(directory, 'no_yaml.md')
+    }
+    @yaml_front_matter = YamlFrontMatter.new
+  end
+    
+  it 'should skip files with no YAML Front Matter' do
+    expected_data = File.read(@file[:no_yaml])
+    @yaml_front_matter.run(@file[:no_yaml]).should == {}
+    actual_data = File.read(@file[:no_yaml])
+    
+    actual_data.should == expected_data
+  end
+  
+  it 'should parse files with YAML Front Matter' do
+    @yaml_front_matter.run(@file[:yaml]).should == {
+      'platforms' => 'Android, BlackBerry, iOS',
+      'type'      => 'Function'
+    }
+  end
+  
+  it 'should strip YAML Front Matter from the file' do
+    File.read(@file[:yaml]).should match(/\A\W+/)
+    @yaml_front_matter.run(@file[:yaml])
+    File.read(@file[:yaml]).should_not match(/\A\W+/) # No whitespace
+  end
+  
+  after :all do
+    Helper::remove_tmp_directory
+  end
+end
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/incubator-cordova-docs/blob/e0d6b692/spec/cordova/yaml_front_matter_spec/has_yaml.md
----------------------------------------------------------------------
diff --git a/spec/cordova/yaml_front_matter_spec/has_yaml.md b/spec/cordova/yaml_front_matter_spec/has_yaml.md
new file mode 100644
index 0000000..6f3e750
--- /dev/null
+++ b/spec/cordova/yaml_front_matter_spec/has_yaml.md
@@ -0,0 +1,13 @@
+---
+platforms: Android, BlackBerry, iOS
+type: Function
+---
+
+
+
+
+
+PhoneGap
+========
+
+It's a fun place to be
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/incubator-cordova-docs/blob/e0d6b692/spec/cordova/yaml_front_matter_spec/no_yaml.md
----------------------------------------------------------------------
diff --git a/spec/cordova/yaml_front_matter_spec/no_yaml.md b/spec/cordova/yaml_front_matter_spec/no_yaml.md
new file mode 100644
index 0000000..d8b5837
--- /dev/null
+++ b/spec/cordova/yaml_front_matter_spec/no_yaml.md
@@ -0,0 +1,4 @@
+PhoneGap II
+===========
+
+The return of the system admin.
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/incubator-cordova-docs/blob/e0d6b692/spec/phonegap/add_title_spec.rb
----------------------------------------------------------------------
diff --git a/spec/phonegap/add_title_spec.rb b/spec/phonegap/add_title_spec.rb
deleted file mode 100644
index 8214eb0..0000000
--- a/spec/phonegap/add_title_spec.rb
+++ /dev/null
@@ -1,52 +0,0 @@
-# Licensed to the Apache Software Foundation (ASF) under one
-# or more contributor license agreements.  See the NOTICE file
-# distributed with this work for additional information
-# regarding copyright ownership.  The ASF licenses this file
-# to you under the Apache License, Version 2.0 (the
-# "License"); you may not use this file except in compliance
-# with the License.  You may obtain a copy of the License at
-# 
-#  http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-# KIND, either express or implied.  See the License for the
-# specific language governing permissions and limitations
-# under the License.
-
-$: << File.join(File.dirname(__FILE__), '..')
-$: << File.join(File.dirname(__FILE__), '..', '..', 'lib', 'cordova')
-require 'spec_helpers'
-require 'add_title'
-require 'nokogiri'  # Nokogiri may not be the best way to test this suite. Any thoughts?
-
-describe AddTitle do
-  # Create a fresh copy of the test file for each test run
-  before :all do
-    tmp_directory = Helper::create_tmp_directory_assets(__FILE__)
-    @file = {
-      :normal    => File.join(tmp_directory, 'example.html'),
-      :no_source => File.join(tmp_directory, 'example_no_source.html'),
-      :no_target => File.join(tmp_directory, 'example_no_target.html')
-    }
-    @add_title = AddTitle.new
-  end
-
-  it 'should set the title' do
-    @add_title.run(@file[:normal]).should == 'Accelerometer'
-    Nokogiri::HTML(File.read @file[:normal]).css('#subheader > h1')[0].content.should == 'Accelerometer'
-  end
-  
-  it 'should skip files with no source title' do
-    @add_title.run(@file[:no_source]).should be_nil
-  end
-  
-  it 'should skip files with no target title' do
-    @add_title.run(@file[:no_target]).should be_nil
-  end
-  
-  after :all do
-    Helper::remove_tmp_directory
-  end
-end
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/incubator-cordova-docs/blob/e0d6b692/spec/phonegap/add_title_spec/example.html
----------------------------------------------------------------------
diff --git a/spec/phonegap/add_title_spec/example.html b/spec/phonegap/add_title_spec/example.html
deleted file mode 100644
index 9918a71..0000000
--- a/spec/phonegap/add_title_spec/example.html
+++ /dev/null
@@ -1,547 +0,0 @@
-<!--
-	Licensed to the Apache Software Foundation (ASF) under one
-	or more contributor license agreements.  See the NOTICE file
-	distributed with this work for additional information
-	regarding copyright ownership.  The ASF licenses this file
-	to you under the Apache License, Version 2.0 (the
-	"License"); you may not use this file except in compliance
-	with the License.  You may obtain a copy of the License at
-
-	  http://www.apache.org/licenses/LICENSE-2.0
-
-	Unless required by applicable law or agreed to in writing,
-	software distributed under the License is distributed on an
-	"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-	KIND, either express or implied.  See the License for the
-	specific language governing permissions and limitations
-	under the License.
--->
-
-<!DOCTYPE html>
-<html lang="en">
-	<head>
-		<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
-		<meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, user-scalable=no, width=device-width">
-		<meta name="generator" content="joDoc">
-		<link rel="stylesheet" type="text/css" href="index.css">
-		<title>PhoneGap API Documentation</title>
-	</head>
-	<body>
-		
-		<div id="header">
-			<h1>Phone<strong>Gap</strong> Documentation</h1>
-			<small></small>
-		</div>
-		<div id="subheader">
-			<h1>[ Object Title Goes Here ]</h1>
-			<small>
-				<select>
-					<option>Quick Jump...</option>
-					<option>Geolocation</option>
-					<option>getCurrentPosition</option>
-					<option>&nbsp;&nbsp;&nbsp;&nbsp;- Description</option>
-					<option>&nbsp;&nbsp;&nbsp;&nbsp;- Quick Example</option>
-					<option>&nbsp;&nbsp;&nbsp;&nbsp;- Full Example</option>
-					<option>&nbsp;&nbsp;&nbsp;&nbsp;- iPhone Quirks</option>
-					<option>watchPosition</option>
-					<option>&nbsp;&nbsp;&nbsp;&nbsp;- Description</option>
-					<option>&nbsp;&nbsp;&nbsp;&nbsp;- Quick Example</option>
-					<option>&nbsp;&nbsp;&nbsp;&nbsp;- Full Example</option>
-					<option>&nbsp;&nbsp;&nbsp;&nbsp;- iPhone Quirks</option>
-					<option>clearWatch</option>
-					<option>&nbsp;&nbsp;&nbsp;&nbsp;- Description</option>
-					<option>&nbsp;&nbsp;&nbsp;&nbsp;- Quick Example</option>
-					<option>&nbsp;&nbsp;&nbsp;&nbsp;- Full Example</option>
-					<option>&nbsp;&nbsp;&nbsp;&nbsp;- iPhone Quirks</option>
-				</select>
-			</small>
-		</div>
-		
-		<div id="sidebar">
-			<div class="vertical_divider"></div>
-			<h1>API Reference</h1>
-			<ul>
-				<li><a href="phonegap_accelerometer_accelerometer.md.html">Accelerometer</a></li>
-				<li><a href="phonegap_camera_camera.md.html">Camera</a></li>
-				<li><a href="phonegap_device_device.md.html">Device</a></li>
-				<li><a href="phonegap_events_events.md.html">Events</a></li>
-				<li><a href="phonegap_geolocation_geolocation.md.html">Geolocation</a></li>
-				<li><a href="phonegap_notification_notification.md.html">Notification</a></li>
-			</ul>
-		</div>
-		
-		<div id="content">
-			<h1><a name="Accelerometer">Accelerometer</a></h1>
-
-<blockquote>
-  <p>Captures device motion in the x, y, and z direction.</p>
-</blockquote>
-
-<h2>Methods</h2>
-
-<ul>
-<li><a href="phonegap_accelerometer_accelerometer.md.html#accelerometer.getCurrentAcceleration">accelerometer.getCurrentAcceleration</a></li>
-<li><a href="phonegap_accelerometer_accelerometer.md.html#accelerometer.watchAcceleration">accelerometer.watchAcceleration</a></li>
-<li><a href="phonegap_accelerometer_accelerometer.md.html#accelerometer.clearWatch">accelerometer.clearWatch</a></li>
-</ul>
-
-<h2>Arguments</h2>
-
-<ul>
-<li><a href="phonegap_accelerometer_accelerometer.md.html#accelerometerSuccess">accelerometerSuccess</a></li>
-<li><a href="phonegap_accelerometer_accelerometer.md.html#accelerometerError">accelerometerError</a></li>
-<li><a href="phonegap_accelerometer_accelerometer.md.html#accelerometerOptions">accelerometerOptions</a></li>
-</ul>
-
-<h2>Objects (Read-Only)</h2>
-
-<ul>
-<li><a href="phonegap_accelerometer_accelerometer.md.html#Acceleration">Acceleration</a></li>
-</ul>
-
-<hr />
-
-<h1><a name="accelerometer.getCurrentAcceleration">accelerometer.getCurrentAcceleration</a></h1>
-
-<p>Get the current acceleration along the x, y, and z axis.</p>
-
-<pre><code>navigator.accelerometer.getCurrentAcceleration(<a href="phonegap_accelerometer_accelerometer.md.html#accelerometerSuccess">accelerometerSuccess</a>, <a href="phonegap_accelerometer_accelerometer.md.html#accelerometerError">accelerometerError</a>);
-</code></pre>
-
-<h2>Description</h2>
-
-<p>The accelerometer is a motion sensor that detects the change (delta) in movement relative to the current position. The accelerometer can detect 3D movement along the x, y, and z axis.</p>
-
-<p>The acceleration is returned using the <code><a href="phonegap_accelerometer_accelerometer.md.html#accelerometerSuccess">accelerometerSuccess</a></code> callback function.</p>
-
-<h2>Supported Platforms</h2>
-
-<ul>
-<li>iPhone</li>
-</ul>
-
-<h2>Quick Example</h2>
-
-<pre><code>function onSuccess(acceleration) {
-    alert('<a href="phonegap_accelerometer_accelerometer.md.html#Acceleration">Acceleration</a> X: ' + acceleration.x + '\n' +
-          '<a href="phonegap_accelerometer_accelerometer.md.html#Acceleration">Acceleration</a> Y: ' + acceleration.y + '\n' +
-          '<a href="phonegap_accelerometer_accelerometer.md.html#Acceleration">Acceleration</a> Z: ' + acceleration.z + '\n';
-};
-
-function onError() {
-    alert('onError!');
-};
-
-navigator.<a href="phonegap_accelerometer_accelerometer.md.html#accelerometer.getCurrentAcceleration">accelerometer.getCurrentAcceleration</a>(onSuccess, onError);
-</code></pre>
-
-<h2>Full Example</h2>
-
-<pre><code>&lt;!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
-                      "http://www.w3.org/TR/html4/strict.dtd"&gt;
-&lt;html&gt;
-  &lt;head&gt;
-    &lt;title&gt;<a href="phonegap_accelerometer_accelerometer.md.html#Acceleration">Acceleration</a> Example&lt;/title&gt;
-
-    &lt;script type="text/javascript" charset="utf-8" src="phonegap.js"&gt;&lt;/script&gt;
-    &lt;script type="text/javascript" charset="utf-8"&gt;
-
-    // Wait for PhoneGap to load
-    //
-    function onLoad() {
-        document.addEventListener("<a href="phonegap_events_events.md.html#deviceready">deviceready</a>", onDeviceReady, false);
-    }
-
-    // PhoneGap is ready
-    //
-    function onDeviceReady() {
-        navigator.<a href="phonegap_accelerometer_accelerometer.md.html#accelerometer.getCurrentAcceleration">accelerometer.getCurrentAcceleration</a>(onSuccess, onError);
-    }
-
-    // onSuccess: Get a snapshot of the current acceleration
-    //
-    function onSuccess(acceleration) {
-        alert('<a href="phonegap_accelerometer_accelerometer.md.html#Acceleration">Acceleration</a> X: ' + acceleration.x + '\n' +
-              '<a href="phonegap_accelerometer_accelerometer.md.html#Acceleration">Acceleration</a> Y: ' + acceleration.y + '\n' +
-              '<a href="phonegap_accelerometer_accelerometer.md.html#Acceleration">Acceleration</a> Z: ' + acceleration.z + '\n');
-    }
-
-    // onError: Failed to get the acceleration
-    //
-    function onError() {
-        alert('onError!');
-    }
-
-    &lt;/script&gt;
-  &lt;/head&gt;
-  &lt;body onload="onLoad()"&gt;
-    &lt;h1&gt;Example&lt;/h1&gt;
-    &lt;p&gt;getCurrentAcceleration&lt;/p&gt;
-  &lt;/body&gt;
-&lt;/html&gt;
-</code></pre>
-
-<h2>iPhone Quirks</h2>
-
-<ul>
-<li>iPhone doesn't have the concept of getting the current acceleration at any given point.</li>
-<li>You must watch the acceleration and capture the data at given time intervals.</li>
-<li>Thus, the <code>getCurrentAcceleration</code> function will give you the last value reported from a phoneGap <code>watchAccelerometer</code> call.</li>
-</ul>
-
-<hr />
-
-<h1><a name="accelerometer.watchAcceleration">accelerometer.watchAcceleration</a></h1>
-
-<p>At a regular interval, get the acceleration along the x, y, and z axis.</p>
-
-<pre><code>var watchID = navigator.accelerometer.watchAcceleration(<a href="phonegap_accelerometer_accelerometer.md.html#accelerometerSuccess">accelerometerSuccess</a>,
-                                                       <a href="phonegap_accelerometer_accelerometer.md.html#accelerometerError">accelerometerError</a>,
-                                                       [<a href="phonegap_accelerometer_accelerometer.md.html#accelerometerOptions">accelerometerOptions</a>]);
-</code></pre>
-
-<h2>Description</h2>
-
-<p>The accelerometer is a motion sensor that detects the change (delta) in movement relative to the current position. The accelerometer can detect 3D movement along the x, y, and z axis.</p>
-
-<p>The <code><a href="phonegap_accelerometer_accelerometer.md.html#accelerometer.watchAcceleration">accelerometer.watchAcceleration</a></code> gets the device's current acceleration at a regular interval. Each time the <code><a href="phonegap_accelerometer_accelerometer.md.html#Acceleration">Acceleration</a></code> is retrieved, the <code><a href="phonegap_accelerometer_accelerometer.md.html#accelerometerSuccess">accelerometerSuccess</a></code> callback function is executed. Specify the interval in milliseconds via the <code>frequency</code> parameter in the <code>acceleratorOptions</code> object.</p>
-
-<p>The returned watch ID references references the accelerometer watch interval. The watch ID can be used with <code><a href="phonegap_accelerometer_accelerometer.md.html#accelerometer.clearWatch">accelerometer.clearWatch</a></code> to stop watching the accelerometer.</p>
-
-<h2>Supported Platforms</h2>
-
-<ul>
-<li>iPhone</li>
-</ul>
-
-<h2>Quick Example</h2>
-
-<pre><code>function onSuccess(acceleration) {
-    alert('<a href="phonegap_accelerometer_accelerometer.md.html#Acceleration">Acceleration</a> X: ' + acceleration.x + '\n' +
-          '<a href="phonegap_accelerometer_accelerometer.md.html#Acceleration">Acceleration</a> Y: ' + acceleration.y + '\n' +
-          '<a href="phonegap_accelerometer_accelerometer.md.html#Acceleration">Acceleration</a> Z: ' + acceleration.z + '\n');
-};
-
-function onError() {
-    alert('onError!');
-};
-
-var options = { frequency: 3000 };  // Update every 3 seconds
-
-var watchID = navigator.<a href="phonegap_accelerometer_accelerometer.md.html#accelerometer.watchAcceleration">accelerometer.watchAcceleration</a>(onSuccess, onError, options);
-</code></pre>
-
-<h2>Full Example</h2>
-
-<pre><code>&lt;!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
-                      "http://www.w3.org/TR/html4/strict.dtd"&gt;
-&lt;html&gt;
-  &lt;head&gt;
-    &lt;title&gt;<a href="phonegap_accelerometer_accelerometer.md.html#Acceleration">Acceleration</a> Example&lt;/title&gt;
-
-    &lt;script type="text/javascript" charset="utf-8" src="phonegap.js"&gt;&lt;/script&gt;
-    &lt;script type="text/javascript" charset="utf-8"&gt;
-
-    // The watch id references the current `watchAcceleration`
-    var watchID = null;
-
-    // Wait for PhoneGap to load
-    //
-    function onLoad() {
-        document.addEventListener("<a href="phonegap_events_events.md.html#deviceready">deviceready</a>", onDeviceReady, false);
-    }
-
-    // PhoneGap is ready
-    //
-    function onDeviceReady() {
-        startWatch();
-    }
-
-    // Start watching the acceleration
-    //
-    function startWatch() {
-
-        // Update acceleration every 3 seconds
-        var options = { frequency: 3000 };
-
-        watchID = navigator.<a href="phonegap_accelerometer_accelerometer.md.html#accelerometer.watchAcceleration">accelerometer.watchAcceleration</a>(onSuccess, onError, options);
-    }
-
-    // Stop watching the acceleration
-    //
-    function stopWatch() {
-        if (watchID) {
-            navigator.<a href="phonegap_accelerometer_accelerometer.md.html#accelerometer.clearWatch">accelerometer.clearWatch</a>(watchID);
-            watchID = null;
-        }
-    }
-
-    // onSuccess: Get a snapshot of the current acceleration
-    //
-    function onSuccess(acceleration) {
-        var element = document.getElementById('accelerometer');
-        element.innerHTML = '<a href="phonegap_accelerometer_accelerometer.md.html#Acceleration">Acceleration</a> X: ' + acceleration.x + '&lt;br /&gt;' +
-                            '<a href="phonegap_accelerometer_accelerometer.md.html#Acceleration">Acceleration</a> Y: ' + acceleration.y + '&lt;br /&gt;' +
-                            '<a href="phonegap_accelerometer_accelerometer.md.html#Acceleration">Acceleration</a> Z: ' + acceleration.z + '&lt;br /&gt;';
-    }
-
-    // onError: Failed to get the acceleration
-    //
-    function onError() {
-        alert('onError!');
-    }
-
-    &lt;/script&gt;
-  &lt;/head&gt;
-  &lt;body onload="onLoad()"&gt;
-    &lt;div id="accelerometer"&gt;Waiting for accelerometer...&lt;/div&gt;
-  &lt;/body&gt;
-&lt;/html&gt;
-</code></pre>
-
-<h2> iPhone Quirks</h2>
-
-<ul>
-<li>At the interval requested, PhoneGap will call the success callback function and pass the accelerometer results.</li>
-<li>However, in requests to the device PhoneGap restricts the interval to minimum of every 40ms and a maximum of every 1000ms.
-<ul>
-<li>For example, if you request an interval of 3 seconds (3000ms), PhoneGap will request an interval of 1 second from the device but invoke the success callback at the requested interval of 3 seconds.</li>
-</ul></li>
-</ul>
-
-<hr />
-
-<h1><a name="accelerometer.clearWatch">accelerometer.clearWatch</a></h1>
-
-<p>Stop watching the <code><a href="phonegap_accelerometer_accelerometer.md.html#Acceleration">Acceleration</a></code> referenced by the watch ID parameter.</p>
-
-<pre><code>navigator.<a href="phonegap_accelerometer_accelerometer.md.html#accelerometer.clearWatch">accelerometer.clearWatch</a>(watchID);
-</code></pre>
-
-<ul>
-<li><strong>watchID</strong>: The ID returned by <code><a href="phonegap_accelerometer_accelerometer.md.html#accelerometer.watchAcceleration">accelerometer.watchAcceleration</a></code>.</li>
-</ul>
-
-<h2>Supported Platforms</h2>
-
-<ul>
-<li>iPhone</li>
-</ul>
-
-<h2>Quick Example</h2>
-
-<pre><code>var watchID = navigator.<a href="phonegap_accelerometer_accelerometer.md.html#accelerometer.watchAcceleration">accelerometer.watchAcceleration</a>(onSuccess, onError, options);
-
-// ... later on ...
-
-navigator.<a href="phonegap_accelerometer_accelerometer.md.html#accelerometer.clearWatch">accelerometer.clearWatch</a>(watchID);
-</code></pre>
-
-<h2>Full Example</h2>
-
-<pre><code>&lt;!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
-                      "http://www.w3.org/TR/html4/strict.dtd"&gt;
-&lt;html&gt;
-  &lt;head&gt;
-    &lt;title&gt;<a href="phonegap_accelerometer_accelerometer.md.html#Acceleration">Acceleration</a> Example&lt;/title&gt;
-
-    &lt;script type="text/javascript" charset="utf-8" src="phonegap.js"&gt;&lt;/script&gt;
-    &lt;script type="text/javascript" charset="utf-8"&gt;
-
-    // The watch id references the current `watchAcceleration`
-    var watchID = null;
-
-    // Wait for PhoneGap to load
-    //
-    function onLoad() {
-        document.addEventListener("<a href="phonegap_events_events.md.html#deviceready">deviceready</a>", onDeviceReady, false);
-    }
-
-    // PhoneGap is ready
-    //
-    function onDeviceReady() {
-        startWatch();
-    }
-
-    // Start watching the acceleration
-    //
-    function startWatch() {
-
-        // Update acceleration every 3 seconds
-        var options = { frequency: 3000 };
-
-        watchID = navigator.<a href="phonegap_accelerometer_accelerometer.md.html#accelerometer.watchAcceleration">accelerometer.watchAcceleration</a>(onSuccess, onError, options);
-    }
-
-    // Stop watching the acceleration
-    //
-    function stopWatch() {
-        if (watchID) {
-            navigator.<a href="phonegap_accelerometer_accelerometer.md.html#accelerometer.clearWatch">accelerometer.clearWatch</a>(watchID);
-            watchID = null;
-        }
-    }
-
-    // onSuccess: Get a snapshot of the current acceleration
-    //
-    function onSuccess(acceleration) {
-        var element = document.getElementById('accelerometer');
-        element.innerHTML = '<a href="phonegap_accelerometer_accelerometer.md.html#Acceleration">Acceleration</a> X: ' + acceleration.x + '&lt;br /&gt;' +
-                            '<a href="phonegap_accelerometer_accelerometer.md.html#Acceleration">Acceleration</a> Y: ' + acceleration.y + '&lt;br /&gt;' +
-                            '<a href="phonegap_accelerometer_accelerometer.md.html#Acceleration">Acceleration</a> Z: ' + acceleration.z + '&lt;br /&gt;';
-    }
-
-    // onError: Failed to get the acceleration
-    //
-    function onError() {
-        alert('onError!');
-    }
-
-    &lt;/script&gt;
-  &lt;/head&gt;
-  &lt;body onload="onLoad()"&gt;
-    &lt;div id="accelerometer"&gt;Waiting for accelerometer...&lt;/div&gt;
-    &lt;button onclick="stopWatch();"&gt;Stop Watching&lt;/button&gt;
-  &lt;/body&gt;
-&lt;/html&gt;
-</code></pre>
-
-<hr />
-
-<h1><a name="Acceleration">Acceleration</a></h1>
-
-<p>Contains <code><a href="phonegap_accelerometer_accelerometer.md.html#Accelerometer">Accelerometer</a></code> data captured at a specific point in time.</p>
-
-<h2>Properties</h2>
-
-<ul>
-<li><strong>x:</strong> Amount of motion on the x-axis. Range [0, 1] (<code>Number</code>)</li>
-<li><strong>y:</strong> Amount of motion on the y-axis. Range [0, 1] (<code>Number</code>)</li>
-<li><strong>z:</strong> Amount of motion on the z-axis. Range [0, 1] (<code>Number</code>)</li>
-<li><strong>timestamp:</strong> Creation timestamp in milliseconds. (<code>DOMTimeStamp</code>)</li>
-</ul>
-
-<h2>Description</h2>
-
-<p>This object is created and populated by PhoneGap, and returned by an <code><a href="phonegap_accelerometer_accelerometer.md.html#Accelerometer">Accelerometer</a></code> method.</p>
-
-<h2>Supported Platforms</h2>
-
-<ul>
-<li>Untested</li>
-</ul>
-
-<h2>Quick Example</h2>
-
-<pre><code>function onSuccess(acceleration) {
-    alert('<a href="phonegap_accelerometer_accelerometer.md.html#Acceleration">Acceleration</a> X: ' + acceleration.x + '\n' +
-          '<a href="phonegap_accelerometer_accelerometer.md.html#Acceleration">Acceleration</a> Y: ' + acceleration.y + '\n' +
-          '<a href="phonegap_accelerometer_accelerometer.md.html#Acceleration">Acceleration</a> Z: ' + acceleration.z + '\n';
-};
-
-function onError() {
-    alert('onError!');
-};
-
-navigator.<a href="phonegap_accelerometer_accelerometer.md.html#accelerometer.getCurrentAcceleration">accelerometer.getCurrentAcceleration</a>(onSuccess, onError);
-</code></pre>
-
-<h2>Full Example</h2>
-
-<pre><code>&lt;!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
-                      "http://www.w3.org/TR/html4/strict.dtd"&gt;
-&lt;html&gt;
-  &lt;head&gt;
-    &lt;title&gt;<a href="phonegap_accelerometer_accelerometer.md.html#Acceleration">Acceleration</a> Example&lt;/title&gt;
-
-    &lt;script type="text/javascript" charset="utf-8" src="phonegap.js"&gt;&lt;/script&gt;
-    &lt;script type="text/javascript" charset="utf-8"&gt;
-
-    // Wait for PhoneGap to load
-    //
-    function onLoad() {
-        document.addEventListener("<a href="phonegap_events_events.md.html#deviceready">deviceready</a>", onDeviceReady, false);
-    }
-
-    // PhoneGap is ready
-    //
-    function onDeviceReady() {
-        navigator.<a href="phonegap_accelerometer_accelerometer.md.html#accelerometer.getCurrentAcceleration">accelerometer.getCurrentAcceleration</a>(onSuccess, onError);
-    }
-
-    // onSuccess: Get a snapshot of the current acceleration
-    //
-    function onSuccess() {
-        alert('<a href="phonegap_accelerometer_accelerometer.md.html#Acceleration">Acceleration</a> X: ' + acceleration.x + '\n' +
-              '<a href="phonegap_accelerometer_accelerometer.md.html#Acceleration">Acceleration</a> Y: ' + acceleration.y + '\n' +
-              '<a href="phonegap_accelerometer_accelerometer.md.html#Acceleration">Acceleration</a> Z: ' + acceleration.z + '\n';
-    }
-
-    // onError: Failed to get the acceleration
-    //
-    function onError() {
-        alert('onError!');
-    }
-
-    &lt;/script&gt;
-  &lt;/head&gt;
-  &lt;body onload="onLoad()"&gt;
-    &lt;h1&gt;Example&lt;/h1&gt;
-    &lt;p&gt;getCurrentAcceleration&lt;/p&gt;
-  &lt;/body&gt;
-&lt;/html&gt;
-</code></pre>
-
-<hr />
-
-<h1><a name="accelerometerSuccess">accelerometerSuccess</a></h1>
-
-<p>onSuccess callback function that provides the <a href="phonegap_accelerometer_accelerometer.md.html#Acceleration">Acceleration</a> information.</p>
-
-<pre><code>function(acceleration) {
-    // Do something
-}
-</code></pre>
-
-<h2>Parameters</h2>
-
-<ul>
-<li><strong>acceleration:</strong> The acceleration at a single moment in time. (<a href="phonegap_accelerometer_accelerometer.md.html#Acceleration">Acceleration</a>)</li>
-</ul>
-
-<h2>Example</h2>
-
-<pre><code>function onSuccess(acceleration) {
-    alert('<a href="phonegap_accelerometer_accelerometer.md.html#Acceleration">Acceleration</a> X: ' + acceleration.x + '\n' +
-          '<a href="phonegap_accelerometer_accelerometer.md.html#Acceleration">Acceleration</a> Y: ' + acceleration.y + '\n' +
-          '<a href="phonegap_accelerometer_accelerometer.md.html#Acceleration">Acceleration</a> Z: ' + acceleration.z + '\n';
-};
-</code></pre>
-
-<hr />
-
-<h1><a name="accelerometerError">accelerometerError</a></h1>
-
-<p>onError callback function for acceleration functions.</p>
-
-<pre><code>function() {
-    // Handle the error
-}
-</code></pre>
-
-<hr />
-
-<h1><a name="accelerometerOptions">accelerometerOptions</a></h1>
-
-<p>An optional parameter to customize the retrieval of the accelerometer.</p>
-
-<h2>Options</h2>
-
-<ul>
-<li><strong>frequency:</strong> How often to retrieve the <code><a href="phonegap_accelerometer_accelerometer.md.html#Acceleration">Acceleration</a></code> in milliseconds. <em>(Number)</em> (Default: 10000)</li>
-</ul>
-
-		</div>
-		
-	</body>
-</html>
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/incubator-cordova-docs/blob/e0d6b692/spec/phonegap/add_title_spec/example_no_source.html
----------------------------------------------------------------------
diff --git a/spec/phonegap/add_title_spec/example_no_source.html b/spec/phonegap/add_title_spec/example_no_source.html
deleted file mode 100644
index 5b60058..0000000
--- a/spec/phonegap/add_title_spec/example_no_source.html
+++ /dev/null
@@ -1,34 +0,0 @@
-<!--
-    Licensed to the Apache Software Foundation (ASF) under one
-    or more contributor license agreements.  See the NOTICE file
-    distributed with this work for additional information
-    regarding copyright ownership.  The ASF licenses this file
-    to you under the Apache License, Version 2.0 (the
-    "License"); you may not use this file except in compliance
-    with the License.  You may obtain a copy of the License at
-
-      http://www.apache.org/licenses/LICENSE-2.0
-
-    Unless required by applicable law or agreed to in writing,
-    software distributed under the License is distributed on an
-    "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-    KIND, either express or implied.  See the License for the
-    specific language governing permissions and limitations
-    under the License.
--->
-
-<!DOCTYPE html>
-<html lang="en">
-	<head>
-		<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
-		<meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, user-scalable=no, width=device-width">
-		<meta name="generator" content="joDoc">
-		<link rel="stylesheet" type="text/css" href="index.css">
-		<title>PhoneGap API Documentation</title>
-	</head>
-	<body>
-		<div id="subheader">
-			<h1>[ Object Title Goes Here ]</h1>
-		</div>
-	</body>
-</html>
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/incubator-cordova-docs/blob/e0d6b692/spec/phonegap/add_title_spec/example_no_target.html
----------------------------------------------------------------------
diff --git a/spec/phonegap/add_title_spec/example_no_target.html b/spec/phonegap/add_title_spec/example_no_target.html
deleted file mode 100644
index 4610238..0000000
--- a/spec/phonegap/add_title_spec/example_no_target.html
+++ /dev/null
@@ -1,34 +0,0 @@
-<!--
-    Licensed to the Apache Software Foundation (ASF) under one
-    or more contributor license agreements.  See the NOTICE file
-    distributed with this work for additional information
-    regarding copyright ownership.  The ASF licenses this file
-    to you under the Apache License, Version 2.0 (the
-    "License"); you may not use this file except in compliance
-    with the License.  You may obtain a copy of the License at
-
-      http://www.apache.org/licenses/LICENSE-2.0
-
-    Unless required by applicable law or agreed to in writing,
-    software distributed under the License is distributed on an
-    "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-    KIND, either express or implied.  See the License for the
-    specific language governing permissions and limitations
-    under the License.
--->
-
-<!DOCTYPE html>
-<html lang="en">
-	<head>
-		<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
-		<meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, user-scalable=no, width=device-width">
-		<meta name="generator" content="joDoc">
-		<link rel="stylesheet" type="text/css" href="index.css">
-		<title>PhoneGap API Documentation</title>
-	</head>
-	<body>
-		<div id="content">
-			<h1>Accelerometer</h1>
-		</div>
-	</body>
-</html>
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/incubator-cordova-docs/blob/e0d6b692/spec/phonegap/jodoc_spec.rb
----------------------------------------------------------------------
diff --git a/spec/phonegap/jodoc_spec.rb b/spec/phonegap/jodoc_spec.rb
deleted file mode 100644
index 4efe9c6..0000000
--- a/spec/phonegap/jodoc_spec.rb
+++ /dev/null
@@ -1,44 +0,0 @@
-# Licensed to the Apache Software Foundation (ASF) under one
-# or more contributor license agreements.  See the NOTICE file
-# distributed with this work for additional information
-# regarding copyright ownership.  The ASF licenses this file
-# to you under the Apache License, Version 2.0 (the
-# "License"); you may not use this file except in compliance
-# with the License.  You may obtain a copy of the License at
-# 
-#  http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-# KIND, either express or implied.  See the License for the
-# specific language governing permissions and limitations
-# under the License.
-
-$:.unshift File.join(File.dirname(__FILE__), '..')
-require 'spec_helpers'
-require 'jodoc'
-
-describe JoDoc do
-  before :all do
-    @tmp_public_directory = Helper::tmp_public_directory
-    DocsGenerator.new(Helper::create_tmp_directory_assets, @tmp_public_directory).run
-  end
-  
-  it 'should run on a validate directory' do
-    File.directory?(@tmp_public_directory).should be_true
-  end
-  
-  it 'should not run on a non-existent directory' do
-    bad_input_directory = File.expand_path File.join(File.dirname(__FILE__), 'hello', 'world')
-    lambda { JoDoc.new bad_input_directory,  @tmp_public_directory }.should raise_exception
-  end
-  
-  it 'should generate HTML assets from Markdown' do
-    File.exists?(File.join(@tmp_public_directory, 'en', 'edge', 'phonegap_accelerometer_accelerometer.md.html')).should be_true
-  end
-  
-  after :all do
-    Helper::remove_tmp_directory
-  end
-end

http://git-wip-us.apache.org/repos/asf/incubator-cordova-docs/blob/e0d6b692/spec/phonegap/prettify_spec.rb
----------------------------------------------------------------------
diff --git a/spec/phonegap/prettify_spec.rb b/spec/phonegap/prettify_spec.rb
deleted file mode 100644
index 481c019..0000000
--- a/spec/phonegap/prettify_spec.rb
+++ /dev/null
@@ -1,47 +0,0 @@
-# Licensed to the Apache Software Foundation (ASF) under one
-# or more contributor license agreements.  See the NOTICE file
-# distributed with this work for additional information
-# regarding copyright ownership.  The ASF licenses this file
-# to you under the Apache License, Version 2.0 (the
-# "License"); you may not use this file except in compliance
-# with the License.  You may obtain a copy of the License at
-# 
-#  http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-# KIND, either express or implied.  See the License for the
-# specific language governing permissions and limitations
-# under the License.
-
-$: << File.join(File.dirname(__FILE__), '..', '..', 'lib')
-$: << File.join(File.dirname(__FILE__), '..', '..', 'lib', 'cordova')
-require 'prettify'
-require 'spec_helpers'
-
-describe Prettify do
-  before :each do
-    directory = Helper::create_tmp_directory_assets(__FILE__)
-    @file = {
-      :normal => File.join(directory, 'example.html'),
-    }
-    @prettify = Prettify.new
-  end
-  
-  it 'should find some code blocks' do
-    code_tags = @prettify.run @file[:normal]
-    code_tags.should have_at_least(1).item
-  end
-  
-  it 'should add the prettyprint class to each code block' do
-    @prettify.run @file[:normal]
-    
-    doc = Nokogiri::HTML(File.read @file[:normal])
-    doc.css('#content pre.prettyprint').should have_at_least(1).item
-  end
-  
-  after :all do
-    Helper::remove_tmp_directory
-  end
-end
\ No newline at end of file


Mime
View raw message