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