Installing Sphinx¶
In order to work with Sphinx and generate the HTML/PDF documentation you will need the following:
To optionally make PDF documentation you will need the following:
LaTeX installation with full extensions (in order to build PDF documentation). For more details, see Installing LaTeX.
Windows¶
Download and install Python 3. Though there are various distributions and versions, the official versions have been tested and work as expected.
Put python in your Path. To do so, go to
. Look forPATH
among the system variables, and add the installation locations to the end of the string. For example, if python is installed inC:\Python
add the following to the end of the string:...;C:\Python
Confirm availability of Python 3:
python --version
Open a command line window and run:
cd doc\en pip3 install -r requirements.txt
Confirm availability with:
sphinx-build --version sphinx-autobuild --version
To test for a successful installation, in a command line window, navigate to your GeoServer source checkout and run:
mvn clean -f doc/en install
This is the same as running:
cd doc\en ant user ant docguide ant developer
This should generate HTML pages in the
doc\en\target\user\html
directory.
Ubuntu¶
Note
These instructions may work on other Linux distributions as well, but have not been tested.
Open a terminal and type the following command:
sudo apt-get install python-dev build-essential pip
Depending on your system this may trigger the installation of other packages.
Confirm availability of Python 3:
python --version
Install Sphinx using pip:
cd doc/en pip3 install -r requirements.txt
Confirm availability with:
sphinx-build --version sphinx-autobuild --version
To test for a successful installation, navigate to your GeoServer source checkout and run:
mvn clean -f doc/en install
This should generate HTML pages in the
doc/en/target/user/html
directory.
Mac OS X¶
Installing Sphinx on macOS is nearly identical to installing Sphinx on a Linux system.
Example using homebrew package manager:
brew install python
Confirm availability of Python 3:
python --version
Use
pip
orpip3
to install sphinx and related tools:cd doc/en pip3 install -r requirements.txt
Confirm availability with:
sphinx-build --version sphinx-autobuild --version
To test for a successful installation, navigate to your GeoServer source checkout and run:
mvn clean -f doc/en install