Browse Source

Fixed docs (issue #122) and removed unnecessary .html extensions

pull/180/head
Matthew Holt 11 years ago
parent
commit
a3a09146ce
  1. 8
      demo.html
  2. 12
      docs.html
  3. 14
      faq.html
  4. 12
      index.html

8
demo.html

@ -22,10 +22,10 @@ @@ -22,10 +22,10 @@
<a href="https://github.com/mholt/PapaParse">
<i class="fa fa-github fa-lg"></i> GitHub
</a>
<a href="/demo.html">
<a href="/demo">
<i class="fa fa-magic fa-lg"></i> Demo
</a>
<a href="/docs.html">
<a href="/docs">
<i class="fa fa-book fa-lg"></i> Docs
</a>
</div>
@ -35,7 +35,7 @@ @@ -35,7 +35,7 @@
</div>
<div class="grid-40 mobile-grid-50 text-right">
<div class="links">
<a href="/faq.html">
<a href="/faq">
<i class="fa fa-question fa-lg"></i> FAQ
</a>
<a href="https://github.com/mholt/PapaParse/issues">
@ -189,7 +189,7 @@ @@ -189,7 +189,7 @@
<a href="https://github.com/mholt/PapaParse" class="button">
<i class="fa fa-download"></i>&nbsp; Get Papa Parse on GitHub
</a>
<a href="/docs.html" class="button red">
<a href="/docs" class="button red">
<i class="fa fa-book"></i>&nbsp; Documentation
</a>
</div>

12
docs.html

@ -20,10 +20,10 @@ @@ -20,10 +20,10 @@
<a href="https://github.com/mholt/PapaParse">
<i class="fa fa-github fa-lg"></i> GitHub
</a>
<a href="/demo.html">
<a href="/demo">
<i class="fa fa-magic fa-lg"></i> Demo
</a>
<a href="/docs.html">
<a href="/docs">
<i class="fa fa-book fa-lg"></i> Docs
</a>
</div>
@ -33,7 +33,7 @@ @@ -33,7 +33,7 @@
</div>
<div class="grid-40 mobile-grid-50 text-right">
<div class="links">
<a href="/faq.html">
<a href="/faq">
<i class="fa fa-question fa-lg"></i> FAQ
</a>
<a href="https://github.com/mholt/PapaParse/issues">
@ -333,14 +333,14 @@ var csv = Papa.unparse({ @@ -333,14 +333,14 @@ var csv = Papa.unparse({
<li><code>dynamicTyping</code> If true, numeric and boolean data will be converted to their type instead of remaining strings.</li>
<li><code>preview</code> If > 0, only that many rows will be parsed.</li>
<li><code>encoding</code> The encoding to use when opening files locally.</li>
<li><code>worker</code> Whether or not to use a <a href="faq.html#workers">worker thread</a>. Using a worker will keep your page reactive, but may be slightly slower.</li>
<li><code>worker</code> Whether or not to use a <a href="/faq#workers">worker thread</a>. Using a worker will keep your page reactive, but may be slightly slower.</li>
<li><code>comments</code> Specify a string that indicates a comment (like "#" or "//"). If your CSV file has commented lines, and Papa will skip them. This feature is disabled by default.</li>
</ul>
</div>
<div class="grid-50">
<ul>
<li id="step">
<code>step</code> To <a href="faq.html#streaming">stream</a> the input, define a callback function to receive <a href="#results">results</a> row-by-row rather than together at the end:
<code>step</code> To <a href="/faq#streaming">stream</a> the input, define a callback function to receive <a href="#results">results</a> row-by-row rather than together at the end:
<code class="block">step: function(results, handle) {
console.log("Row data:", results.data);
console.log("Row errors:", results.errors);
@ -357,7 +357,7 @@ var csv = Papa.unparse({ @@ -357,7 +357,7 @@ var csv = Papa.unparse({
</li>
<li><code>error</code> A callback to execute if FileReader encounters an error. The function should receive two arguments: the error and the File.</li>
<li><code>download</code> If true, this indicates that the string you passed in is actually a URL from which to download a file and parse it.</li>
<li><code>keepEmptyRows</code> If true, rows that are empty will be included in the results as an empty array. This is useful if you want to maintain line (or at least <i>row</i>) parity with the original input.</li>
<li><code>skipEmptyLines</code> If true, lines that are completely empty will be skipped. An empty line is defined to be one which evaluates to empty string.</li>
<li><code>chunk</code> A callback, much like step, which activates streaming and is executed after every whole chunk of the file is loaded and parsed, rather than every row. Works only with local and remote files. Do not use both chunk and step callbacks together. As arguments, it receives the results, the streamer, and if parsing a local file, the File object. You can pause, resume, and abort parsing from within this function.</li>
<li><code>fastMode</code> When enabled, fast mode executes parsing much more quickly. Only use this if you know your input won't have quoted fields.
</ul>

14
faq.html

@ -20,10 +20,10 @@ @@ -20,10 +20,10 @@
<a href="https://github.com/mholt/PapaParse">
<i class="fa fa-github fa-lg"></i> GitHub
</a>
<a href="/demo.html">
<a href="/demo">
<i class="fa fa-magic fa-lg"></i> Demo
</a>
<a href="/docs.html">
<a href="/docs">
<i class="fa fa-book fa-lg"></i> Docs
</a>
</div>
@ -33,7 +33,7 @@ @@ -33,7 +33,7 @@
</div>
<div class="grid-40 mobile-grid-50 text-right">
<div class="links">
<a href="/faq.html">
<a href="/faq">
<i class="fa fa-question fa-lg"></i> FAQ
</a>
<a href="https://github.com/mholt/PapaParse/issues">
@ -119,12 +119,12 @@ @@ -119,12 +119,12 @@
<h4>Can Papa load and parse huge files?</h4>
<p>
Yes. Parsing huge text files is facilitated by <i>streaming</i>, where the file is loaded a little bit at a time, parsed, and the results are sent to your <a href="docs.html#config">step</a> callback function, row-by-row.
Yes. Parsing huge text files is facilitated by <i>streaming</i>, where the file is loaded a little bit at a time, parsed, and the results are sent to your <a href="/docs#config">step</a> callback function, row-by-row.
</p>
<h4>How do I stream my input?</h4>
<p>
Just specify a <a href="docs.html#config">step</a> callback function. Results will <i>not</i> be available after parsing is finished, however. You have to inspect the results one row at a time.
Just specify a <a href="/docs#config">step</a> callback function. Results will <i>not</i> be available after parsing is finished, however. You have to inspect the results one row at a time.
</p>
<h4>What is a stream and when should I stream files?</h4>
@ -165,7 +165,7 @@ @@ -165,7 +165,7 @@
<h4>Can I pause and resume parsing?</h4>
<p>
Yes, as long as you are streaming and not using a worker. Your <a href="/docs.html#step">step callback</a> is passed a ParserHandle which has pause, resume, and abort functions.
Yes, as long as you are streaming and not using a worker. Your <a href="/docs#step">step callback</a> is passed a ParserHandle which has pause, resume, and abort functions.
</p>
@ -186,7 +186,7 @@ @@ -186,7 +186,7 @@
<h4>How do I use a worker?</h4>
<p>
Just specify <code>worker: true</code> in your <a href="docs.html#config">config</a>. You'll also need to make a <code>complete</code> callback (unless you're streaming) so that you can get the results, because using a worker makes the parse function asynchronous.
Just specify <code>worker: true</code> in your <a href="/docs#config">config</a>. You'll also need to make a <code>complete</code> callback (unless you're streaming) so that you can get the results, because using a worker makes the parse function asynchronous.
</p>
<h4>When should I use a worker?</h4>

12
index.html

@ -29,10 +29,10 @@ @@ -29,10 +29,10 @@
<a href="https://github.com/mholt/PapaParse">
<i class="fa fa-github fa-lg"></i> GitHub
</a>
<a href="/demo.html">
<a href="/demo">
<i class="fa fa-magic fa-lg"></i> Demo
</a>
<a href="/docs.html">
<a href="/docs">
<i class="fa fa-book fa-lg"></i> Docs
</a>
</div>
@ -42,7 +42,7 @@ @@ -42,7 +42,7 @@
</div>
<div class="grid-40 mobile-grid-50 text-right">
<div class="links">
<a href="/faq.html">
<a href="/faq">
<i class="fa fa-question fa-lg"></i> FAQ
</a>
<a href="https://github.com/mholt/PapaParse/issues">
@ -166,7 +166,7 @@ Papa.parse(fileOrString, { @@ -166,7 +166,7 @@ Papa.parse(fileOrString, {
<a href="https://github.com/mholt/PapaParse" class="button">
<i class="fa fa-download"></i>&nbsp; Get Papa Parse on GitHub
</a>
<a href="/demo.html" class="button red">
<a href="/demo" class="button red">
<i class="fa fa-bolt"></i>&nbsp; Try the demo
</a>
</div>
@ -399,7 +399,7 @@ var results = Papa.parse(csv, { @@ -399,7 +399,7 @@ var results = Papa.parse(csv, {
</div>
<div class="grid-55">
<code class="block"><span class="comment">// Output is a properly-formatted CSV string.
// See <a href="/docs.html#json-to-csv">the docs</a> for more configurability.</span>
// See <a href="/docs#json-to-csv">the docs</a> for more configurability.</span>
var csv = Papa.unparse(yourData);</code>
</div>
<div class="clear"></div>
@ -427,7 +427,7 @@ var csv = Papa.unparse(yourData);</code> @@ -427,7 +427,7 @@ var csv = Papa.unparse(yourData);</code>
<a href="https://github.com/mholt/PapaParse" class="button">
<i class="fa fa-download"></i>&nbsp; Get Papa Parse on GitHub
</a>
<a href="/demo.html" class="button red">
<a href="/demo" class="button red">
<i class="fa fa-bolt"></i>&nbsp; Try the demo
</a>
</div>

Loading…
Cancel
Save