-
Notifications
You must be signed in to change notification settings - Fork 8.1k
dockerfile: create stub file with frontmatter #15165
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
dockerfile: create stub file with frontmatter #15165
Conversation
✅ Deploy Preview for docsdocker ready!Built without sensitive environment variables
To edit notification comments on pull requests, go to your Netlify site settings. |
|
actually not so great atm as we have to fetch remote reference in the same folder so we can include it with liquid template func |
8534df5 to
c86c00e
Compare
c86c00e to
38622ff
Compare
_config.yml
Outdated
| repo: crazy-max/buildkit | ||
| ref: docs-ref-move-frontmatter |
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.
use my fork for testing
I'm a bit confused though; for other includes, we use the |
|
Or is that because of relative links to markdown files? |
Hum indeed it might work with the |
38622ff to
9262650
Compare
_config.yml
Outdated
| - file: "frontend/dockerfile/docs/reference.md" | ||
| line_start: 2 | ||
| line_end: -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.
@thaJeztah As discussed, removed the github_content liquid tag plugin and enhance our fetch_remote plugin to be able to specify line_start and line_end
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.
Argh edit_url and issue_url is lost then 😣
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.
Ok managed to fix edit_url and issue_url inclusion by grabbing the one available in site default scope. I have created a dedicated liquid tag named include_remote that does pretty much the same job as include except it also handles <line_start>, <line_end> and creates the right edit_url and issue_url.
LGTY @thaJeztah ?
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
9262650 to
04ae02b
Compare
_config.yml
Outdated
| - repo: "https://github.com/crazy-max/buildkit" | ||
| default_branch: "master" | ||
| ref: "master" | ||
| ref: "docs-ref-move-frontmatter" |
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.
use my fork while waiting for moby/buildkit#2970 to be merged
thaJeztah
left a comment
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 after switching to upstream once moby/buildkit#2970 is merged
04ae02b to
57144bd
Compare
thaJeztah
left a comment
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
needs moby/buildkit#2970
as discussed, it's better to have the frontmatter section here instead of the buildkit repo.
needs to fetch remote reference in the same folder otherwise we can't include it in the stub file. will be fixed anyway when we are going to move to the new location in #15110