[663] | 1 | .. _contribute_doc: |
---|
| 2 | |
---|
[665] | 3 | .. include:: <xhtml1-lat1.txt> |
---|
| 4 | .. include:: <xhtml1-symbol.txt> |
---|
| 5 | |
---|
[663] | 6 | Contribute documentation |
---|
| 7 | ================== |
---|
| 8 | |
---|
[665] | 9 | ZOO Documentation is a collaborative process managed by the ZOO developers. Anybody is welcome to contribute to the ZOO-Project documentation. Please consider the following instructions before doing so. |
---|
[663] | 10 | |
---|
[665] | 11 | General information |
---|
| 12 | ------------------------ |
---|
| 13 | |
---|
[663] | 14 | For new comers |
---|
[665] | 15 | .......................... |
---|
[663] | 16 | |
---|
| 17 | New users are encouraged to contribute documentation using the following ways: |
---|
| 18 | |
---|
[665] | 19 | * Download the ZOO-Project svn, edit the documentation files |
---|
| 20 | located /docs directory and share the modifications through a new |
---|
| 21 | ticket set to 'Documentation' tracker |
---|
| 22 | |
---|
[663] | 23 | * Create a wiki page containg new or corrected documentation text, and create a new ticket to report its creation. |
---|
| 24 | |
---|
| 25 | The ZOO developers responsible for the documentation will then review the contributions to add them into the official docs. |
---|
| 26 | |
---|
| 27 | For registered developers |
---|
[665] | 28 | ........................................ |
---|
[663] | 29 | |
---|
[696] | 30 | The current structure of the ZOO Project documentation process is for |
---|
| 31 | developers with :ref:`SVN <svn>` commit access to maintain their |
---|
| 32 | documents in reStructuredText format, and therefore all documents live |
---|
| 33 | in the /docs directory in SVN. The `Sphinx |
---|
| 34 | <http://sphinx.pocoo.org/>`__ documentation generator is used to |
---|
| 35 | convert the reStructuredText files to html, and the live website is |
---|
| 36 | then updated on an hourly basis. |
---|
[663] | 37 | |
---|
| 38 | |
---|
| 39 | Installing and using Sphinx |
---|
| 40 | ------------------------ |
---|
| 41 | |
---|
| 42 | On Linux |
---|
[665] | 43 | ................. |
---|
[663] | 44 | |
---|
[665] | 45 | * Make sure you have the Python dev and setuptools packages installed. For example on Ubuntu: |
---|
[663] | 46 | |
---|
| 47 | :: |
---|
| 48 | |
---|
| 49 | sudo apt-get install python-dev |
---|
| 50 | sudo apt-get install python-setuptools |
---|
| 51 | |
---|
| 52 | * Install sphinx using easy_install: |
---|
| 53 | |
---|
| 54 | :: |
---|
| 55 | |
---|
[696] | 56 | sudo easy_install Sphinx==1.3.1 |
---|
[663] | 57 | |
---|
| 58 | .. note:: |
---|
| 59 | |
---|
[696] | 60 | Make sure you install Sphinx 1.3.1 or more recent. |
---|
[663] | 61 | |
---|
| 62 | * Checkout the /docs directory from SVN, such as: |
---|
| 63 | |
---|
| 64 | :: |
---|
| 65 | |
---|
| 66 | svn checkout http://svn.zoo-project.org/svn/trunk zoo-project |
---|
| 67 | |
---|
| 68 | * To process the docs, from the ZOO /docs directory, run: |
---|
| 69 | |
---|
| 70 | :: |
---|
| 71 | |
---|
| 72 | make html |
---|
| 73 | |
---|
| 74 | or |
---|
| 75 | |
---|
| 76 | :: |
---|
| 77 | |
---|
| 78 | make latex |
---|
| 79 | |
---|
| 80 | The HTML output will be written to the build/html sub-directory. |
---|
| 81 | |
---|
| 82 | .. note:: |
---|
| 83 | |
---|
| 84 | If there are more than one translation, the above commands will automatically |
---|
| 85 | build all translations. |
---|
| 86 | |
---|
| 87 | |
---|
[665] | 88 | On Mac OS X |trade| |
---|
| 89 | .................................. |
---|
[663] | 90 | |
---|
| 91 | * Install sphinx using easy_install: |
---|
| 92 | |
---|
| 93 | :: |
---|
| 94 | |
---|
[696] | 95 | sudo easy_install-2.7 Sphinx==1.3.1 |
---|
[663] | 96 | |
---|
| 97 | .. note:: |
---|
| 98 | |
---|
[696] | 99 | Make sure you install Sphinx 1.3.1 or more recent. |
---|
[663] | 100 | |
---|
| 101 | * Install `MacTex <http://www.tug.org/mactex/2009/>`__ if you want to build pdfs |
---|
| 102 | |
---|
| 103 | * Checkout the /docs directory from SVN, such as: |
---|
| 104 | |
---|
| 105 | :: |
---|
| 106 | |
---|
| 107 | svn checkout http://svn.zoo-project.org/svn/trunk zoo-project |
---|
| 108 | |
---|
| 109 | * To process the docs, from the ZOO /docs directory, run: |
---|
| 110 | |
---|
| 111 | :: |
---|
| 112 | |
---|
| 113 | make html |
---|
| 114 | |
---|
| 115 | or |
---|
| 116 | |
---|
| 117 | :: |
---|
| 118 | |
---|
| 119 | make latex |
---|
| 120 | |
---|
| 121 | The HTML output will be written to the build/html sub-directory. |
---|
| 122 | |
---|
| 123 | |
---|
[665] | 124 | On Windows |trade| |
---|
| 125 | ................................ |
---|
[663] | 126 | |
---|
| 127 | * Install `Python 2.X <http://www.python.org/>`__ |
---|
| 128 | * Download `setuptools <http://pypi.python.org/pypi/setuptools#windows>`__ |
---|
| 129 | * Make sure that the ``C:/Python2X/Scripts`` directory is your path |
---|
| 130 | * Execute the following at commandline: |
---|
| 131 | |
---|
| 132 | :: |
---|
| 133 | |
---|
[696] | 134 | easy_install Sphinx==1.3.1 |
---|
[663] | 135 | |
---|
| 136 | ...you should see message: "Finished processing dependencies for Sphinx" |
---|
| 137 | |
---|
| 138 | .. note:: |
---|
| 139 | |
---|
[696] | 140 | Make sure you install Sphinx 1.3.1 or more recent. See note above. |
---|
[663] | 141 | |
---|
| 142 | * Install `MiKTeX <http://miktex.org>`__ if you want to build pdfs |
---|
| 143 | |
---|
| 144 | * Checkout the /docs directory from SVN, such as: |
---|
| 145 | |
---|
| 146 | :: |
---|
| 147 | |
---|
| 148 | svn checkout http://svn.zoo-project.org/svn/trunk zoo-project |
---|
| 149 | |
---|
| 150 | * Inside the /docs directory, execute: |
---|
| 151 | |
---|
| 152 | :: |
---|
| 153 | |
---|
| 154 | make html |
---|
| 155 | |
---|
| 156 | or |
---|
| 157 | |
---|
| 158 | :: |
---|
| 159 | |
---|
| 160 | make latex |
---|
| 161 | |
---|
| 162 | The HTML output will be written to the _build/html sub-directory. |
---|
| 163 | |
---|
| 164 | |
---|
| 165 | reStructuredText Reference Guides |
---|
| 166 | *************************************** |
---|
| 167 | |
---|
| 168 | The following resources are considered as useful for editing and creating new ZOO-Project documentation files. |
---|
| 169 | |
---|
| 170 | - Docutils `Quick reStructuredText <http://docutils.sourceforge.net/docs/user/rst/quickref.html>`__ |
---|
| 171 | - Docutils `reStructuredText Directives <http://docutils.sourceforge.net/docs/ref/rst/directives.html>`__ |
---|
| 172 | - Sphinx's `reStructuredText Primer <http://sphinx.pocoo.org/rest.html>`__ |
---|
| 173 | - search Sphinx's `mailing list <http://groups.google.com/group/sphinx-dev>`__ |
---|