Documentation of OSGeoLive project
 
 
 
 
 
Go to file
Angelos Tzotsos d0606af052 Preparing 16.0rc1 release 2023-08-05 14:38:06 +03:00
.github/workflows [CI] do not upgrade sphinx 2023-07-31 12:38:58 -06:00
.tx Locale cleanup (#801) 2023-04-06 14:36:23 -06:00
ci Locale cleanup (#801) 2023-04-06 14:36:23 -06:00
cmake Using sphinx revealjs (#725) 2022-06-14 14:23:39 -05:00
debian Preparing 16.0rc1 release 2023-08-05 14:38:06 +03:00
doc Merge pull request #811 from florisvdh/patch-1 2023-08-01 09:05:13 -06:00
locale Update locale: commit 2023-08-02 13:38:32 +00:00
presentation Remove kate editor temp file 2023-07-01 16:39:17 +02:00
scripts Locale cleanup (#801) 2023-04-06 14:36:23 -06:00
tools Using sphinx revealjs (#725) 2022-06-14 14:23:39 -05:00
.editorconfig Using sphinx revealjs (#725) 2022-06-14 14:23:39 -05:00
.gitignore [lint] ignoring *.swp files 2021-02-06 17:47:39 -06:00
CMakeLists.txt [CI] checking additional languages 2023-04-04 12:30:09 -06:00
CONTRIBUTING.md add https://explore.transifex.com/osgeo/osgeolive/ 2022-12-03 11:48:39 +01: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 Update README.rst with link to weblate 2023-04-12 21:33:55 +02:00
VERSION.txt Switching to 16 2023-01-05 15:12:42 +02:00
appveyor.yml Add back VS_VERSION 2022-08-05 12:36:16 +02: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 update 52nSOS version and add new contributor 2022-07-15 12:25:22 +02:00
de.tbx Added translation using Weblate (Finnish) 2023-03-29 19:27:55 +00:00
es.tbx Added translation using Weblate (Finnish) 2023-03-29 19:27:55 +00:00
fi.tbx Added translation using Weblate (Finnish) 2023-03-29 19:27:55 +00:00
fr.tbx Added translation using Weblate (Finnish) 2023-03-29 19:27:55 +00:00
hu.tbx Added translation using Weblate (Finnish) 2023-03-29 19:27:55 +00:00
index_pdf.template fix pdf and html documentation adding new templates 2012-12-15 04:31:57 +00:00
it.tbx Added translation using Weblate (Finnish) 2023-03-29 19:27:55 +00:00
ja.tbx Added translation using Weblate (Finnish) 2023-03-29 19:27:55 +00:00
licenses.csv Fixing issues and updating the locale 2023-02-15 21:23:10 -06:00
menuselections.conf Fixing issues and updating the locale 2023-02-15 21:23:10 -06:00
nl.tbx Added translation using Weblate (Swedish) 2023-04-05 05:27:10 +00:00
projects_info.csv Update projects_info.csv 2023-08-01 17:51:03 -06:00
pt.tbx Added translation using Weblate (Swedish) 2023-04-05 05:27:10 +00:00
requirements.txt Fixing deploy of presentation 2022-07-26 15:53:58 -05:00
sv.tbx Added translation using Weblate (Swedish) 2023-04-05 05:27:10 +00:00
tocompress.txt Update images to compress 2017-07-12 20:44:23 +02:00
tr.tbx Added translation using Weblate (Swedish) 2023-04-05 05:27:10 +00:00
transifex.yml [locale] Automatic generation of locale files 2022-03-24 13:30:13 -06:00
translators.csv Update translators.csv 2021-05-25 14:27:14 +02:00
zh_Hans.tbx Added translation using Weblate (Swedish) 2023-04-05 05:27:10 +00: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 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

   # Python requirements
   pip install -r requirements.txt

1.2 Requirements for the presentation

::
   sudo apt-get install cpanminus
   sudo cpanm Text::SimpleTable::AutoWidth


2.1 For Ubuntu 20.04 (Focal Fossa)
To build onto Focal Fossa, you will need `specific packages <https://github.com/OSGeo/OSGeoLive-doc/blob/master/debian/control#L5-L12>`_:
::
   # Packages required for doc building on Ubuntu 20.04
   sudo apt install debhelper python3-sphinx python3-stemmer python3-pil \
   pngquant cmake libtext-simpletable-autowidth-perl \

.. TODO sphinx-revealjs is now used
   python3-sphinxjp.themes.revealjs

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>`__
* `Weblate translation platform <https://osgeo.github.io/OSGeoLive-doc/en/index.html>`__


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