Skip to content

Staging #122

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 26 commits into from
Nov 22, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions .github/workflows/build-and-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ on: [push]
jobs:
build:
name: Install, build and test site with pa11y-ci and htmlproofer.
runs-on: ubuntu-latest
runs-on: ubuntu-20.04
env:
LANG: en_US.UTF-8
LANGUAGE: en_US
Expand All @@ -25,6 +25,7 @@ jobs:
- name: Install ruby.
uses: ruby/setup-ruby@v1
with:
ruby-version: 3.1
bundler-cache: true

- name: Install node.js.
Expand All @@ -35,8 +36,8 @@ jobs:
- name: Install NPM dependencies.
run: npm install

- name: Build and start up jekyll server.
run: npm run build && npm run start-detached
- name: Start up jekyll server.
run: npm run start-detached

- name: Run pa11y-ci.
run: npm run pa11y-ci:sitemap
Expand Down
9 changes: 8 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,11 @@ node_modules
Gemfile.lock
package-lock.json
.idea
.DS_Store
.DS_Store
assets/uswds/
assets/js/uswds*
assets/img/
assets/fonts/
assets/js/uswds.js
assets/js/uswds.min.js
assets/js/uswds.min.js.map
2 changes: 1 addition & 1 deletion .ruby-version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2.7.4
3.1.3
5 changes: 3 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM ruby:2.7.4
FROM ruby:3.1.3

RUN apt-get update && \
apt-get install --reinstall -y locales && \
Expand All @@ -16,7 +16,8 @@ WORKDIR /app
COPY Gemfile /app
COPY Gemfile.lock /app

RUN gem install bundler:1.17.2
RUN gem --version
RUN gem install bundler:2.2.13
RUN bundle install

EXPOSE 4000
10 changes: 6 additions & 4 deletions Gemfile
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
source "https://rubygems.org"
ruby '>= 2.6.4'
ruby '~> 3.1.3'

gem "jekyll", "~> 4.0"
gem "jekyll", "4.2.2"
gem "execjs", "2.7.0" # https://github.com/rails/execjs/issues/99
gem "autoprefixer-rails"
gem 'eventmachine', '1.2.7', git: 'https://github.com/eventmachine/eventmachine.git', tag: 'v1.2.7'
gem "webrick","~> 1.8"

group :jekyll_plugins do
gem "jekyll-feed", "~> 0.15"
gem 'jekyll-redirect-from'
gem 'jekyll-paginate-v2', "3.0.0"
gem 'jekyll-sitemap'
gem 'jekyll-seo-tag'
gem 'jekyll-assets', git: "https://github.com/envygeeks/jekyll-assets"
end

# Windows does not include zoneinfo files, so bundle the tzinfo-data gem
Expand All @@ -21,4 +21,6 @@ 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.18"
gem "html-proofer", "~> 5"

gem "webrick", "~> 1.8"
139 changes: 62 additions & 77 deletions Gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,20 +1,3 @@
GIT
remote: https://github.com/envygeeks/jekyll-assets
revision: 056d2c88719ef3b1f90967a606dd1441581dd832
specs:
jekyll-assets (4.0.0.alpha)
activesupport (>= 5, < 7)
execjs (~> 2.7)
extras (~> 0.2)
fastimage (~> 2.0, >= 1.8)
jekyll (>= 3.5, < 5.0)
jekyll-sanity (~> 1.2)
liquid-tag-parser (>= 1, < 3)
nokogiri (~> 1.10)
pathutil (~> 0.16)
sassc (>= 1.11, < 3.0)
sprockets (~> 4.0.beta7)

