-
Notifications
You must be signed in to change notification settings - Fork 119
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鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
Ruby 3.1 upgrade #2296
Ruby 3.1 upgrade #2296
Conversation
Assuming I can check those last few boxes above and fix the build in the next day or so, I think the next move is to evaluate whether (1) this seems like a plausible future for cg-site and (2) seems like a plausible future for sites based on https://github.com/cloud-gov/pages-uswds-jekyll. My thoughts on how this works so far:
|
This is probably ready to merge. Remaining weak spots of things to review:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Few small suggestions, all just style/syntax, otherwise looks good!
.github/workflows/link-checker.yml
Outdated
@@ -13,12 +13,12 @@ jobs: | |||
|
|||
- uses: ruby/setup-ruby@v1 | |||
with: | |||
ruby-version: 2.7 | |||
ruby-version: 3.1 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not needed when using .ruby-version
.github/workflows/link-checker.yml
Outdated
bundler-cache: true # runs 'bundle install' and caches installed gems automatically | ||
|
||
- uses: actions/setup-node@v3 | ||
with: | ||
node-version: 14.19.1 | ||
node-version: 18.15.0 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could potentially replace with node-version-file: '.nvmrc'
to try to limit the number of places where we need to change the node version.
@@ -21,7 +19,6 @@ group :jekyll_plugins do | |||
gem 'jekyll-paginate-v2', "3.0.0" | |||
gem 'jekyll-sitemap' | |||
gem 'jekyll-seo-tag' | |||
gem 'jekyll-assets', git: "https://github.com/envygeeks/jekyll-assets" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This always made me nervous, glad to see it go.
@@ -53,16 +53,16 @@ Logs are currently retained for 180 days, and you will only see data for applica | |||
|
|||
After logging in, you'll see the App Overview dashboard. | |||
|
|||
{% asset app-overview.png alt="App Overview dashboard" %} | |||
!["App Overview dashboard"]({{site.baseurl}}/assets/images/content/app-overview.png) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Idea: alternative syntax that I gravitated towards as being more readable, but totally my own personal preference:
!["App Overview dashboard"]({{ "/assets/images/content/app-overview.png" | relative_url }})
package.json
Outdated
"watch:server": "mkdir -p _site && sleep 5 && browser-sync _site -w --reload-delay 1000", | ||
"build": "run-s prod:parcel jekyll", | ||
"jekyll": "bundle exec jekyll build JEKYLL_ENV=production", | ||
"prod:parcel": "run-p build:css build:static:js build:static:docs build:images", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"prod:parcel": "run-p build:css build:static:js build:static:docs build:images", | |
"prod:parcel": "run-p build:*", |
Documenting for postering but I've removed the subresource integrity build process:
|
Use v4 shims for font-awesome
@drewbo I did some initial checking over the preview build and here's what I found:
Also, when testing the ability to build the site locally, I found:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Everything looked good when testing a local build and in the Pages build. Great work!
Changes proposed in this pull request:
jekyll-assets
(re: Consider migrating away fromjekyll-assets
聽pages-uswds-jekyll#186)parcel
as the primary asset handlerRemaining items
asset_url
/asset_path
need to be removed. As part of this, the USWDS overrides should be removed and the asset paths "hardened" (right now I swapped many of the initial paths to'../'
so they find their way out of the css folder)馃槑PREVIEW URL
Security Considerations
New dependencies, upgraded Ruby