-
Notifications
You must be signed in to change notification settings - Fork 382
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
feat(generator): link each method input and output types #7665
Conversation
The protobuf documentation seems to use reference-style markdown links for protos in the comments, i.e., each reference to `Foo` is formatted as `[Foo][google.blah.blah.v1.Foo]`. This formatting is very distracting if left verbatim, but it can be turned into a link if we define `google.blah.blah.v1.Foo` as a link reference in Doxygen's markdown. With this change the input and output types of each method get such reference link definitions. The definitions themselves are not visible, but they make the generated Doxygen output easier to read. This does not solve the problem when the referenced entity is not an input or output type of the method, or when it references another method. But it works in enough cases to make the change worthwhile.
Google Cloud Build Logs
ℹ️ NOTE: Kokoro logs are linked from "Details" below. |
Codecov Report
@@ Coverage Diff @@
## main #7665 +/- ##
==========================================
- Coverage 95.28% 95.28% -0.01%
==========================================
Files 1254 1254
Lines 113284 113313 +29
==========================================
+ Hits 107946 107969 +23
- Misses 5338 5344 +6
Continue to review full report at Codecov.
|
Google Cloud Build Logs
ℹ️ NOTE: Kokoro logs are linked from "Details" below. |
Google Cloud Build Logs
ℹ️ NOTE: Kokoro logs are linked from "Details" below. |
Sorry about the churn, should be in a good place to review now. |
You are adding reference links for many methods that don't need them, but I think it's harmless. |
The protobuf documentation seems to use reference-style markdown links
for protos in the comments, i.e., each reference to
Foo
is formattedas
[Foo][google.blah.blah.v1.Foo]
. This formatting is verydistracting if left verbatim, but it can be turned into a link if we
define
google.blah.blah.v1.Foo
as a link reference in Doxygen'smarkdown.
With this change the input and output types of each method get such
reference link definitions. The definitions themselves are not visible,
but they make the generated Doxygen output easier to read.
This does not solve the problem when the referenced entity is not an
input or output type of the method, or when it references another
method. But it works in enough cases to make the change worthwhile.
Part of the work for #7664
This change is