-
Notifications
You must be signed in to change notification settings - Fork 19
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
CDN install instructions #919
CDN install instructions #919
Conversation
Thus far, I've only updated the accordion documentation. If this looks good, let me know and I'll go through and do the rest. |
Preview site available at cdn-install-instructions.pr.designsystem.webstandards.ca.gov. |
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.
good
See my comment at #324 |
I've added CDN installation instructions for a majority of the components. Some components have been excluded due to inconsistent file paths for CSS/JS, which has led to broken CDN uploads. #923 describes this problem. I think we'll need to work through that issue to fully finish this PR. Still to-do:
|
#923 has been added to this PR.
I did not add CDN installation instructions to base-css and combined-css. We need to do a lot more with those READMEs to make them useful, so I'm punting. I also skipped icons. I suspect there may be a larger discussion worth having about how to make that available via CDN. Finally, I feel we should remove the component |
This sparks joy. ✨ |
@aaronhans @zakiya I'd like to get a fresh review on this PR if y'all don't mind. It's changed quite a bit since the previous approval, including major version bumps to half the components. |
if (filePath.indexOf('.css') > -1) { | ||
key = cssKey; | ||
} | ||
const key = keyPrefix + filePath.split(`${dir}/`)[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.
nice
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 is great @xjensen! Love all the major version bumps and standardization we have now
I'm going to merge into release branch and publish to NPM. The major version bumps should keep all our sites safe. |
Per #324, updates component documentation with CDN installation instructions.
Also includes #923 by adding
dist
folders for all CSS-only components. Link-icon also gets adist
folder, and it's CSS is now inserted via JS to bring it into consistency with the other JavaScript components.