Skip to content
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(docs): move description block before deprecated tag #1516

Merged
merged 1 commit into from
Jan 29, 2025

Conversation

aBurmeseDev
Copy link
Contributor

@aBurmeseDev aBurmeseDev commented Jan 29, 2025

Issue #, if available:

Description of changes:

  • Currently the description for parameter is missing when param has deprecated tag. By moving deprecated tag after block, description should render correctly.

Resource: https://tsdoc.org/pages/tags/deprecated/


By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@aBurmeseDev aBurmeseDev requested a review from a team as a code owner January 29, 2025 20:36
@aBurmeseDev aBurmeseDev changed the title docs: move description block before deprecated tag chore(docs): move description block before deprecated tag Jan 29, 2025
@@ -266,7 +266,7 @@ boolean writeMemberDocs(Model model, MemberShape member) {
docs = docs.replace("{", "\\{")
.replace("}", "\\}");
if (member.getTrait(DeprecatedTrait.class).isPresent() || isTargetDeprecated(model, member)) {
docs = "@deprecated\n\n" + docs;
docs = docs + "\n\n@deprecated";
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is needed since the tsdoc does not support explicit @description block like jsdoc. tsdoc uses only the implied description block and it must come first in the docblock order.

@kuhe kuhe merged commit f0562fe into smithy-lang:main Jan 29, 2025
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants