Sphinx (Optional)¶
To build the GeoTools “doc” folder you will need to install the components of the sphinx documentation system.
Reference:
Windows Sphinx Install¶
Install python and sphinx-build environment:
Python version 3 is required:
Once installed python will need to add it to your path.
set 'PYTHON=C:\Python3\' set 'PATH=%PATH%;%PYTHON%'
The Python pip is used to install python libraries and tools required:
cd docs pip install -r requirements.txt
A the time of writing requirements.txt installs:
sphinx sphinx-autobuild
To confirm installation:
sphinx-build --version
sphinx-build 6.2.1
macOS Sphinx Install¶
Install python and sphinx-build environment:
Python version 3 is required:
brew install python
Once installed python will need to add it to your path in
~/.zshrc
:export PATH="$PATH:~/Library/Python/3.9/bin"
The Python pip3 is used to install python libraries and tools required:
cd docs pip3 install -r requirements.txt
A the time of writing requirements.txt installs:
sphinx sphinx-autobuild
To confirm installation:
sphinx-build --version
sphinx-build 6.2.1
Linux Sphinx Install¶
Use your linux package manager such as apt-get
:
Python is usually available by default, if not:
apt-get install Python
You may need to use
sudo
(if for example you are on Ubuntu)The Python command:pip is used to install python libraries and tools required:
cd docs pip install -r requirements.txt
A the time of writing requirements.txt installs:
sphinx sphinx-autobuild
To confirm installation:
sphinx-build --version
sphinx-build 6.2.1