-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
chore(external docs): render array of object type in component docs #22138
chore(external docs): render array of object type in component docs #22138
Conversation
I have to admit that I am neither a frontend engineer nor a UI expert, but I have added some margin same as |
I appreciate your efforts on this. I am also not an expert with frontend stuff. If it helps, this is how I test Vector website locally:
Need to install Hugo e.g. |
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.
Node that Line 119 (rendering config object) has the similar margin.
Let me take a look at the grey bubble |
It takes charge to render the |
A more serious issue encountered. I want to add metrics: {
description: "A list of metrics to generate."
required: true
type: array: items: type: object {
examples: [
{
field: "value_transform_total"
counter: {
value: 10.0
}
kind: "incremental"
name: "test.transform.counter"
tags: {
env: "test_env"
host: "localhost"
}
},
]
syntax: "template" but I have the following error:
It seems that it does not fit the current schema? Perhaps deleting the gray bubble is another solution. Updated: Okay, now I fully understand how the schema in cue works in vector, there is no |
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
How does this look to you? cc @jszwedko
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 work on this @titaneric . This issue has been a pet peeve for me for a long while but I was never able to muster the energy to dig into it. The rendering looks good to me. I would like to see if we could drop that extra grey syntax
oval if possible.
Thank you, I think if syntax is not necessary for the array type and we could simply delete it since it's not defined in the array's schema. |
As you pointed it out, |
I have deleted it! Hope that the preview website could be successfully deployed. |
Tangential: Hmm the website wasn't generated even the though there's |
Awesome, thanks for this fix @titaneric ! |
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.
Thank you for pointing out this one. I am wondering why array type could have |
Ok, I find there is a |
303b12c
to
ff6f9c8
Compare
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.
Awesome, thanks @titaneric ! This looks good to me now (both the reduce
and log_to_metric
transform pages).
Summary
Try to resolve #22136.
log_to_metric
transformsstatic metric
Change Type
Is this a breaking change?
How did you test this PR?
Navigate to log to metric transforms and static metric
Does this PR include user facing changes?
Checklist
Cargo.lock
), pleaserun
dd-rust-license-tool write
to regenerate the license inventory and commit the changes (if any). More details here.References
Close #22136