-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #118 from NSWC-Crane/CHRIS_DEV
Doc updates, minor bug fixes.
- Loading branch information
Showing
19 changed files
with
149 additions
and
77 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
# Ignore everything | ||
* | ||
|
||
# Except | ||
!html | ||
!.gitignore |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
#!/bin/bash | ||
|
||
SPHINX_IMAGE_W_REQUIREMENTS=sphinx-w-requirements | ||
|
||
# Change to this script directory | ||
cd "$(dirname "$(realpath "$0")")" | ||
|
||
# Create _build if it doesn't exist | ||
mkdir -p _build | ||
|
||
# Clean up _build | ||
find _build -type f -not -name '.gitignore' -delete | ||
find _build -type d -empty -delete | ||
|
||
docker build -t $SPHINX_IMAGE_W_REQUIREMENTS . | ||
|
||
docker run --rm -v $(pwd):/docs $SPHINX_IMAGE_W_REQUIREMENTS |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
|
||
.. _documentation: | ||
|
||
Documentation | ||
######################################## | ||
|
||
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-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 C-PAT 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. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -24,4 +24,5 @@ These pages describe how to setup and deploy C-PAT | |
environment-variables | ||
securing | ||
integrations | ||
documentation | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
|
||
.. _admin-index: | ||
.. _user-index: | ||
|
||
User Guide | ||
=============================== | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,6 @@ | ||
|
||
.. _labelprocessing: | ||
|
||
Label Processing | ||
---------------- | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.