-
Notifications
You must be signed in to change notification settings - Fork 148
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
USWDS-Site - Content: Add note about incorrect package date to download page #2621
Conversation
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.
Thanks for creating the note. I'd like to see if we can do a plain language pass.
Essentially, the date isn't what users are expecting and this is expected because of how the code is package and shipped.
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.
commented in thread
|
@mahoneycm Is the intention to have the same note in both the README and the download page? If so, I wonder if we can pull in the README content onto the download page so that we don't have to do dual maintenance if we ever need to update the copy. We should be able to isolate the note in the README by using Do you see any disadvantages to this approach? |
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.
LGTM
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.
Can we try Amy's idea in comment to re-use content and avoid having to maintain it in multiple places?
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.
LGTM. I don't know (technically) about the solution Amy proposed, but if it allows us to publish once and display in multiple places, that's great.
Using liquid
|
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.
Looks good to me! Confirmed it matches the text in uswds/uswds#5871. Thanks for adding those comments.
…rect-download-dates
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.
Approved with minor suggestion.
Co-authored-by: James Mejia <james.mejia@gsa.gov>
|
@mahoneycm Can you create a changelog entry for this change? |
|
Also, just flagging that the base branch for this is |
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.
Changelog
I created a new changelog for the download page and this update! I opted to name this as about-download since it lives in the "How to use USWDS" section of the site.
_data/changelogs/about-download.yml
Outdated
| type: documentation | ||
| changelogURL: | ||
| items: | ||
| - date: NNNN-NN-NN |
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.
Important
Changelog date should be updated before merge
|
Merging over pa11y crashes |
Summary
Added site note to download page addressing incorrect package dates.
Important
We are adding another note to the Documentation page which is generated by USWDS README content. This work is being addressed in uswds/uswds#5871
Related issue
Closes #2499
Related pull requests
uswds/uswds#5871
Preview link
Preview link →
Problem statement
NPM purposefully sets package dates to 10/26/1985 to ensure hash-identical tarballs no matter when or on what device the
npm packis ran. This can confuse users who inspect the package and see the incorrect files for the date.Solution
Add note to site to specify this is intended behavior from NPM.
Testing and review
Tip
There is a slight indentation on the version and hash numbers. If we want the note to match this style, I can add the
link-download-subtextclass, or similar margin utility class