9. Documentation
9.1. Build with Docker
Clone the C-PAT 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.
9.2. Build with Python
To build the documentation locally:
Clone the C-PAT 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.