-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Stephanie Green
committed
Apr 8, 2019
0 parents
commit ba23a87
Showing
38 changed files
with
1,916 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
--- | ||
layout: default | ||
--- | ||
|
||
|
||
<div class="grid-row grid-gap"> | ||
<div class="usa-layout-docs-main_content desktop:grid-col-9 usa-prose"> | ||
<h1>>Page not found</strong></h1> | ||
<p>The requested page could not be found (404).</p> | ||
</div> | ||
</div> | ||
|
||
|
||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
# Welcome! | ||
|
||
We're so glad you're thinking about contributing to a [open source project of the U.S. government](https://code.gov/)! If you're unsure about anything, just ask -- or submit the issue or pull request anyway. The worst that can happen is you'll be politely asked to change something. We love all friendly contributions. | ||
|
||
We encourage you to read this project's CONTRIBUTING policy (you are here), its [LICENSE](LICENSE.md), and its [README](README.md). | ||
|
||
## Policies | ||
|
||
We want to ensure a welcoming environment for all of our projects. Our staff follow the [TTS Code of Conduct](https://18f.gsa.gov/code-of-conduct/) and all contributors should do the same. | ||
|
||
We adhere to the [18F Open Source Policy](https://github.com/18f/open-source-policy). If you have any questions, just [shoot us an email](mailto:[email protected]). | ||
|
||
## Public domain | ||
|
||
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](https://creativecommons.org/publicdomain/zero/1.0/). | ||
|
||
All contributions to this project will be released under the CC0 dedication. By submitting a pull request or issue, you are agreeing to comply with this waiver of copyright interest. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
source "https://rubygems.org" | ||
|
||
# Hello! This is where you manage which Jekyll version is used to run. | ||
# When you want to use a different version, change it below, save the | ||
# file and run `bundle install`. Run Jekyll with `bundle exec`, like so: | ||
# | ||
# bundle exec jekyll serve | ||
# | ||
# This will help ensure the proper Jekyll version is running. | ||
# Happy Jekylling! | ||
gem "jekyll", "~> 3.8.4" | ||
|
||
|
||
# If you have any plugins, put them here! | ||
group :jekyll_plugins do | ||
gem "jekyll-feed", "~> 0.6" | ||
gem 'jekyll-redirect-from' | ||
gem 'jekyll-paginate-v2', "2.0" | ||
gem 'jekyll-sitemap' | ||
# gem 'jekyll_pages_api_search' | ||
end | ||
|
||
|
||
|
||
# Windows does not include zoneinfo files, so bundle the tzinfo-data gem | ||
gem "tzinfo-data", platforms: [:mingw, :mswin, :x64_mingw, :jruby] | ||
|
||
# Performance-booster for watching directories on Windows | ||
gem "wdm", "~> 0.1.0" if Gem.win_platform? | ||
|
||
|
||
gem "html-proofer", "~> 3.10" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,105 @@ | ||
GEM | ||
remote: https://rubygems.org/ | ||
specs: | ||
activesupport (5.2.2) | ||
concurrent-ruby (~> 1.0, >= 1.0.2) | ||
i18n (>= 0.7, < 2) | ||
minitest (~> 5.1) | ||
tzinfo (~> 1.1) | ||
addressable (2.5.2) | ||
public_suffix (>= 2.0.2, < 4.0) | ||
colorator (1.1.0) | ||
colorize (0.8.1) | ||
concurrent-ruby (1.1.4) | ||
em-websocket (0.5.1) | ||
eventmachine (>= 0.12.9) | ||
http_parser.rb (~> 0.6.0) | ||
ethon (0.12.0) | ||
ffi (>= 1.3.0) | ||
eventmachine (1.2.7) | ||
ffi (1.10.0) | ||
forwardable-extended (2.6.0) | ||
html-proofer (3.10.1) | ||
activesupport (>= 4.2, < 6.0) | ||
addressable (~> 2.3) | ||
colorize (~> 0.8) | ||
mercenary (~> 0.3.2) | ||
nokogiri (~> 1.9) | ||
parallel (~> 1.3) | ||
typhoeus (~> 1.3) | ||
yell (~> 2.0) | ||
http_parser.rb (0.6.0) | ||
i18n (0.9.5) | ||
concurrent-ruby (~> 1.0) | ||
jekyll (3.8.5) | ||
addressable (~> 2.4) | ||
colorator (~> 1.0) | ||
em-websocket (~> 0.5) | ||
i18n (~> 0.7) | ||
jekyll-sass-converter (~> 1.0) | ||
jekyll-watch (~> 2.0) | ||
kramdown (~> 1.14) | ||
liquid (~> 4.0) | ||
mercenary (~> 0.3.3) | ||
pathutil (~> 0.9) | ||
rouge (>= 1.7, < 4) | ||
safe_yaml (~> 1.0) | ||
jekyll-feed (0.11.0) | ||
jekyll (~> 3.3) | ||
jekyll-paginate-v2 (2.0.0) | ||
jekyll (~> 3.0) | ||
jekyll-redirect-from (0.14.0) | ||
jekyll (~> 3.3) | ||
jekyll-sass-converter (1.5.2) | ||
sass (~> 3.4) | ||
jekyll-sitemap (1.2.0) | ||
jekyll (~> 3.3) | ||
jekyll-watch (2.1.2) | ||
listen (~> 3.0) | ||
kramdown (1.17.0) | ||
liquid (4.0.1) | ||
listen (3.1.5) | ||
rb-fsevent (~> 0.9, >= 0.9.4) | ||
rb-inotify (~> 0.9, >= 0.9.7) | ||
ruby_dep (~> 1.2) | ||
mercenary (0.3.6) | ||
mini_portile2 (2.4.0) | ||
minitest (5.11.3) | ||
nokogiri (1.10.1) | ||
mini_portile2 (~> 2.4.0) | ||
parallel (1.13.0) | ||
pathutil (0.16.2) | ||
forwardable-extended (~> 2.6) | ||
public_suffix (3.0.3) | ||
rb-fsevent (0.10.3) | ||
rb-inotify (0.10.0) | ||
ffi (~> 1.0) | ||
rouge (3.3.0) | ||
ruby_dep (1.5.0) | ||
safe_yaml (1.0.4) | ||
sass (3.7.3) | ||
sass-listen (~> 4.0.0) | ||
sass-listen (4.0.0) | ||
rb-fsevent (~> 0.9, >= 0.9.4) | ||
rb-inotify (~> 0.9, >= 0.9.7) | ||
thread_safe (0.3.6) | ||
typhoeus (1.3.1) | ||
ethon (>= 0.9.0) | ||
tzinfo (1.2.5) | ||
thread_safe (~> 0.1) | ||
yell (2.0.7) | ||
|
||
PLATFORMS | ||
ruby | ||
|
||
DEPENDENCIES | ||
html-proofer (~> 3.10) | ||
jekyll (~> 3.8.4) | ||
jekyll-feed (~> 0.6) | ||
jekyll-paginate-v2 (= 2.0) | ||
jekyll-redirect-from | ||
jekyll-sitemap | ||
tzinfo-data | ||
|
||
BUNDLED WITH | ||
1.17.2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
# License | ||
|
||
As a work of the [United States government](https://www.usa.gov/), this project is in the public domain within the United States of America. | ||
|
||
Additionally, we waive copyright and related rights in the work worldwide through the CC0 1.0 Universal public domain dedication. | ||
|
||
## CC0 1.0 Universal Summary | ||
|
||
This is a human-readable summary of the [Legal Code (read the full text)](https://creativecommons.org/publicdomain/zero/1.0/legalcode). | ||
|
||
### No Copyright | ||
|
||
The person who associated a work with this deed has dedicated the work to the public domain by waiving all of their rights to the work worldwide under copyright law, including all related and neighboring rights, to the extent allowed by law. | ||
|
||
You can copy, modify, distribute, and perform the work, even for commercial purposes, all without asking permission. | ||
|
||
### Other Information | ||
|
||
In no way are the patent or trademark rights of any person affected by CC0, nor are the rights that other persons may have in the work or in how the work is used, such as publicity or privacy rights. | ||
|
||
Unless expressly stated otherwise, the person who associated a work with this deed makes no warranties about the work, and disclaims liability for all uses of the work, to the fullest extent permitted by applicable law. When using or citing the work, you should not imply endorsement by the author or the affirmer. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,141 @@ | ||
<!-- | ||
Federalist recommends you use Continuous Integration to automatically test | ||
and validate any new changes to your site. CircleCI is free for open source | ||
projcets. You should replace this badge with your own. | ||
https://circleci.com/ | ||
--> | ||
[](https://circleci.com/gh/18F/federalist-uswds-jekyll) | ||
|
||
# Federalist + U.S. Web Design System + Jekyll | ||
|
||
This [Jekyll theme](https://jekyllrb.com/docs/themes/) is developed using the [U.S. Web Design System v 2.0](https://v2.designsystem.digital.gov) and is focused on providing developers a starter kit and reference implementation Federalist websites. | ||
|
||
This code uses the [Jekyll](https://jekyllrb.com) site engine and built with Ruby. If you prefer to use Javascript, check out [federalist-uswds-gatsby](https://github.com/18F/federalist-uswds-gatsby), which uses [Gatsby](https://gatsbyjs.org) site engine. | ||
|
||
This project assumes that you are comfortable editing source code. If you prefer to launch a website without editing any source code, checkout [uswds-jekyll](https://github.com/18F/uswds-jekyll), which allows you to change the layout and content with a few configuration options. | ||
|
||
|
||
|
||
**WARNING** This is a pre-1.0 code. You can keep track of progress here: https://github.com/18F/federalist-uswds-jekyll/issues/14 | ||
|
||
This project strives to be compliant with requirements set by [21st Century IDEA Act](https://www.meritalk.com/articles/senate-passes-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. | ||
|
||
## Key Functionality | ||
This repository contains the following examples and functionality: | ||
|
||
*Complete:* Publish blog posts, press releases, announcements, etc. To modify this code, check out `news/index.html`, which manages how the posts are listed. You should then check out `_layouts/post.html` to see how individual posts are structured. | ||
|
||
*Complete:* Publish single one-off pages. Instead of creating lots of folders throughout the root directory, you should put single pages in `_pages` folder and change the `permalink` at the top of each page. Use sub-folders only when you really need to. | ||
|
||
*Complete:* Publish lists (for example: job listings, links, references), you can use the template `_layouts/list.html`. Just create a file in you `_pages` folder with the following options: | ||
|
||
``` | ||
--- | ||
title: Example Page | ||
layout: list | ||
permalink: /jobs | ||
datafile: jobs | ||
--- | ||
``` | ||
|
||
The reference to `datafile` referers to the name of the file in `_data/jobs.yml` and loops through the values. Feel free to modify this as needed. | ||
|
||
*Complete:* There are two different kinds of `pages`, one does not have a side bar navigation, and the other uses `_includes/sidenav.html`. You can enable this option by adding `sidenav: true` to your page front matter. | ||
|
||
``` | ||
--- | ||
title: Example Page with Sidebar | ||
layout: page | ||
sidenav: true | ||
permalink: /example-page-with-sidebar | ||
--- | ||
``` | ||
|
||
|
||
*In Progress:* Searchable site. Integration with | ||
[`jekyll_pages_api_search`](https://github.com/18F/jekyll_pages_api_search) is | ||
in progress, but you can setup site search with [Search.gov](https://search.gov) | ||
by adding your affiliate name to `_config.yml`. | ||
|
||
*Pending:* Examples of how you can include large data files into your site and how to query and display the data. | ||
|
||
|
||
|
||
## How to edit | ||
- We try to keep configuration options to a minimum so you can easily remove functionality, but you can review `_config.yml` to see the options that are available to you. There are a few values on top that you **need** to change. They make reference to the agency name and contact information. The advanced options at the bottom should be changed only if you know what you know what you're doing. | ||
- Do not edit files in the `assets/` folder. This folder is reserved for serving assets once the sites is compiled. If you want add your own custom code, add and edit files in `src/`, ideally mirroring the `assets/` folder structure. This will keep the code repository small and not include unneccessary files. | ||
- If you look at `package.json` you will see that the `npm run federalist` command will copy the contents from `src/` and move it over to `assets/` folder during the build process. If you want more advanced functionality, you should look into using [Webpack](https://webpack.js.org/concepts/configuration/). | ||
- Do not edit files in the `_site/` folder. These files are automatically generated and changes you make there will be destroyed. | ||
- You will most certainly need to edit files in `_includes/`, which include the primary menu, side navigation, logos etc | ||
- `index.html` may not require much editing, depending on how you customize `hero.html` and `highlights.html`. | ||
- `_layouts/` may require the least amount of editing of all the files since they are primarily responsible for printing the content. | ||
- `news/index.html` can be edited, but be careful. It will impact the pagination system for the posts. If you do edit the file, be prepared to edit `_config.yml`. You should also familiarize yourself with [jekyll-paginate-v2](https://github.com/sverrirs/jekyll-paginate-v2) | ||
- Non-developers should focus only on `_posts` and `_pages` | ||
|
||
## Known Issues | ||
- The search gem is not compatible with latest version of Jekyll. More information [here](https://github.com/18F/jekyll_pages_api_search/pull/41) | ||
- To set the underline indicator (`usa-current`) on the top menu, we need Javascript to match the routing. | ||
|
||
## Installation | ||
|
||
Clone the repository. | ||
|
||
$ git clone https://github.com/18F/federalist-uswds-jekyll | ||
$ cd federalist-uswds-jekyll | ||
|
||
Install the Node.js dependencies. | ||
|
||
$ npm install | ||
|
||
Build the site. | ||
|
||
$ npm run build | ||
|
||
Run the site locally. | ||
|
||
$ npm start | ||
|
||
Open your web browser to [localhost:4000](http://localhost:4000/) to view your | ||
site. | ||
|
||
After you make changes, be sure to run the tests. | ||
|
||
$ npm test | ||
|
||
Note that when built by Federalist, `npm run federalist` is used instead of the | ||
`build` script. | ||
|
||
|
||
## Technologies you should be familiarize yourself with | ||
|
||
- [Jekyll](https://jekyllrb.com/docs/) - The primary site engine that builds your code and content. | ||
- [Front Matter](https://jekyllrb.com/docs/frontmatter) - 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](https://v2.designsystem.digital.gov) | ||
- [Jekyll Search](https://github.com/18F/jekyll_pages_api_search/) | ||
|
||
|
||
## Contributing | ||
|
||
See [CONTRIBUTING](CONTRIBUTING.md) for additional information. | ||
|
||
## Public domain | ||
|
||
This project is in the worldwide [public domain](LICENSE.md). As stated in [CONTRIBUTING](CONTRIBUTING.md): | ||
|
||
> 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](https://creativecommons.org/publicdomain/zero/1.0/). | ||
> | ||
> 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. |
Oops, something went wrong.