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

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

Added licensing mentions on docs guide too

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