feat: Move away from github-pages gem and add ruby 4 support for docs#2588
feat: Move away from github-pages gem and add ruby 4 support for docs#2588hopkincame wants to merge 27 commits intogoogle:mainfrom
Conversation
…r changes to github pages deploy
G-Rath
left a comment
There was a problem hiding this comment.
Awesome stuff! I've made some comments but most of the changes I think I've done so they just need accepting as suggestions 😄
We also need to bump the ruby version in the Dockerfile
|
|
||
| on: | ||
| push: | ||
| branches: [docs] |
There was a problem hiding this comment.
I don't think we actually need to have a dedicated docs branch right?
I think right now the configuration is that we're deploying from main, and that should be fine; alternatively we could have it be deployed just on workflow dispatch (since the docs don't get changed with every PR), and/or as part of our release workflow (to help ensure the docs are up to date, in case we forget to publish a small update or something...)
There was a problem hiding this comment.
This project has a dedicated docs branch (osv.dev doesn't have one though) and based on the deployment times, it appears to be what is currently used to deploy docs. I can't see what the settings for deploys are though so I can't 100% confirm and I can change it to main if that is desired, but let's see what Google says first
There was a problem hiding this comment.
We are intentionally deploying from docs, the idea is if we need to add any mid release docs changes to the currently released version we can, while we still are able to make new docs updates to the upcoming changes currently in main but not released.
|
|
||
| # Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued. | ||
| # However, do NOT cancel in-progress runs as we want to allow these production deployments to complete. | ||
| concurrency: |
There was a problem hiding this comment.
very nitty but typically we have concurrency before the permissions block
| group :jekyll_plugins do | ||
| gem "jekyll-feed", "~> 0.15" | ||
| end | ||
| gem "jekyll", "~> 4.3.2" |
There was a problem hiding this comment.
we're not necessarily using all of these plugins ay, they're just github-pages was using right?
Happy to do that for now, though it'd be good if we could try and remove ones we're obviously not using - I know for sure we have no coffeescript, and I'd guess gist and paginate probably are not being used either
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #2588 +/- ##
==========================================
- Coverage 71.67% 71.63% -0.04%
==========================================
Files 164 164
Lines 12080 12080
==========================================
- Hits 8658 8654 -4
- Misses 2794 2796 +2
- Partials 628 630 +2 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|
|
||
| on: | ||
| push: | ||
| branches: [docs] |
There was a problem hiding this comment.
We are intentionally deploying from docs, the idea is if we need to add any mid release docs changes to the currently released version we can, while we still are able to make new docs updates to the upcoming changes currently in main but not released.
another-rex
left a comment
There was a problem hiding this comment.
LGTM, just the two minor changes
docs/_config.yml
Outdated
| - jekyll-coffeescript | ||
| - jekyll-gist | ||
| - jekyll-github-metadata | ||
| - jekyll-paginate | ||
| - jekyll-relative-links | ||
| - jekyll-optional-front-matter | ||
| - jekyll-readme-index | ||
| - jekyll-default-layout | ||
| - jekyll-titles-from-headings |
There was a problem hiding this comment.
This seems to need a lot more plugins now, can you add a bit to the PR description to explain why this is necessary?
|
@hopkincame just checking you've seen this comment? |
This PR reworks the doc page deployment by removing the github pages gem and deploying using a github actions workflow. This was done to enable support for ruby 4, which is unsupported by github pages. As a result of the docs being deployed by github actions rather than pages, the deployment process for docs has changed, this PR also has an update to the contribution docs to reflect these changes. The github action workflow is set to deploy docs when there is a push to the docs branch.
This PR also adds some plugins for Jekyll. These were ones that github pages added automatically, now that we have removed github pages, thee plugins are included here instead.
Once this PR is merged, the "Pages" settings will need to be updated. The build and deployment source will need to be changed to github actions.