GeoTools documentation is provided using a Attribution 3.0 Unported license.
Code examples are explicitly placed into the public domain, to facilitate the easy cut-and-paste of example code.
GeoTools makes use of the python sphinx documentation system:
-
Install Python (macOS example):
brew install python
-
To install
sphinx-buildandsphinx-autobuildusingrequirements.txt:pip3 install -r requirements.txt
-
To confirm installation:
sphinx-build --version sphinx-autobuild --version
-
To establish a virtual environment just for this project (macOS example):
brew install virtualenv virtualenv venv
-
To activate python:
source venv/bin/activate -
To install requirements into virtual environment:
pip install -r requirements.txt
-
To confirm installation:
sphinx-build --version sphinx-autobuild --version
-
The maven compile stage is used to generate documentation:
mvn compile
-
Pofiles are avaialble to build just one section:
mvn compile -Puser mvn compile -Pdeveloper
-
The
releasemodulepackagephase is responsible for bundling the user documentation download.See userDocDist.xml for details.
-
You may also quickly test by calling the ant
build.xmldirectly::ant user
The files are generated into
target/user/html/index.html. -
Interactive feedback while editing is availle:
ant user-site
Opens
http://localhost:8000/for a live preview which will update as you edit. -
For the complete list of build targets:
ant -p
Buildfile: /Users/jgarnett/dev/geotools/geotools/docs/build.xml sphin-build integration for GeoTools documentation Main targets: developer Generate sphinx-build developper guide developer-site Interactive autobuild evelopper guide, opens browser to http://localhost:8000 full Generate sphinx-build of all content index Generate sphinx-build index page user Generate sphinx-build user guide user-site Interactive autobuild user guide, opens browser to http://localhost:8000 web Generate sphinx-build website Default target: full
Please see the user guide build instructions for more detail.