This Jekyll theme is developed using the U.S. Web Design System v 2.0 and is focused on providing developers a starter kit and reference implementation for Federalist websites.
This code uses the Jekyll site engine and built with Ruby. If you prefer to use Javascript, check out federalist-uswds-gatsby, which uses Gatsby site engine.
This project strives to be compliant with requirements set by 21st Century IDEA Act. The standards require that a website or digital service:
- is accessible to individuals with disabilities;
- has a consistent appearance;
- does not duplicate any legacy websites (the legislation also requires agencies to ensure that legacy websites are regularly reviewed, removed, and consolidated);
- has a search function;
- uses an industry standard secure connection;
- “is designed around user needs with data-driven analysis influencing management and development decisions, using qualitative and quantitative data to determine user goals, needs, and behaviors, and continually test the website, web-based form, web-based application, or digital service to ensure that user needs are addressed;”
- allows for user customization; and
- is mobile-friendly.
$ npm install
$ bundle install
$ npm start
$ npm run build
Note that when built by Federalist,
npm run federalist
is used instead ofnpm run build
.
Open your web browser to localhost:4000 to view your site.
This project contains a progressively decoupled application built in Angular and located in /search-app
. It is rendered in the template under the /search
directory.
Please review the application README to get started.
$ npm test-local
See Installing Cypress Documentation to get Cypress set up on local
$ npm install cypress --save-dev
Make sure that you have already run npm init or have a node_modules folder or package.json file in the root of your project to ensure cypress is installed in the correct directory.
- "test": runs all integration tests for site
- "test-local": will run the full pipeline on your local
- "cy:vis-regression": will run all visual regression tests for site
- "cy:open": opens the cypress runner
$ npm run start
- After that spilt the terminal and the testing commands below can be used
$ npm run cy:open
$ npm run test
$ npm run cy:vis-regression
$ npm run test-local
- Jekyll - The primary site engine that builds your code and content.
- Front Matter - The top of each page/post includes keywords within
--
tags. This is meta data that helps Jekyll build the site, but you can also use it to pass custom variables. - U.S. Web Design System v 2.0
- Cypress
See CONTRIBUTING for additional information.
This project is in the worldwide public domain. As stated in CONTRIBUTING:
This project is in the public domain within the United States, and copyright and related rights in the work worldwide are waived through the CC0 1.0 Universal public domain dedication.
All contributions to this project will be released under the CC0 dedication. By submitting a pull request, you are agreeing to comply with this waiver of copyright interest.