Ver Fonte

Documentation updates

Jonny Wenmoth há 11 anos atrás
pai
commit
dc61837a7e

+ 3 - 3
_posts/2014-07-23-troubleshooting.md

@@ -14,7 +14,7 @@ fullview: true
 * [It's not saving my screenshots](#its-not-saving-my-screenshots)
 * [It's not saving my screenshots](#its-not-saving-my-screenshots)
 * [Can I set the screenshot size?](#can-i-set-the-screenshot-size)
 * [Can I set the screenshot size?](#can-i-set-the-screenshot-size)
 * [Can I set the viewport size?](#can-i-set-the-viewport-size)
 * [Can I set the viewport size?](#can-i-set-the-viewport-size)
-* [How to I debug a request?](#how-to-i-debug-a-request)
+* [How do I debug a request?](#how-do-i-debug-a-request)
 * [I am getting `SyntaxError: Parse error` in the debug log](#i-am-getting-syntaxerror-parse-error-in-the-debug-log)
 * [I am getting `SyntaxError: Parse error` in the debug log](#i-am-getting-syntaxerror-parse-error-in-the-debug-log)
 
 
 ---
 ---
@@ -256,7 +256,7 @@ Yes, you can set the viewport dimensions on both regular and capture requests:
     $client->send($request, $response);
     $client->send($request, $response);
 {% endhighlight %}
 {% endhighlight %}
 
 
-#### How to I debug a request?
+#### How do I debug a request?
 
 
 By setting the debug flag to `true` on the client, you can get a dump of information output from PhantomJS along with some info events added by the PHP PhantomJS library:
 By setting the debug flag to `true` on the client, you can get a dump of information output from PhantomJS along with some info events added by the PHP PhantomJS library:
 
 
@@ -297,4 +297,4 @@ You can also get any javacript console errors along with a stack trace from the
 
 
 #### I am getting `SyntaxError: Parse error` in the debug log
 #### I am getting `SyntaxError: Parse error` in the debug log
 
 
-You will only get this error if the script file that is being run by PhantomJS has a syntax error. If you are writing your own [custom scripts]({{ site.BASE_PATH }}/advanced.html#custom-phantomjs-scripts) then try setting the [debug flag](#how-to-i-debug-a-request) which *should* print some more detailed information in the debug log. Also check that you aren't setting any parameters to `null` in your request object as this could be causing a javascript error due to javascript variables being set to nothing e.g. `var width = ,`.
+You will only get this error if the script file that is being run by PhantomJS has a syntax error. If you are writing your own [custom scripts]({{ site.BASE_PATH }}/advanced.html#custom-phantomjs-scripts) then try setting the [debug flag](#how-do-i-debug-a-request) which *should* print some more detailed information in the debug log. Also check that you aren't setting any parameters to `null` in your request object as this could be causing a javascript error due to javascript variables being set to nothing e.g. `var width = ,`.

+ 1 - 1
_posts/2014-07-26-usage.md

@@ -153,7 +153,7 @@ A standard response gives you access to the following interface:
 | isRedirect()        | Will return true if the response was a redirect or false otherwise.                       | Boolean        |
 | isRedirect()        | Will return true if the response was a redirect or false otherwise.                       | Boolean        |
 | getConsole()        | Returns an array of any javascript errors on the requested page along with a stack trace. | Array          |
 | getConsole()        | Returns an array of any javascript errors on the requested page along with a stack trace. | Array          |
 
 
-If the response contains a status code of 0, chances are the request failed. Check the request [debug log]({{ site.BASE_PATH }}/troubleshooting.html#how-to-i-debug-a-request) for more detailed information about what may have gone wrong.
+If the response contains a status code of 0, chances are the request failed. Check the request [debug log]({{ site.BASE_PATH }}/troubleshooting.html#how-do-i-debug-a-request) for more detailed information about what may have gone wrong.
 
 
 Screen Captures
 Screen Captures
 ---------------
 ---------------

+ 4 - 4
_site/feed.xml

@@ -421,7 +421,7 @@ code etc.</li>
   </tbody>
   </tbody>
 </table>
 </table>
 
 
-<p>If the response contains a status code of 0, chances are the request failed. Check the request <a href="http://jonnnnyw.github.io/php-phantomjs/troubleshooting.html#how-to-i-debug-a-request">debug log</a> for more detailed information about what may have gone wrong.</p>
+<p>If the response contains a status code of 0, chances are the request failed. Check the request <a href="http://jonnnnyw.github.io/php-phantomjs/troubleshooting.html#how-do-i-debug-a-request">debug log</a> for more detailed information about what may have gone wrong.</p>
 
 
 <h2 id="screen-captures">Screen Captures</h2>
 <h2 id="screen-captures">Screen Captures</h2>
 
 
@@ -913,7 +913,7 @@ code etc.</li>
   <li><a href="#its-not-saving-my-screenshots">It’s not saving my screenshots</a></li>
   <li><a href="#its-not-saving-my-screenshots">It’s not saving my screenshots</a></li>
   <li><a href="#can-i-set-the-screenshot-size">Can I set the screenshot size?</a></li>
   <li><a href="#can-i-set-the-screenshot-size">Can I set the screenshot size?</a></li>
   <li><a href="#can-i-set-the-viewport-size">Can I set the viewport size?</a></li>
   <li><a href="#can-i-set-the-viewport-size">Can I set the viewport size?</a></li>
-  <li><a href="#how-to-i-debug-a-request">How to I debug a request?</a></li>
+  <li><a href="#how-do-i-debug-a-request">How do I debug a request?</a></li>
   <li><a href="#i-am-getting-syntaxerror-parse-error-in-the-debug-log">I am getting <code>SyntaxError: Parse error</code> in the debug log</a></li>
   <li><a href="#i-am-getting-syntaxerror-parse-error-in-the-debug-log">I am getting <code>SyntaxError: Parse error</code> in the debug log</a></li>
 </ul>
 </ul>
 
 
@@ -1123,7 +1123,7 @@ code etc.</li>
     
     
     <span class="nv">$client</span><span class="o">-></span><span class="na">send</span><span class="p">(</span><span class="nv">$request</span><span class="p">,</span> <span class="nv">$response</span><span class="p">);</span></code></pre></div>
     <span class="nv">$client</span><span class="o">-></span><span class="na">send</span><span class="p">(</span><span class="nv">$request</span><span class="p">,</span> <span class="nv">$response</span><span class="p">);</span></code></pre></div>
 
 
-<h4 id="how-to-i-debug-a-request">How to I debug a request?</h4>
+<h4 id="how-do-i-debug-a-request">How do I debug a request?</h4>
 
 
 <p>By setting the debug flag to <code>true</code> on the client, you can get a dump of information output from PhantomJS along with some info events added by the PHP PhantomJS library:</p>
 <p>By setting the debug flag to <code>true</code> on the client, you can get a dump of information output from PhantomJS along with some info events added by the PHP PhantomJS library:</p>
 
 
@@ -1158,7 +1158,7 @@ code etc.</li>
 
 
 <h4 id="i-am-getting-syntaxerror-parse-error-in-the-debug-log">I am getting <code>SyntaxError: Parse error</code> in the debug log</h4>
 <h4 id="i-am-getting-syntaxerror-parse-error-in-the-debug-log">I am getting <code>SyntaxError: Parse error</code> in the debug log</h4>
 
 
-<p>You will only get this error if the script file that is being run by PhantomJS has a syntax error. If you are writing your own <a href="http://jonnnnyw.github.io/php-phantomjs/advanced.html#custom-phantomjs-scripts">custom scripts</a> then try setting the <a href="#how-to-i-debug-a-request">debug flag</a> which <em>should</em> print some more detailed information in the debug log. Also check that you aren’t setting any parameters to <code>null</code> in your request object as this could be causing a javascript error due to javascript variables being set to nothing e.g. <code>var width = ,</code>.</p>
+<p>You will only get this error if the script file that is being run by PhantomJS has a syntax error. If you are writing your own <a href="http://jonnnnyw.github.io/php-phantomjs/advanced.html#custom-phantomjs-scripts">custom scripts</a> then try setting the <a href="#how-do-i-debug-a-request">debug flag</a> which <em>should</em> print some more detailed information in the debug log. Also check that you aren’t setting any parameters to <code>null</code> in your request object as this could be causing a javascript error due to javascript variables being set to nothing e.g. <code>var width = ,</code>.</p>
 </description>
 </description>
 				<pubDate>Wed, 23 Jul 2014 00:00:00 +0100</pubDate>
 				<pubDate>Wed, 23 Jul 2014 00:00:00 +0100</pubDate>
 				<link>http://jonnnnyw.github.io/php-phantomjs/troubleshooting.html</link>
 				<link>http://jonnnnyw.github.io/php-phantomjs/troubleshooting.html</link>

+ 3 - 3
_site/troubleshooting.html

@@ -155,7 +155,7 @@
   <li><a href="#its-not-saving-my-screenshots">It’s not saving my screenshots</a></li>
   <li><a href="#its-not-saving-my-screenshots">It’s not saving my screenshots</a></li>
   <li><a href="#can-i-set-the-screenshot-size">Can I set the screenshot size?</a></li>
   <li><a href="#can-i-set-the-screenshot-size">Can I set the screenshot size?</a></li>
   <li><a href="#can-i-set-the-viewport-size">Can I set the viewport size?</a></li>
   <li><a href="#can-i-set-the-viewport-size">Can I set the viewport size?</a></li>
-  <li><a href="#how-to-i-debug-a-request">How to I debug a request?</a></li>
+  <li><a href="#how-do-i-debug-a-request">How do I debug a request?</a></li>
   <li><a href="#i-am-getting-syntaxerror-parse-error-in-the-debug-log">I am getting <code>SyntaxError: Parse error</code> in the debug log</a></li>
   <li><a href="#i-am-getting-syntaxerror-parse-error-in-the-debug-log">I am getting <code>SyntaxError: Parse error</code> in the debug log</a></li>
 </ul>
 </ul>
 
 
@@ -365,7 +365,7 @@
     
     
     <span class="nv">$client</span><span class="o">-&gt;</span><span class="na">send</span><span class="p">(</span><span class="nv">$request</span><span class="p">,</span> <span class="nv">$response</span><span class="p">);</span></code></pre></div>
     <span class="nv">$client</span><span class="o">-&gt;</span><span class="na">send</span><span class="p">(</span><span class="nv">$request</span><span class="p">,</span> <span class="nv">$response</span><span class="p">);</span></code></pre></div>
 
 
-<h4 id="how-to-i-debug-a-request">How to I debug a request?</h4>
+<h4 id="how-do-i-debug-a-request">How do I debug a request?</h4>
 
 
 <p>By setting the debug flag to <code>true</code> on the client, you can get a dump of information output from PhantomJS along with some info events added by the PHP PhantomJS library:</p>
 <p>By setting the debug flag to <code>true</code> on the client, you can get a dump of information output from PhantomJS along with some info events added by the PHP PhantomJS library:</p>
 
 
@@ -400,7 +400,7 @@
 
 
 <h4 id="i-am-getting-syntaxerror-parse-error-in-the-debug-log">I am getting <code>SyntaxError: Parse error</code> in the debug log</h4>
 <h4 id="i-am-getting-syntaxerror-parse-error-in-the-debug-log">I am getting <code>SyntaxError: Parse error</code> in the debug log</h4>
 
 
-<p>You will only get this error if the script file that is being run by PhantomJS has a syntax error. If you are writing your own <a href="http://jonnnnyw.github.io/php-phantomjs/advanced.html#custom-phantomjs-scripts">custom scripts</a> then try setting the <a href="#how-to-i-debug-a-request">debug flag</a> which <em>should</em> print some more detailed information in the debug log. Also check that you aren’t setting any parameters to <code>null</code> in your request object as this could be causing a javascript error due to javascript variables being set to nothing e.g. <code>var width = ,</code>.</p>
+<p>You will only get this error if the script file that is being run by PhantomJS has a syntax error. If you are writing your own <a href="http://jonnnnyw.github.io/php-phantomjs/advanced.html#custom-phantomjs-scripts">custom scripts</a> then try setting the <a href="#how-do-i-debug-a-request">debug flag</a> which <em>should</em> print some more detailed information in the debug log. Also check that you aren’t setting any parameters to <code>null</code> in your request object as this could be causing a javascript error due to javascript variables being set to nothing e.g. <code>var width = ,</code>.</p>
 
 
 	  </div>
 	  </div>
 
 

+ 1 - 1
_site/usage.html

@@ -323,7 +323,7 @@
   </tbody>
   </tbody>
 </table>
 </table>
 
 
-<p>If the response contains a status code of 0, chances are the request failed. Check the request <a href="http://jonnnnyw.github.io/php-phantomjs/troubleshooting.html#how-to-i-debug-a-request">debug log</a> for more detailed information about what may have gone wrong.</p>
+<p>If the response contains a status code of 0, chances are the request failed. Check the request <a href="http://jonnnnyw.github.io/php-phantomjs/troubleshooting.html#how-do-i-debug-a-request">debug log</a> for more detailed information about what may have gone wrong.</p>
 
 
 <h2 id="screen-captures">Screen Captures</h2>
 <h2 id="screen-captures">Screen Captures</h2>