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

Add resource documentation #16

Merged
merged 3 commits into from
Nov 14, 2023
Merged

Add resource documentation #16

merged 3 commits into from
Nov 14, 2023

Conversation

JordonPhillips
Copy link
Contributor

@JordonPhillips JordonPhillips commented Nov 9, 2023

This adds documentation for resource shapes and adds operation/resource documentation to service shapes.

A few bits of cleanup were done as well. The ServiceShapeSection and ServiceDetailsSection were removed in favor of using the generic equivalents. Additionally, several internal/unstable classes had their relevant missing decorators set. A few minor inconsistencies on when sections would be emitted were also resolved.

Lastly, the way shape names are emitted for shapes that don't have their own documentation sections was changed. In those cases the shape type is now emitted instead. This makes it way more clear what the shape's actual type is since there's no way to click through to find it. This change was made in such a way that if definition sections are added for those shapes, they'll automatically get updated reference them directly again.

Screenshots below, and as always a full build is available from the CI run.

Screenshot 2023-11-09 at 18 40 04 Screenshot 2023-11-09 at 18 40 26 Screenshot 2023-11-09 at 18 27 51

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@JordonPhillips JordonPhillips requested a review from a team as a code owner November 9, 2023 17:28
This adds documentation for resource shapes. It also updates service
docs do include resource and operation listings, which is mostly
shared logic with resources.

This also adds some missing instability decoratos to sections.
This updates the shape types printed for members that target
unlinkable shape to simply be the shape type name. This should be
much more clear.
@@ -92,6 +93,6 @@ public void generateIntEnumShape(GenerateIntEnumDirective<DocGenerationContext,

@Override
public void generateResource(GenerateResourceDirective<DocGenerationContext, DocSettings> directive) {
// no-op for now
new ResourceGenerator().accept(directive.context(), directive.shape());
Copy link

Choose a reason for hiding this comment

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

Why a different creation pattern than the other directives?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Rather than passing along the entire directive you mean? Because the directive doesn't have anything else that's needed. It doesn't for the other generators either, I just haven't got around to refactoring them yet.

@JordonPhillips JordonPhillips merged commit 2307860 into main Nov 14, 2023
4 checks passed
@JordonPhillips JordonPhillips deleted the resources branch November 14, 2023 11:07
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