Skip to content
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

Update Gatsby and all other packages #186

Merged
merged 10 commits into from
Jan 21, 2022
Merged

Update Gatsby and all other packages #186

merged 10 commits into from
Jan 21, 2022

Conversation

rogermparent
Copy link
Contributor

@rogermparent rogermparent commented Jan 18, 2022

This PR is primarily meant to upgrade cml.dev to Gatsby 4, but in the process upgrades all other packages to their latest versions and does any changes needed to make builds work after.

It was a surprisingly painless process (not having a blog helps), but it's possible some small things will end up broken so we'll have to check it over before merging.

Fixes #163

@rogermparent rogermparent self-assigned this Jan 18, 2022
@shcheklein shcheklein temporarily deployed to cml-dev-gatsby-4-upgrad-rifhxk January 18, 2022 22:25 Inactive
@rogermparent rogermparent temporarily deployed to cml-dev-gatsby-4-upgrad-rifhxk January 18, 2022 22:28 Inactive
@rogermparent rogermparent temporarily deployed to cml-dev-gatsby-4-upgrad-rifhxk January 18, 2022 23:10 Inactive
@yathomasi
Copy link
Contributor

Great @rogermparent. I checked thoroughly, it's running on my machine without any issues, and also the Heroku deployment is also looking good. I think we can proceed further.

@rogermparent rogermparent had a problem deploying to cml-dev-gatsby-4-upgrad-rifhxk January 19, 2022 16:14 Failure
@rogermparent rogermparent temporarily deployed to cml-dev-gatsby-4-upgrad-rifhxk January 19, 2022 16:20 Inactive
@rogermparent rogermparent temporarily deployed to cml-dev-gatsby-4-upgrad-rifhxk January 19, 2022 17:33 Inactive
@rogermparent rogermparent marked this pull request as ready for review January 19, 2022 18:28
@rogermparent
Copy link
Contributor Author

rogermparent commented Jan 19, 2022

Images were broken before, but I just fixed them and now I think this PR is good to go!

Unlike dvc.org, the build doesn't break with existing cache (or maybe it's just so short that a second build doesn't time out) so babysitting won't be as mandatory after merging!

Copy link
Contributor

@casperdcl casperdcl left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yep images lgtm now :)

@rogermparent
Copy link
Contributor Author

Fixed a minor style issue, code blocks in the title were a bit bigger due to changes in the GitHub Markdown CSS package and the longer ones were line-breaking.

before:
before

after:
after

@rogermparent rogermparent temporarily deployed to cml-dev-gatsby-4-upgrad-rifhxk January 19, 2022 19:18 Inactive
Copy link
Contributor

@julieg18 julieg18 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great job @rogermparent! It looks great! Just one small thing about the docs images and this should be good to merge!

{
"files": "*.css",
"options": {
"singleQuote": false
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should look into adding this to dvc.org!

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

dvc.org took a different approach by changing format-staged not to target css files, but giving it this configuration will probably make linting more robust.

name: 'images',
path: path.join(__dirname, 'static', 'img')
}
},
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Glad we're using gatsby-plugin-image for our docs! The images look kind of blurry. If I remember correctly from us fixing this with dvc.org, we need to add quality: 90 to our gatsby-remark-images options.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I remember the same solution to this problem, but after implementing it I don't notice any improvement. 🤔

@casperdcl casperdcl mentioned this pull request Jan 20, 2022
@rogermparent rogermparent temporarily deployed to cml-dev-gatsby-4-upgrad-rifhxk January 20, 2022 19:17 Inactive
@rogermparent
Copy link
Contributor Author

rogermparent commented Jan 21, 2022

I'm going to merge this in since it's been effectively approved by everything and it's 99% of the way to parity with master, any remaining issues like the last bit of thumbnail image quality can be addressed in further iterations.

@rogermparent rogermparent merged commit d9a347d into master Jan 21, 2022
@rogermparent rogermparent deleted the gatsby-4-upgrade branch January 21, 2022 20:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Update site from Gatsby 2 to 4
5 participants