-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
docs(external): generate global option and common field from Rust macro #22408
docs(external): generate global option and common field from Rust macro #22408
Conversation
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 @titaneric, these improvements are much appreciated 👍
common: false | ||
required: false | ||
} | ||
acknowledgements: { |
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.
Please note that these configuration are generated from the Rust original code. I don't port the config from configuration.cue
to Rust docs.
@@ -798,6 +798,17 @@ def resolve_schema(root_schema, schema) | |||
end | |||
end | |||
|
|||
# required for global option configuration | |||
is_common_field = get_schema_metadata(schema, 'docs::common') |
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.
I think it's temporary solution for Ruby docs generator, and I do believe that it would be much bettern when we port Ruby code to Rust.
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.
Delaying approval since there seems to be an internal comment in the PR, but I will loop back. Thank you!
updated before they expire and are removed. | ||
|
||
Set this to a value larger than your `internal_metrics` scrape interval (default 5 minutes) | ||
that metrics live long enough to be emitted and captured, |
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.
that metrics live long enough to be emitted and captured, | |
so metrics live long enough to be emitted and captured. |
|
||
configuration: { | ||
// expire_metrics's type is a little bit tricky, we could not generate `uint` from `docs::type_override` metadata macro easily. |
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.
It seems like this comment is internal, should it be removed?
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.
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.
@jhgilbert , would you please check it?
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.
Double checked and leaving the comment is fine.
Pull Request is not mergeable
Summary
This is follow-up PR for #22345
Change Type
Is this a breaking change?
How did you test this PR?
make generate-component-docs cd website make run-production-site-locally
Does this PR include user facing changes?
Checklist
make check-all
is a good command to run locally. This check isdefined here. Some of these
checks might not be relevant to your PR. For Rust changes, at the very least you should run:
cargo fmt --all
cargo clippy --workspace --all-targets -- -D warnings
cargo nextest run --workspace
(alternatively, you can runcargo test --all
)Cargo.lock
), pleaserun
dd-rust-license-tool write
to regenerate the license inventory and commit the changes (if any). More details here.References