This repository contains documentation for Chef InSpec resource packs.
We use Hugo, Go, NPM, go-swagger, and jq. You will need Hugo 0.146 or higher installed and running to build and view our documentation properly.
To install Hugo, NPM, and Go on Windows and macOS:
- On macOS run:
brew tap go-swagger/go-swagger && brew install go-swagger hugo node go jq - On Windows run:
choco install hugo nodejs golang jq- See the Go-Swagger docs to install go-swagger
To install Hugo on Linux, run:
apt install -y build-essentialsudo apt-get install jqsnap install node --classicsnap install hugo --channel=extended- See the Go-Swagger docs to install go-swagger
-
(Optional) Install cspell
To be able to run the optional
make spellchecktask you'll need to installcspell:npm install -g cspell
Use one of the following methods to preview the documentation in inspec/chef-inspec-docs:
- submit a pull request
- run
make serve
When you submit a PR to inspec/chef-inspec-docs, Netlify builds the documentation
and add a notification to the GitHub pull request page. You can review your
documentation changes as they would appear on docs.chef.io.
- Run
make serve - go to http://localhost:1313
To clean your local environment, run make clean_all.