-
Update dependencies
compliance-masonry get
-
Run the gitbook command
compliance-masonry docs gitbook LATO # Or compliance-masonry docs gitbook FedRAMP-low
The gitbook
command by default will create a folder called exports
that contains the files needed to create a gitbook. Visit the gitbook documentation for more information on creating gitbooks via the CLI.
Security documentation usually requires unstructured information that is not captured in the control documentation. The markdowns
directory can be used to add this supplemental information.
-
Create a
markdowns
folder in the same directory as theopencontrol.yaml
.mkdir markdowns
-
Create the
markdowns/SUMMARY.md
andmarkdowns/README.md
documents.touch markdowns/SUMMARY.md touch markdowns/README.md
The content of the markdowns/SUMMARY.md
and markdowns/README.md
files and the files they reference is prepended to the Gitbook documentation.
For more information on using the SUMMARY.md
and README.md
files visit the Gitbook documentation. For an example markdowns
directory visit the cloud.gov markdowns
.
Requires NodeJS. After running the steps above,
-
Install the gitbook CLI
npm install -g gitbook-cli
-
Navigate to the
exports
directorycd exports
-
Serve the gitbook site locally
gitbook serve
-
Open the site: http://localhost:4000
After making any edits, view the changes by running
compliance-masonry get && compliance-masonry docs gitbook <certification>
-
Following the steps above
-
Navigate to the
exports
directorycd exports gitbook pdf ./ book.pdf
-
There should be a
exports/book.pdf
file that you can open with a PDF viewer.