GIT
remote: https://github.com/eventmachine/eventmachine.git
revision: 9cb13a8a62363df5ebcc414169a3deb2c1608528
Expand All @@ -25,42 +8,48 @@ GIT
GEM
remote: https://rubygems.org/
specs:
activesupport (6.1.4.6)
concurrent-ruby (~> 1.0, >= 1.0.2)
i18n (>= 1.6, < 2)
minitest (>= 5.1)
tzinfo (~> 2.0)
zeitwerk (~> 2.3)
addressable (2.8.0)
public_suffix (>= 2.0.2, < 5.0)
autoprefixer-rails (10.4.2.0)
Ascii85 (1.1.0)
addressable (2.8.5)
public_suffix (>= 2.0.2, < 6.0)
afm (0.2.2)
async (2.6.5)
console (~> 1.10)
fiber-annotation
io-event (~> 1.1)
timers (~> 4.1)
autoprefixer-rails (10.4.15.0)
execjs (~> 2)
colorator (1.1.0)
concurrent-ruby (1.1.9)
concurrent-ruby (1.2.2)
console (1.23.2)
fiber-annotation
fiber-local
em-websocket (0.5.3)
eventmachine (>= 0.12.9)
http_parser.rb (~> 0)
ethon (0.15.0)
ethon (0.16.0)
ffi (>= 1.15.0)
execjs (2.7.0)
extras (0.3.0)
forwardable-extended (~> 2.5)
fastimage (2.2.6)
ffi (1.15.5)
ffi (1.15.5-x64-mingw32)
ffi (1.16.3)
ffi (1.16.3-x64-mingw-ucrt)
fiber-annotation (0.2.0)
fiber-local (1.0.0)
forwardable-extended (2.6.0)
html-proofer (3.19.3)
hashery (2.1.2)
html-proofer (5.0.8)
addressable (~> 2.3)
mercenary (~> 0.3)
nokogiri (~> 1.12)
parallel (~> 1.3)
async (~> 2.1)
nokogiri (~> 1.13)
pdf-reader (~> 2.11)
rainbow (~> 3.0)
typhoeus (~> 1.3)
yell (~> 2.0)
zeitwerk (~> 2.5)
http_parser.rb (0.8.0)
i18n (1.10.0)
i18n (1.14.1)
concurrent-ruby (~> 1.0)
jekyll (4.2.1)
io-event (1.3.3)
jekyll (4.2.2)
addressable (~> 2.4)
colorator (~> 1.0)
em-websocket (~> 0.5)
Expand All @@ -75,94 +64,90 @@ GEM
rouge (~> 3.0)
safe_yaml (~> 1.0)
terminal-table (~> 2.0)
jekyll-feed (0.16.0)
jekyll-feed (0.17.0)
jekyll (>= 3.7, < 5.0)
jekyll-paginate-v2 (3.0.0)
jekyll (>= 3.0, < 5.0)
jekyll-redirect-from (0.16.0)
jekyll (>= 3.3, < 5.0)
jekyll-sanity (1.6.0)
jekyll (>= 3.1, < 5.0)
pathutil (~> 0.16)
jekyll-sass-converter (2.1.0)
jekyll-sass-converter (2.2.0)
sassc (> 2.0.1, < 3.0)
jekyll-seo-tag (2.8.0)
jekyll (>= 3.8, < 5.0)
jekyll-sitemap (1.4.0)
jekyll (>= 3.7, < 5.0)
jekyll-watch (2.2.1)
listen (~> 3.0)
kramdown (2.3.1)
kramdown (2.4.0)
rexml
kramdown-parser-gfm (1.1.0)
kramdown (~> 2.0)
liquid (4.0.3)
liquid-tag-parser (2.0.2)
extras (~> 0.3)
liquid (>= 3.0, < 5.0)
listen (3.7.1)
liquid (4.0.4)
listen (3.8.0)
rb-fsevent (~> 0.10, >= 0.10.3)
rb-inotify (~> 0.9, >= 0.9.10)
mercenary (0.4.0)
mini_portile2 (2.7.1)
minitest (5.15.0)
nokogiri (1.13.1)
mini_portile2 (~> 2.7.0)
nokogiri (1.15.4-x64-mingw-ucrt)
racc (~> 1.4)
nokogiri (1.13.1-x64-mingw32)
nokogiri (1.15.4-x86_64-linux)
racc (~> 1.4)
parallel (1.21.0)
pathutil (0.16.2)
forwardable-extended (~> 2.6)
public_suffix (4.0.6)
racc (1.6.0)
rack (2.2.3)
pdf-reader (2.11.0)
Ascii85 (~> 1.0)
afm (~> 0.2.1)
hashery (~> 2.0)
ruby-rc4
ttfunk
public_suffix (5.0.3)
racc (1.7.2)
rainbow (3.1.1)
rb-fsevent (0.11.1)
rb-fsevent (0.11.2)
rb-inotify (0.10.1)
ffi (~> 1.0)
rexml (3.2.5)
rouge (3.28.0)
rexml (3.2.6)
rouge (3.30.0)
ruby-rc4 (0.1.5)
safe_yaml (1.0.5)
sassc (2.4.0)
ffi (~> 1.9)
sassc (2.4.0-x64-mingw32)
ffi (~> 1.9)
sprockets (4.0.2)
concurrent-ruby (~> 1.0)
rack (> 1, < 3)
terminal-table (2.0.0)
unicode-display_width (~> 1.1, >= 1.1.1)
timers (4.3.5)
ttfunk (1.7.0)
typhoeus (1.4.0)
ethon (>= 0.9.0)
tzinfo (2.0.4)
tzinfo (2.0.6)
concurrent-ruby (~> 1.0)
tzinfo-data (1.2022.1)
tzinfo-data (1.2023.3)
tzinfo (>= 1.0.0)
unicode-display_width (1.8.0)
wdm (0.1.1)
webrick (1.8.1)
yell (2.2.2)
zeitwerk (2.5.4)
zeitwerk (2.6.12)

