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 Control Panel --> System --> Advanced --> Environment Variables. Look for
PATHamong the system variables, and add the installation locations to the end of the string. For example, if python is installed inC:\Pythonadd the following to the end of the string:Confirm availability of Python 3:
-
Open a command line window and run:
-
Confirm availability with:
-
To test for a successful installation, in a command line window, navigate to your GeoServer source checkout and run:
This is the same as running:
This should generate HTML pages in the
doc\en\target\user\htmldirectory.
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:
Depending on your system this may trigger the installation of other packages.
Confirm availability of Python 3:
-
Install Sphinx using pip:
-
Confirm availability with:
-
To test for a successful installation, navigate to your GeoServer source checkout and run:
This should generate HTML pages in the
doc/en/target/user/htmldirectory.
Mac OS X¶
Installing Sphinx on macOS is nearly identical to installing Sphinx on a Linux system.
-
Example using homebrew package manager:
Confirm availability of Python 3:
-
Use
piporpip3to install sphinx and related tools: -
Confirm availability with:
-
To test for a successful installation, navigate to your GeoServer source checkout and run: