Skip to content

reitermb/website

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

USDS website

Setup

Built with

Prerequisites

Install & run

$ npm install
$ bundle install
$ npm run serve (or bundle exec jekyll serve)

Content updates

Uploading images

  • /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.

Adding Content

Maintenance

Updating USWDS

There are a couple ways to update the USWDS:

Change theme settings

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.

  1. Compile usds.css gulp uswds-build-sass
  2. Run Jekylll bundle exec jekyll serve

Only update the USDS.css without getting new functions and tokens for use in usds.gov project files

Use this to patch any display bugs through updates to USWDS.

  1. Install the package npm install --save-dev *new-USWDS-version-number*
  2. Compile usds.css gulp uswds-build-sass
  3. Run Jekylll bundle exec jekyll serve

Update USDS and get new functions and tokens for use in usds.gov project files

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.

  1. Install the package npm install --save-dev *new-USWDS-version-number*
  2. Run gulp update
  3. Compile usds.css gulp uswds-build-sass
  4. Run Jekyll bundle exec jekyll serve

Optional

Deploy a staging site to cloud.gov

Staging sites are one-off, per-user builds in a cloud.gov sandbox. Handy for testing and gathering feedback.

Create a cloud.gov account and configure Cloud Foundry

Build the site with Jekyll staging environment variable.

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.

Push staging build to cloud.gov

cf push

A successful push will print a staging url next to routes, ex: website-staging-foo-bar-ab.app.cloud.gov.

Packages

No packages published

Languages

  • CSS 72.2%
  • HTML 23.7%
  • JavaScript 2.3%
  • Ruby 1.8%