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

Generate docs for structures and members #9

Merged
merged 5 commits into from
Nov 3, 2023
Merged

Conversation

JordonPhillips
Copy link
Contributor

@JordonPhillips JordonPhillips commented Oct 30, 2023

This adds documentation generation for structures and members. It also adds in the capability to write reference links using the $R formatter, which is used when writing member types, and write out referenceable anchors. The sphinx formatting for this was kept as close to base commonmark as possible. It also changes the default sphinx output to be html instead of dirhtml because it's much harder to inspect the dirhtml output locally. And finally, it adds in placeholder docs for shapes without docs since writing nothing can break formatting. Below is a screenshot of an example page:

Screenshot 2023-10-30 at 17 29 38

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

dirhtml is nice when you have a host doing automatic redrirects from
`/` to `/index.html` but it's less nice otherwise. This changes the
default back to regular html output. When integration config is added
to Smithy, this will be one of the configuration options.
@JordonPhillips JordonPhillips requested a review from a team as a code owner October 30, 2023 16:31
This adds a validation step to the plugin that runs the IO structure
reuse validator at the danger level, adding some additional context
for how it impacts docs specifically. This also removes the
invocation to always create dedicated input and output shapes.
@JordonPhillips JordonPhillips requested a review from kstich October 31, 2023 14:53
@JordonPhillips JordonPhillips merged commit a1ee495 into main Nov 3, 2023
3 checks passed
@JordonPhillips JordonPhillips deleted the shape-generation branch November 3, 2023 10:59
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