source: trunk/docs/development/documentation.txt @ 594

Last change on this file since 594 was 594, checked in by nbozon, 9 years ago

corrected mistake again

  • Property svn:eol-style set to native
  • Property svn:keywords set to HeadURL Date Author Id Rev
  • Property svn:mime-type set to text/plain
File size: 4.2 KB
Line 
1.. _documentation_development:
2
3Documentation Development Guide
4===============================
5
6:Authors: Nicolas Bozon, Gérald Fenoy, Jeff McKenna
7:Last Updated: $Date: 2015-02-25 12:18:38 +0000 (Wed, 25 Feb 2015) $
8
9.. contents:: Table of Contents
10    :depth: 2
11    :backlinks: top
12
13
14License
15-----------------
16
17The ZOO-Project documentation is released under the `Creative Commons Attribution-ShareAlike 4.0 International Public License <https://creativecommons.org/licenses/by-sa/4.0/legalcode>`__
18(CC-BY-SA). This license must be kept when editing or creating a new documentation file.
19
20.. image:: ../../_static/images/by-sa.png
21   :target: https://creativecommons.org/licenses/by-sa/4.0/legalcode/
22   :height: 31px
23   :width: 88px
24
25
26Background
27----------
28
29The current structure of the ZOO Project documentation process is for
30developers with :ref:`SVN <svn>` commit access to maintain their documents
31in reStructuredText format, and therefore all documents live in the
32/docs directory in SVN.  The `Sphinx <http://sphinx.pocoo.org/>`__ documentation generator is
33used to convert the reStructuredText files to html, and the live
34website is then updated on an hourly basis.
35
36reStructuredText Reference Guides
37---------------------------------
38
39- Docutils `Quick reStructuredText <http://docutils.sourceforge.net/docs/user/rst/quickref.html>`__
40- Docutils `reStructuredText Directives <http://docutils.sourceforge.net/docs/ref/rst/directives.html>`__
41- Sphinx's `reStructuredText Primer <http://sphinx.pocoo.org/rest.html>`__
42- search Sphinx's `mailing list <http://groups.google.com/group/sphinx-dev>`__
43
44reStructuredText Formatting
45---------------------------
46
47- All text should be hard breaks at or around the 80 column mark, just as
48  the source code.
49
50Installing and Using Sphinx for rst-html Generation
51---------------------------------------------------
52
53.. note::
54   
55    You can browse the versions of the Sphinx packages `here <http://pypi.python.org/pypi?%3Aaction=index>`__,
56    and then install the exact version such as:
57       
58    ::
59       
60        easy_install Sphinx==1.0.7
61
62
63**On Windows:**
64
65#. install `Python 2.X <http://www.python.org/>`__
66#. download `setuptools <http://pypi.python.org/pypi/setuptools#windows>`__
67#. make sure that the ``C:/Python2X/Scripts`` directory is your path
68#. execute the following at commandline:
69
70   ::
71
72       easy_install Sphinx
73
74   ...you should see message: "Finished processing dependencies for Sphinx"
75
76   .. note::
77   
78      Make sure you install Sphinx 1.0 or more recent.  See note above.
79     
80#. install `MiKTeX <http://miktex.org>`__ if you want to build pdfs
81     
82#. checkout the /docs directory from SVN, such as:
83
84   ::
85 
86       svn checkout http://svn.zoo-project.org/svn/trunk zoo-project
87     
88#. inside the /docs directory, execute:
89
90   ::
91
92       make html
93
94   or
95
96   ::
97
98       make latex
99
100   the HTML output will be written to the _build/html sub-directory.
101
102**On Linux:**
103
104#. make sure you have the Python dev and setuptools packages installed.
105   On Ubuntu:
106
107   ::
108
109       sudo apt-get install python-dev
110       sudo apt-get install python-setuptools
111
112#. install sphinx using easy_install:
113
114   ::
115
116       sudo easy_install Sphinx
117       
118   .. note::
119   
120      Make sure you install Sphinx 1.0 or more recent.  See note above. 
121     
122#. checkout the /docs directory from SVN, such as:
123
124   ::
125 
126       svn checkout http://svn.zoo-project.org/svn/trunk zoo-project     
127
128#. to process the docs, from the ZOO /docs directory, run:
129
130   ::
131
132       make html
133
134   or
135
136   ::
137
138       make latex
139
140   the HTML output will be written to the build/html sub-directory.
141
142.. note::
143
144    If there are more than one translation, the above commands will automatically
145    build all translations.
146
147
148**On Mac OS X:**
149
150#. install sphinx using easy_install:
151
152   ::
153
154       sudo easy_install Sphinx
155       
156   .. note::
157   
158      Make sure you install Sphinx 1.0 or more recent.  See note above.       
159
160#. install `MacTex <http://www.tug.org/mactex/2009/>`__ if you want to build pdfs
161
162#. checkout the /docs directory from SVN, such as:
163
164   ::
165 
166       svn checkout http://svn.zoo-project.org/svn/trunk zoo-project
167
168#. to process the docs, from the ZOO /docs directory, run:
169
170   ::
171
172       make html
173
174   or
175
176   ::
177
178       make latex
179
180   the HTML output will be written to the build/html sub-directory.
Note: See TracBrowser for help on using the repository browser.

Search

ZOO Sponsors

http://www.zoo-project.org/trac/chrome/site/img/geolabs-logo.pnghttp://www.zoo-project.org/trac/chrome/site/img/neogeo-logo.png http://www.zoo-project.org/trac/chrome/site/img/apptech-logo.png http://www.zoo-project.org/trac/chrome/site/img/3liz-logo.png http://www.zoo-project.org/trac/chrome/site/img/gateway-logo.png

Become a sponsor !

Knowledge partners

http://www.zoo-project.org/trac/chrome/site/img/ocu-logo.png http://www.zoo-project.org/trac/chrome/site/img/gucas-logo.png http://www.zoo-project.org/trac/chrome/site/img/polimi-logo.png http://www.zoo-project.org/trac/chrome/site/img/fem-logo.png http://www.zoo-project.org/trac/chrome/site/img/supsi-logo.png http://www.zoo-project.org/trac/chrome/site/img/cumtb-logo.png

Become a knowledge partner

Related links

http://zoo-project.org/img/ogclogo.png http://zoo-project.org/img/osgeologo.png