PLATFORMS
ruby
x64-mingw32
x64-mingw-ucrt
x86_64-linux

DEPENDENCIES
autoprefixer-rails
eventmachine (= 1.2.7)!
execjs (= 2.7.0)
html-proofer (~> 3.18)
jekyll (~> 4.0)
jekyll-assets!
html-proofer (~> 5)
jekyll (= 4.2.2)
jekyll-feed (~> 0.15)
jekyll-paginate-v2 (= 3.0.0)
jekyll-redirect-from
jekyll-seo-tag
jekyll-sitemap
tzinfo-data
wdm (~> 0.1.0)
webrick (~> 1.8)

RUBY VERSION
ruby 2.7.4p191
ruby 3.1.4p223

BUNDLED WITH
2.2.24
2.3.26
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ ga:

- We try to keep configuration options to a minimum so you can easily change functionality. You should 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 refer to the agency name and contact information. The rest of `_config.yml` has a range of more advanced options.

- The contents inside `assets/` folder store your Javascript, SCSS/CSS, images, and other media assets are managed by [jekyll-assets](https://github.com/envygeeks/jekyll-assets). Assets are combined, compressed, and automatically available in your theme
- The `assets/` folder stores your Javascript, CSS, images, and other media assets. Additional SASS partials should be added to the `_sass/` folder where they can be imported. USWDS assets are automatically copied into the `assets/` folder when running `jekyll serve` or `jekyll build`

- If you look at `package.json` you will see that the `npm run federalist` command that will run when running on the Federalist platform.

Expand Down
Binary file removed _assets/img/hire-us.jpg
Binary file not shown.
39 changes: 16 additions & 23 deletions _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -210,6 +210,7 @@ collections:

permalink: pretty


############################################################
# Site configuration for the Jekyll 3 Pagination Gem
# The values here represent the defaults if nothing is set
Expand Down Expand Up @@ -267,27 +268,19 @@ exclude:
- docker-compose.yml
- Dockerfile

assets:
digest: false
autoprefixer:
browsers:
- "> 2%"
- "last 2 versions"
- "IE 11"
- "not dead"
compression: true
sources:
autoprefixer:
browsers:
- "> 2%"
- "last 2 versions"
- "IE 11"
- "not dead"

sass:
source_dir: _sass
load_paths:
- node_modules/uswds/dist
- node_modules/uswds/dist/img
- node_modules/uswds/dist/js
- node_modules/uswds/dist/scss
- node_modules/netlify-cms/dist
- _assets/img
- _assets/js
- _assets/css
defaults:
js: { integrity: false }
css: { integrity: false }
img: { integrity: false }
features:
integrity: false
sourcemap: development
quiet_deps: true
style: compressed
verbose: true

2 changes: 1 addition & 1 deletion _includes/footer.html
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ <h4>Related Federal Websites</h4>
<ul class="usa-list--unstyled padding-right-4">
<li class="usa-footer__secondary-link"><a href="https://www.whitehouse.gov/omb/information-regulatory-affairs/" class="usa-link--external">Office of Management and Budget, Office of Information and Regulatory Affairs (OMB OIRA)</a></li>

<li class="usa-footer__secondary-link"><a href="https://nces.ed.gov/FCSM/index.asp" class="usa-link--external">Interagency Council on Statistical Policy (ICSP)</a></li>
<li class="usa-footer__secondary-link"><a href="https://www.statspolicy.gov/" class="usa-link--external">Interagency Council on Statistical Policy (ICSP)</a></li>

<li class="usa-footer__secondary-link"><a href="https://beta.nsf.gov/funding/opportunities/methodology-measurement-and-statistics-mms" class="usa-link--external">National Science Foundation’s NSF Methodology, Measurement and Statistics (NSF MMS)</a></li>

Expand Down
Loading