.. _contribute_doc: Contribute documentation ================== ZOO Documentation is a collaborative process managed by the ZOO develoeprs. Anybody is welcome to contribute to the ZOO-Project documentation. Please consider the following instructions before doing so. For new comers ************************* New users are encouraged to contribute documentation using the following ways: * Download the ZOO-Project svn, edit the documentation files located /docs directory and share the modifications through a new ticket set to 'Documentation' tracker * Create a wiki page containg new or corrected documentation text, and create a new ticket to report its creation. The ZOO developers responsible for the documentation will then review the contributions to add them into the official docs. For registered developers **************************** The current structure of the ZOO Project documentation process is for developers with :ref:`SVN ` commit access to maintain their documents in reStructuredText format, and therefore all documents live in the /docs directory in SVN. The `Sphinx `__ documentation generator is used to convert the reStructuredText files to html, and the live website is then updated on an hourly basis. Installing and using Sphinx ------------------------ On Linux *********** * Make sure you have the Python dev and setuptools packages installed. On Ubuntu: :: sudo apt-get install python-dev sudo apt-get install python-setuptools * Install sphinx using easy_install: :: sudo easy_install Sphinx .. note:: Make sure you install Sphinx 1.0 or more recent. See note above. * Checkout the /docs directory from SVN, such as: :: svn checkout http://svn.zoo-project.org/svn/trunk zoo-project * To process the docs, from the ZOO /docs directory, run: :: make html or :: make latex The HTML output will be written to the build/html sub-directory. .. note:: If there are more than one translation, the above commands will automatically build all translations. On Mac OS X **************** * Install sphinx using easy_install: :: sudo easy_install Sphinx .. note:: Make sure you install Sphinx 1.0 or more recent. See note above. * Install `MacTex `__ if you want to build pdfs * Checkout the /docs directory from SVN, such as: :: svn checkout http://svn.zoo-project.org/svn/trunk zoo-project * To process the docs, from the ZOO /docs directory, run: :: make html or :: make latex The HTML output will be written to the build/html sub-directory. On Windows ************** * Install `Python 2.X `__ * Download `setuptools `__ * Make sure that the ``C:/Python2X/Scripts`` directory is your path * Execute the following at commandline: :: easy_install Sphinx ...you should see message: "Finished processing dependencies for Sphinx" .. note:: Make sure you install Sphinx 1.0 or more recent. See note above. * Install `MiKTeX `__ if you want to build pdfs * Checkout the /docs directory from SVN, such as: :: svn checkout http://svn.zoo-project.org/svn/trunk zoo-project * Inside the /docs directory, execute: :: make html or :: make latex The HTML output will be written to the _build/html sub-directory. reStructuredText Reference Guides *************************************** The following resources are considered as useful for editing and creating new ZOO-Project documentation files. - Docutils `Quick reStructuredText `__ - Docutils `reStructuredText Directives `__ - Sphinx's `reStructuredText Primer `__ - search Sphinx's `mailing list `__