This repository houses the infrastructure for the OSCAL model generation pipeline.
- Clone the repository and initialize submodules:
git clone
cd OSCAL-Reference
git submodule update --init
- the OSCAL repository is quite large and when your internet connection is slow the default submodules init may take a while. Hence, to show progress on submodules init you may want to use the --progress option (available in git >= v2.11.0) in the following command:
git submodule update --init --progress
- Generate the site
make site
To see other common operations, refer to the Makefile
or simply run make help
.
The target make serve
runs builds the site and runs hugo serve
.
This repository uses Lychee to crawl the built site for bad external and internal links.
To perform link-checking, run the target make linkcheck
.
The link checker produces a report, nominally located at ./lychee_report.md
.
Lychee is configured to ignore URL patterns present in the ./support/lychee.toml
.
Additional configuration can be specified using the Makefile variable LYCHEE_EXTRA_FLAGS
:
# Cache server responses to save bandwidth on repeated runs
make linkcheck LYCHEE_EXTRA_FLAGS='--cache'
Some tasks such as generating the model documentation can be done in parallel for each target release.
Passing the -j <number>
flag will allow for parallel execution of makefile targets and can significantly speed up build times.
Pass in an appropriate value (usually the core count of the current machine), e.x.:
make site -j 8