Documentation
The STIG Manager OSS Documentation is written in reStructuredText. Sphinx and the Read The Docs theme is used to generate the site, which is located in the project repo and hosted on Read The Docs: stig-manager.readthedocs.io
Documentation Build
Build with Docker
Clone the STIG Manager repository from GitHub.
Navigate to /docs folder of the repository.
Build the Docker image using the following command:
docker build -t sphinx-w-requirements .Run the Docker image using the following command:
docker run --rm -v "$(pwd):/docs" sphinx-w-requirementsThe build product is located in
_buildin the docs directory.
Alternatively, you can run the build.sh script located in the /docs directory of the repository. This script will build the Docker image and run the container, generating the documentation.
Build with Python
To build the documentation locally:
Clone the STIG Manager repository from GitHub.
Install Python
Install Sphinx
pip install sphinxNavigate to /docs folder of the repository.
Install the documentation build requirements
pip install -r requirements.txtDepending on the OS you are using, build the documentation using make.bat or the Makefile, and specify html as the format. Windows PowerShell example:
./make html
By default, the build product is located in _build in the docs directory.