-
Notifications
You must be signed in to change notification settings - Fork 245
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
fix(pacmak): go docs overview displays repeating description #4081
Conversation
protected emitHeader(code: CodeMaker) { | ||
if (this.assembly.description !== '') { | ||
code.line(`// ${this.assembly.description}`); | ||
} | ||
code.line(`package ${this.packageName}`); | ||
code.line(); | ||
} |
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 this should still be emitted.... but only in a single file (for example, main.go
) so it's not more-than-duplicated...
I think this also has value in IDE integrations, etc... the docsite experience isn't the only place where this might show.
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 see, will make the update. Thank you.
ad707c6
to
1ccf8f3
Compare
Signed-off-by: Vinayak Kukreja <vinakuk@amazon.com>
Signed-off-by: Vinayak Kukreja <vinakuk@amazon.com>
Thank you for contributing! ❤️ I will now look into making sure the PR is up-to-date, then proceed to try and merge it! |
Merging (with squash)... |
Merging (with squash)... |
Our
go docs
have been broken since jsiiv1.65.0
. This was due to moving to emitting one file per type and headers being added to all those files: Impacting PRThe first occurrence was in docs for cdk v2.39.0 and is still present in the latest version.
The header being added is
Version 2 of the AWS Cloud Development Kit library
to multiple files. It's determining this value from the package.json file ofaws-cdk-lib
. I see adding this is most relevant for maven, hence removing it fromgo
since I do not believe it's bringing much value to our documentation. Let me know if you feel otherwise :)By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.