source: branches/PublicaMundi_David_integration_01-devel/docs/development/documentation.txt @ 811

Last change on this file since 811 was 595, checked in by nbozon, 10 years ago

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

Search

Context Navigation

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