jekyll: automatic edit url generation for remote resources#14799
Conversation
✅ Deploy Preview for docsdocker ready!Built without sensitive environment variables
To edit notification comments on pull requests, go to your Netlify site settings. |
I'd have to check the full content of this PR, but I know these can be a bit tricky;
For that last one, perhaps the edit links could point to an intermediate page ("this page is maintained in repository X. Before opening a pull request, read the contribution guidelines for that repository" (with links to both?)) - just thinking out loud here. 🤔 |
Indeed it might not make sense. Maybe we could add an Or name it
Yeah this one is tricky indeed. I guess that's why docs repo does not have DCO sign-off enabled? Maybe this is stupid but do you know if probot have a DCO config to exclude some paths for example? |
Not sure but Third-party remediation support might do the trick: https://github.com/dcoapp/app#third-party-remediation-support |
|
@thaJeztah added @usha-mandya issue url is now automatically generated for remote resources. Preview: https://deploy-preview-14799--docsdocker.netlify.app/registry/spec/manifest-v2-2/ |
|
This is great. Thanks @crazy-max. For Docker CLI docs, the Request docs changes link still points to the Docs repo. Should we also change this to point to the upstream CLI repo? |
6ae47c8 to
cb745da
Compare
| - scope: | ||
| path: engine/reference | ||
| values: | ||
| # FIXME: This edit url is as "best-effort" and doesn't match anything in docker/cli repo for plugins for example. It should be generated autmatically. | ||
| edit_url: "https://github.com/docker/cli/tree/master/docs/reference" |
There was a problem hiding this comment.
@thaJeztah As discussed, added back the "best-effort" edit url for engine references. In a follow-up we can see how to generate edit url for references from yaml files in _data folder.
cb745da to
075f276
Compare
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
075f276 to
c2ee94c
Compare
Now that we can enforce DCO in the webui, I think we can move forward with this PR: https://github.blog/changelog/2022-06-08-admins-can-require-sign-off-on-web-based-commits/ |
|
@thaJeztah Any blocker? This PR would be handy for #14948 so users would be redirected to the right page to open issues and edit the page from BuildKit repo. |
thaJeztah
left a comment
There was a problem hiding this comment.
LGTM
whoops, forgot we had this one 😅
It's quite hard to keep track of "edit url" in our configuration for remote resources. Some of them are not there, only match the parent folder or are broken like: https://docs.docker.com/desktop/extensions-sdk/dev/cli/usage/
Here the "Edit this page" button is relative to the current repository and not the upstream one: https://github.com/docker/docker.github.io/edit/master/desktop/extensions-sdk/dev/cli/usage.md
This PR makes some changes to our fetch remote resources plugin to automatically generate
edit_urlfor the right scope when a resource is fetched remotely. This way we don't need to maintain them in our configuration.In a follow-up we should also look at making this kind of automation for remote docs reference like https://docs.docker.com/engine/reference/commandline/buildx_bake/.
Signed-off-by: CrazyMax crazy-max@users.noreply.github.com