aws-cdk icon indicating copy to clipboard operation
aws-cdk copied to clipboard

(stack): (header tag breaking jsii-doc)

Open automartin5000 opened this issue 2 years ago • 3 comments

Describe the issue

The header tags in this inline documentation are breaking jsii-docgen generated docs because they're being added as H2 tags on pages where they should probably H4 (if even headers at all). I know this isn't necessarily an AWS CDK issue, but if the header tags aren't really needed, it seems like an easy fix to remove it.

I mean does this really need to be H2? 😅

Links

https://github.com/aws/aws-cdk/blob/6a7a24afcc1ebebf71c267b890732a455e865cc8/packages/aws-cdk-lib/core/lib/stack.ts#L1174

automartin5000 avatar Jan 27 '24 20:01 automartin5000

Can you share more details or the links about the broken doc?

pahud avatar Jan 29 '24 16:01 pahud

Can you share more details or the links about the broken doc?

I don't have links, but here's a screenshot below. This is the result of running a construct that extends Stack through jsii-docgen

Screenshot 2024-01-29 at 3 53 26 PM

automartin5000 avatar Jan 29 '24 20:01 automartin5000

This is resolved if anyone is looking in the future 😅 . main properly uses @example for tsdocs.

https://github.com/aws/aws-cdk/blob/main/packages/aws-cdk-lib/core/lib/stack.ts#L72

SebastianC avatar Jul 02 '25 23:07 SebastianC