$ npm install
$ bundle install
$ npm run serve (or bundle exec jekyll serve)
- /images: This folder contains editorial photos and other images for People cards and pages, Project cards and pages, event logos for the Events cards and page, and other areas that are likely to change semi-frequently.
- /assets/img: Site assets and evergreen images such as page banners/headers and vector graphics should be placed in the assets/img folder here. The images in this folder typically will not be subject to change.
There are a couple ways to update the USWDS:
This site uses custom USWDS theme settings in assets/uswds-theme
. Use this if you want to include or remove utilities or update utility settings.
- Compile usds.css
gulp uswds-build-sass
- Run Jekylll
bundle exec jekyll serve
Use this to patch any display bugs through updates to USWDS.
- Install the package
npm install --save-dev *new-USWDS-version-number*
- Compile usds.css
gulp uswds-build-sass
- Run Jekylll
bundle exec jekyll serve
This will will update some of the scss files in assets/uswds-sass
, but will not overwrite any of your files in assets/uswds-theme
.
- Install the package
npm install --save-dev *new-USWDS-version-number*
- Run
gulp update
- Compile usds.css
gulp uswds-build-sass
- Run Jekyll
bundle exec jekyll serve
Staging sites are one-off, per-user builds in a cloud.gov sandbox. Handy for testing and gathering feedback.
- Determine if you have access to cloud.gov and follow instructions to sign up.
- Log in to your cloud.gov dashboard and install and configure Cloud Foundry.
JEKYLL_ENV=staging bundle exec jekyll build
Specifying the environment will add a temporary "Staging" indicator to the site and adds <meta name="robots" content="noindex" />
to the head, which can help prevent the staging site from being indexed.
cf push
A successful push will print a staging url next to routes
, ex: website-staging-foo-bar-ab.app.cloud.gov
.