Skip to content

Jekyll site for showcasing the projects and people that make up Census Open Innovation Labs

License

Notifications You must be signed in to change notification settings

uscensusbureau/coil-site

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

The Census Open Innovation Labs Website

This repo includes code for the COIL website. coil.census.gov

It is built with Jekyll using the uswds-jekyll theme


Dependencies

  1. Ruby v3.1.3
  2. Node v4.2.3+
    • gulp (npm i -g gulp)
  3. Bundler v2.3.18+
    • jekyll (gem install jekyll)
  4. Chrome v59 or higher (v60 if on Windows)

We recommend using a universal verion manager such as asdf

NOTE: Ensure that legacy_version_file = yes has been added to your .asdfrc file in your home directory. Requires terminal restart.


Getting Started

To work on the site, first clone the repository. After switching to your local copy of the repository in terminal, run the following command to install project dependencies:

npm run setup

Optionally, you can run the following (the above command compiles the following scripts):

npm install
bundle install
npm update uswds
npm run uswds-copy-assets
npm run uswds-build-sass

Now that all of your dependencies are installed, run:

npm run watch
  • This runs a series of commands that watches for any changes in both USWDS node module and the root level asset folders in this repo.

Finally, start your local server by running the following command:

npm run serve
  • npm run serve or npm start -- --incremental: Runs your local server with incremental regeneration enabled to greatly improve build time. Use instead of npm start.

Go to 127.0.0.1:4000 in your browser — you should be viewing a local instance



Updating Content

Team Photos

  • Change the coil_people.yml file to reflect current team
  • Add both .png/.jpg and .webp files to the assets/img/team folder
  • The .webp file needs to have a size of 214x271

Testing

HTML Validation

run npm run html-proofer to validate the site's HTML, check broken links, missing images & alts, etc with HTMLProofer.

run npm run html-proofer:skip-external to save time by skipping validating external links


Building with Pages

This repository is hooked up to Pages, an automatic build process used by many government websites. Whenever you push changes to Github, Pages will make a new build (using the federalist command in package.json).

Pages will then provide a URL for this build which you can use for user testing. To get the URL for the build, click on the green check-mark next to the build status for whatever branch you just pushed to, and then click the "Details" link.

When you merge a branch into main, Pages will then make a new build with the same process and deploy it to opportunity.census.gov

When a build fails

If Pages fails to build, the status dot on the branch in Github will change from yellow (in progress) to red (failed). If this happens, contact Luke Keller via Slack in the Census Bureau workspace to see the logs from the failed build. He has access to Pages itself. We do not.

About

Jekyll site for showcasing the projects and people that make up Census Open Innovation Labs

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • SCSS 56.2%
  • HTML 40.0%
  • JavaScript 3.2%
  • Other 0.6%