You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We need a way to take notes fields and turn it into well-formed javadoc strings. Currently, the Java community is using a render_markdown template that, in my opinion, lacks a good set of docs on what it really does.
To summarize, here is what I'm proposing to extend the existing filter comment_with_prefix. I'm thinking about adding the following optional parameters:
syntax: markdown (default), html
comment_format: see the formats section defined below
It should also be possible to define the default comment format in weaver.yaml as follow:
default_comment_format: javadoc
With this approach, we could have something as simple as the following in the Jinja template:
{{ brief | comment_with_prefix(prefix=" *") }}
or even simpler if we add the concept of prefix in the config:
{{ brief | comment }}
This will avoid having repetitive parameters throughout the templates for managing comments for a specific programming language.
Note: by default, we could update the default weaver.yaml file embedded in the weaver binary to pre-define the comment configuration for the most common languages.
We need a way to take
notes
fields and turn it into well-formed javadoc strings. Currently, the Java community is using arender_markdown
template that, in my opinion, lacks a good set of docs on what it really does.See existing template.
Context: migrating java semconv to weaver is failing
The text was updated successfully, but these errors were encountered: