Skip to content

CMSgov/dpc-static-site

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Data at the Point of Care

A static Jekyll site for the DPC welcome, FAQ, and documentation pages.

https://dpc.cms.gov

About the Project

This project dynamically generates static pages for use in the DPC informational website.

Pre-requisite: Installing and Using Pre-commit

Anyone committing to this repo must use the pre-commit hook to lower the likelihood that secrets will be exposed.

Step 1: Install pre-commit

You can install pre-commit using the MacOS package manager Homebrew:

brew install pre-commit

Other installation options can be found in the pre-commit documentation.

Step 2: Install the hooks

Run the following command to install the gitleaks hook:

pre-commit install

This will download and install the pre-commit hooks specified in .pre-commit-config.yaml.

Development

Docker Development

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

Native Installation

If you'd like to run the site natively without Docker, follow the instructions below.

Requirements

It is assumed that the environment already has these installed:

  • ruby currently using 2.7.1
  • jekyll currently using 4.2.0
  • npm currently using 6.13.4

Navigate to the repository and install the appropriate Gem file and package.json file.

  1. gem install bundler <— install Gem bundler
  2. bundle install <— install Gem bundles
  3. npm install <— install package.json dependencies

Running or Building the Application

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.

About the project

Project Vision

The project vision is available at https://dpc.cms.gov.

Agency Mission

See https://www.cms.gov for this project's agency's mission.

Team Mission

DPC operates under the Data Analytics and Systems Group.

Core Team

Team members are listed on our community page.

Contributing

Contributions should follow our policy.

Community Guidelines

See the Code of Conduct for community guidelines.

Policies

Contributions to this project must comply with Section 508 accessibility standards.

Public Domain

This project is subject to the Creative Commons Zero 1.0 International License.

About

No description, website, or topics provided.

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Packages

No packages published

Contributors 27