psycopg2/doc
2010-02-14 00:39:49 +01:00
..
_static Big documentation cleanup. 2010-02-14 00:39:48 +01:00
advanced.rst Big documentation cleanup. 2010-02-14 00:39:48 +01:00
ChangeLog-1.x Initial psycopg 2 import after SVN crash. 2004-10-19 03:17:12 +00:00
conf.py Use the module version as documentation version. 2010-02-14 00:39:49 +01:00
connection.rst Added a bunch of versions update informations. 2010-02-14 00:39:49 +01:00
COPYING Changes license to LGPL3 + OpenSSL exception on all source files 2010-02-12 23:34:53 +01:00
COPYING.LESSER Changes license to LGPL3 + OpenSSL exception on all source files 2010-02-12 23:34:53 +01:00
cursor.rst Added a bunch of versions update informations. 2010-02-14 00:39:49 +01:00
dbapi_extension.py Added `extension` directive to mark Psycopg extensions to the DB API. 2010-02-14 00:39:47 +01:00
errorcodes.rst Added documentation for the errorcodes module. 2010-02-14 00:39:49 +01:00
extensions.rst Added a bunch of versions update informations. 2010-02-14 00:39:49 +01:00
extras.rst Added a bunch of versions update informations. 2010-02-14 00:39:49 +01:00
HACKING Initial psycopg 2 import after SVN crash. 2004-10-19 03:17:12 +00:00
index.rst Added documentation for the errorcodes module. 2010-02-14 00:39:49 +01:00
Makefile First iteration with the Sphinx module documentation. 2010-02-14 00:39:47 +01:00
module.rst Added documentation for 'Error.pgerror' and 'Error.pgcode' attributes. 2010-02-14 00:39:49 +01:00
pep-0249.txt Added PEP 249 source (.txt). 2005-11-28 03:44:31 +00:00
README Added README to explain how to build the documentation. 2010-02-14 00:39:49 +01:00
sql_role.py Added docutils SQL role. 2010-02-14 00:39:48 +01:00
SUCCESS Initial psycopg 2 import after SVN crash. 2004-10-19 03:17:12 +00:00
tz.rst Added other info about tz module. 2010-02-14 00:39:48 +01:00
usage.rst Added documentation for the extras module. 2010-02-14 00:39:48 +01:00

How to build psycopg documentation
----------------------------------

- Install Sphinx, maybe in a virtualenv. Tested with Sphinx 0.6.4::

    ~$ virtualenv pd
    New python executable in pd/bin/python
    Installing setuptools............done.
    ~$ cd pd
    ~/pd$ source bin/activate
    (pd)~/pd$ 

- Install Sphinx in the env::

    (pd)~/pd$ easy_install sphinx
    Searching for sphinx
    Reading http://pypi.python.org/simple/sphinx/
    Reading http://sphinx.pocoo.org/
    Best match: Sphinx 0.6.4
    ...
    Finished processing dependencies for sphinx

- Checkout the psycopg branch containing the documentation::

    (pd)~/pd$ git clone git://github.com/dvarrazzo/psycopg2.git 
    (pd)~/pd$ cd psycopg2/
    (pd)~/pd/psycopg2$ git branch 
    * docs

- Build psycopg2 and ensure the package can be imported (it will be used for
  reading the version number, autodocs etc.)::

    (pd)~/pd/psycopg2$ python setup.py build
    (pd)~/pd/psycopg2$ python setup.py install
    running install
    ...
    creating ~/pd/lib/python2.6/site-packages/psycopg2
    ...

- Have the ``doc`` dir in the PYTHONPATH and run ``make`` from there::

    (pd)~/pd/psycopg2$ cd doc/
    (pd)~/pd/psycopg2/doc$ export PYTHONPATH=$(pwd):$PYTHONPATH
    (pd)~/pd/psycopg2/doc$ make html
    Running Sphinx v0.6.4
    ...

You should have the  in ``_build/html`` now.