1
0
Fork 0
Documentation of OSGeoLive project - gmt hack
 
 
 
 
Go to file
Angelos Tzotsos 95826c7cbd Fix control file 2020-10-04 23:10:52 +03:00
.github/workflows [de] fixing language check on pr 2020-08-28 22:43:31 -05:00
.tx [locale] clening up tx configuration 2020-04-03 23:52:10 -06:00
ci adding an action for linkcheck 2020-08-27 11:15:58 -05:00
cmake [build] fixing FindSphinx.cmake to work with python3 2018-11-27 14:35:19 -06:00
debian Fix control file 2020-10-04 23:10:52 +03:00
doc fixing links on new additional documentation for postgis 2020-10-01 19:29:23 -05:00
locale updating the locale for translations 2020-10-01 19:29:23 -05:00
scripts fixing a path bug 2018-07-10 14:07:56 -05:00
.gitignore Updating the readme on how to install requisites 2018-11-27 14:51:03 -06:00
.travis.yml fixing travis bot 2020-09-13 21:16:09 -05:00
CMakeLists.txt [build] setting up configuration for checking links 2020-04-03 20:52:23 -06:00
LICENSE.txt new file for LICENSE taken from https://live.osgeo.org/en/copyright.html 2018-03-24 15:18:37 +01:00
README.rst Add doc building requirements to README 2020-06-23 21:20:06 +02:00
VERSION.txt Preparing 13.0 release 2019-08-07 14:19:43 +03:00
appveyor.yml Fix requirements syntax 2019-11-20 00:33:05 +01:00
compile Updated overview of INSPIRE and OGC 2018-07-25 09:42:21 -04:00
contributors-transform-git.txt update name and email for git migration 2015-02-06 12:58:57 +00:00
contributors.csv Added FelicityBrand to contributors 2019-10-16 14:14:31 +11:00
index_pdf.template fix pdf and html documentation adding new templates 2012-12-15 04:31:57 +00:00
licenses.csv [build] setting up configuration for checking links 2020-04-03 20:52:23 -06:00
projects_info.csv OSGeoLive 14 update mapbender version to 3.2.0 (#596) 2020-10-01 17:17:42 -05:00
requirements.txt adding a requirements file 2018-03-26 19:33:11 -06:00
tocompress.txt Update images to compress 2017-07-12 20:44:23 +02:00
translators.csv Adding Alin Deneanu (Romania) 2019-08-31 16:08:42 +02:00

README.rst

Building OSGeoLive Documentation
================================

The following steps describe how to build OSGeoLive_ documentation on an Ubuntu
based operating system (such as Lubuntu).

https://osgeo.github.io/OSGeoLive-doc/ - automated publication of latest docs from GitHub. 
You can see the [build script here](.travis.yml). 

About OSGeoLive
~~~~~~~~~~~~~~~

OSGeoLive_ is a self-contained bootable DVD, USB thumb drive or Virtual
Machine based on Lubuntu, that allows you to try a wide variety of open source
geospatial software without installing anything. It is composed entirely of
free software, allowing it to be freely distributed, duplicated and passed
around.

reStructured Text
~~~~~~~~~~~~~~~~~

The majority of OSGeoLive documentation is generated from reStructured text (reSt) sources
using Sphinx. reSt is similar to wiki markup, and readable in plain ASCII. As a
quick check, GitHub will (partially) render reSt documents as HTML.

Build steps
~~~~~~~~~~~

Following the steps below on the OSGeoLive Virtual Machine itself is one of the easiest ways 
to build the OSGeoLive documentation. 

First install Python and create a virtual environment. 

1.0 Requirements
You might need to install `git` and `cmake` if they are not on your system yet.
::
   # Install git and cmake
   sudo apt-get install git cmake


1.1. For Python 2
::
   # Install pip
   sudo apt-get install python-pip

   # Prepare python environment
   pip install virtualenv
   virtualenv py-env

   # activate the environment
   source py-env/bin/activate

1.2. For Python 3
::
   # Install pip
   sudo apt-get install python3-pip
   sudo apt-get install python3-venv

   # Prepare python environment
   python3 -m venv py-env

   # activate the environment
   source py-env/bin/activate

2. Install the requirements
::
   # Python requirements
   pip install sphinx==1.6.5
   pip install sphinx-intl
   pip install sphinxjp.themes.revealjs

   # Requirements for the presentation
   sudo apt-get install cpanminus
   sudo cpanm Text::SimpleTable::AutoWidth

3. Clone or download OSGeoLive source documentation
::
   git clone https://github.com/OSGeo/OSGeoLive-doc.git

4. Generate the English documentation
::   
   cd OSGeoLive-doc
   mkdir build
   cd build
   cmake -DHTML=ON ..
   make
   cd ..

The output is in `build/doc/_build/html/`

5. Generate another language documentation
::
   cd build
   cmake -DHTML=ON -DFR=ON ..
   make
   cd ..

Adding -DFR=ON adds the French language, adding another -DES=ON adds Spanish, and so on. 
The output is also in `build/doc/_build/html/`

6. To build all available languages
::
   cd build
   cmake -DHTML=ON -DALL_LANG=ON ..
   make
   cd ..

7. *Optional*: reduce the size of the generated documentation
::
   bash scripts/clean-images.sh

Contributing:
~~~~~~~~~~~~~

Information about how to document the projects on OSGeoLive can be found on the OSGeoLive wiki: https://trac.osgeo.org/osgeolive/wiki

* `How to document a project <https://trac.osgeo.org/osgeolive/wiki/How%20to%20document%20a%20project>`__
* `How to configure project documentation <https://trac.osgeo.org/osgeolive/wiki/How%20to%20configure%20a%20project%20documentation>`__
* `How to document the overview file <https://trac.osgeo.org/osgeolive/wiki/How%20to%20document%20the%20overview%20file>`__
* `How to document the quickstart file <https://trac.osgeo.org/osgeolive/wiki/How%20to%20document%20the%20quickstart%20file>`__

References:
~~~~~~~~~~~

* https://wiki.osgeo.org/wiki/Live_GIS_Add_Project#Application_Overview

* https://www.sphinx-doc.org

* http://docutils.sf.net/rst.html

* http://matplotlib.sourceforge.net/sampledoc/

* https://osgeo.github.io/OSGeoLive-doc/ - automated publication of latest docs from GitHub

.. _OSGeoLive: https://live.osgeo.org