Jonny Wenmoth пре 11 година
родитељ
комит
2990252231
3 измењених фајлова са 18 додато и 26 уклоњено
  1. 16 18
      doc/advanced.rst
  2. 2 6
      doc/installation.rst
  3. 0 2
      doc/intro.rst

+ 16 - 18
doc/advanced.rst

@@ -93,8 +93,6 @@ explained later in this guide.
 .. code:: shell
 
         
-        #bash
-        
         $ touch my_procedure.proc
         $ chmod 755 my_procedure.proc
         
@@ -122,16 +120,16 @@ detailed information on writing custom scripts.
         ...
         
 
-    Important
-    ^^^^^^^^^
+Important
+^^^^^^^^^
 
-    Make sure that ``phantom.exit(1);`` is always called after your
-    script has run or if you encounter an error. This requires you to
-    take care when handling PhantomJS errors to ensure that you exit the
-    PhantomJS script, whether the script was successfully executed or
-    not. If you do not call ``phantom.exit(1);`` then PhantomJS will
-    continue to run until your PHP script times out. If you find that
-    your custom script is hanging then this is most likely the cause.
+    | Make sure that ``phantom.exit(1);`` is always called after your
+    | script has run or if you encounter an error. This requires you to
+    | take care when handling PhantomJS errors to ensure that you exit the
+    | PhantomJS script, whether the script was successfully executed or
+    | not. If you do not call ``phantom.exit(1);`` then PhantomJS will
+    | continue to run until your PHP script times out. If you find that
+    | your custom script is hanging then this is most likely the cause.
 
 It is a good practice to create a global error handler in your script
 that exits PhantomJS:
@@ -364,14 +362,14 @@ Below is a full example for clarity:
         
         $client->send($request, $response);
 
-    Troubleshooting
-    ^^^^^^^^^^^^^^^
+Troubleshooting
+^^^^^^^^^^^^^^^
 
-    If you find that your script isn't running or that you are receiving
-    a status of '0' back in the response, chances are you have a syntax
-    error in you script. It pays to turn debugging on in the client
-    ``$client->debug(true)`` which will then give you access to some log
-    information through ``$client->getLog()``.
+    | If you find that your script isn't running or that you are receiving
+    | a status of '0' back in the response, chances are you have a syntax
+    | error in you script. It pays to turn debugging on in the client
+    | ``$client->debug(true)`` which will then give you access to some log
+    | information through ``$client->getLog()``.
 
 See more detailed information about
 `debugging <{{%20site.BASE_PATH%20}}/debugging.html>`__.

+ 2 - 6
doc/installation.rst

@@ -53,9 +53,7 @@ section.
 Finally, install the composer depedencies for your project:
 
 .. code:: shell
-        
-        #bash
-        
+                
         $ php composer.phar install
 
 Custom Installation
@@ -91,9 +89,7 @@ Once you have updated your bin location run composer install to install
 PhantomJS:
 
 .. code:: shell
-        
-        #bash
-        
+                
         $ php composer.phar install
 
 This should install the correct PhantomJS executable for your system to

+ 0 - 2
doc/intro.rst

@@ -58,8 +58,6 @@ Finally, install PHP PhantomJS from the root of your project:
 
 .. code:: shell
 
-    #bash
-
     $ composer require "jonnyw/php-phantomjs:3.*"
 
 If you would like to use another installation method or would like to