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

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

corrected license link

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