.. _documentation: 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-requirements`` #. The build product is located in ``_build`` in 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 sphinx`` #. Navigate to /docs folder of the repository. #. Install the documentation build requirements ``pip install -r requirements.txt`` #. Depending 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.