![]() |
Home | Docs | Issue Tracker | FAQ | Download |
![]() ![]() |
Author: | Howard Butler |
---|---|
Contact: | hobu.inc at gmail.com |
Author: | Jeff McKenna |
Contact: | jmckenna at gatewaygeomatics.com |
Revision: | $Revision: 10212 $ |
Date: | $Date: 2010-06-08 11:54:12 -0400 (Tue, 08 Jun 2010) $ |
Table of Contents
The current structure of the MapServer documentation process is for developers with Subversion commit access to maintain their documents in reStructuredText format, and therefore all documents live in the /docs directory in SVN. The Sphinx documentation generator is used to convert the reStructuredText files to html, and the live website is then updated on an hourly basis.
MapServer instead of mapserver, map server, Map Server, mapServer or map Server.
MapScript instead of mapscript, Mapscript, or map script.
PostGIS instead of postgis.
HowTo instead of howto or HOWTO.
Email addresses should be manually spam protected:
hobu.inc at gmail.com instead of hobu.inc@gmail.com
All text should be hard breaks at or around the 80 column mark, just as the source code.
No .. sectnum:: in the contents directives
All external links should live at the bottom of your document, under the heading:
.. #### rST Link Section ####
Always include the :Revision: and :Date: lines (as-is) at the top of your document, such as:
:Revision: $Revision: 10212 $
:Date: $Date: 2010-06-08 11:54:12 -0400 (Tue, 08 Jun 2010) $
Note
As of 2010-06-01 the MapServer site requires Sphinx 1.0. You can browse the versions of the Sphinx packages here, and then install the exact version such as:
easy_install Sphinx==1.0b2
On Windows:
install Python 2.X
download setuptools
make sure that the ‘C:/Python2X/Scripts’ directory is your path
execute the following at commandline:
easy_install Sphinx
...you should see message: “Finished processing dependencies for Sphinx”
inside the /docs directory, execute:
make html
or
make latex
the HTML output will be written to the _build/html sub-directory.
On Linux:
make sure you have the Python dev and setuptools packages installed. On Ubuntu:
sudo apt-get install python-dev
sudo apt-get install python-setuptools
install sphinx using easy_install:
sudo easy_install Sphinx
to process the docs, from the MapServer /docs directory, run:
make html
or
make latex
the HTML output will be written to the build/html sub-directory.
Note
If there are more than one translation, the above commands will automatically build all translations.
On OS X:
install sphinx using easy_install:
sudo easy_install Sphinx
# install MacTex from http://www.tug.org/mactex/2009/ if you want to build pdfs
to process the docs, from the MapServer /docs directory, run:
make html
or
make latex
the HTML output will be written to the build/html sub-directory.
Note
If there are more than one translation, the above commands will automatically build all translations.
Note
To start a new translation, copy the directories images and include from docs/en to docs/<lang>, where <lang> is one of the country codes.
Note
One way to monitor changes is to subscribe the rss feed at http://trac.osgeo.org/mapserver/log/trunk/docs
You have to define which languages are available by setting TRANSLATIONS in the Makefile or make.bat:
TRANSLATIONS = en de
The build script will then process the subdirectories en and de. If they are not accessible, an error message will be returned.
You can regenerate the reference labels by issuing:
make labels
from the docs directory like when you are building the html or latex versions