Fix .pdf MIME type
[phancap.git] / README.rst
index 102586c27f6f7c7faf75aff9777d431a849e8c5f..34cc6f6518e79ef1cc97b323a4b435548e5f98d4 100644 (file)
@@ -43,10 +43,15 @@ Basic setup
 ===========
 #. Download the ``.phar`` file and put it onto your web server
 #. Open the phar file in your browser
+
+   If you only see text beginning with ``<?php``, you need to
+   `setup .phar file extension handling`__ in your web server first.
 #. Click the "setup check" link
 #. Fix all errors that are reported
 #. Run ``phancap.phar/get.php?url=cweiske.de`` and see the screenshot
 
+__ http://cweiske.de/tagebuch/phar-webserver.htm
+
 
 Advanced setup
 ==============
@@ -126,6 +131,14 @@ Configuration variables
 
   ``true`` to allow access to anyone, ``false`` to disable it completely.
   ``array`` of username - secret key combinations otherwise.
+``$cutycapt['parameters']``
+  Additional command line parameters for cutycapt.
+  Can be used to e.g. enable browser plugins:
+
+  ``$cutycapt['parameters'] = '--plugins=on';``
+``$cutycapt['maxWaitTime']``
+  Maximal time in seconds to wait for cutycapt to finish rendering.
+  Defaults to 30 seconds.
 ``$disableSetup``
   Disable ``setup.php`` which will leak file system paths
 ``$redirect``
@@ -265,7 +278,10 @@ Dependencies
   - PEAR's ``System.php``
 
 
-=======
+=============
+About phancap
+=============
+
 License
 =======
 ``phancap`` is licensed under the `AGPL v3`__ or later.
@@ -273,7 +289,6 @@ License
 __ http://www.gnu.org/licenses/agpl.html
 
 
-========
 Homepage
 ========
 Web site
@@ -285,7 +300,6 @@ Source code
    Mirror: https://github.com/cweiske/phancap
 
 
-======
 Author
 ======
 Written by Christian Weiske, cweiske@cweiske.de
@@ -298,3 +312,17 @@ All of those are open source:
 
 * http://code.google.com/p/browsershots/ (python)
 * https://github.com/gre/screenshot-webservice (scala)
+
+
+===========
+Development
+===========
+
+Releasing a new version
+=======================
+
+#. Update ``ChangeLog``
+#. Change version number in ``build.xml``
+#. Run ``phing``
+#. Deploy the new files in ``dist/``
+#. Tag the new version in git