A static Jekyll site for the DPC welcome, FAQ, and documentation pages.
Anyone committing to this repo must use the pre-commit hook to lower the likelihood that secrets will be exposed.
You can install pre-commit using the MacOS package manager Homebrew:
brew install pre-commitOther installation options can be found in the pre-commit documentation.
Run the following command to install the gitleaks hook:
pre-commit installThis will download and install the pre-commit hooks specified in .pre-commit-config.yaml.
It is recommended to run the site using Docker. This standardizes the build process for all developers and avoids complex conflicts with library versioning.
Prerequisites:
To run the website with file updates reflected automatically at http://localhost:4001/:
make serve
To do a one-time build of the static website files directly into the _site directory:
make build
If you'd like to run the site natively without Docker, follow the instructions below.
It is assumed that the environment already has these installed:
Navigate to the repository and install the appropriate Gem file and package.json file.
gem install bundler<— install Gem bundlerbundle install<— install Gem bundlesnpm install<— installpackage.jsondependencies
Jekyll builds the CSS and HTML pages. Run bundle exec jekyll serve from the project root for a local build. By default, the site will run in http://localhost:4000/. You can also run bundle exec jekyll build to compile the site files into the _site directory.