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

fix: improve API reference URLs #720

Merged
merged 2 commits into from
Jan 20, 2022
Merged

fix: improve API reference URLs #720

merged 2 commits into from
Jan 20, 2022

Conversation

Chriscbr
Copy link
Contributor

@Chriscbr Chriscbr commented Jan 20, 2022

Improve the API reference URLs by using markdown files generated by jsii-docgen@5.

This PR updates the transliterator to generate both docs-<lang>.md and docs-<lang>.json files (including two .corruptedassembly or .corruptedassembly markers for each language where appropriate). Canary metrics continue to be generated based on .md files.

In addition, generate docs-xxx.json files in the backend so that we can move towards using the JSON format for rendering API references on the frontend in the future.


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

Chriscbr and others added 2 commits January 19, 2022 16:06
Signed-off-by: github-actions <github-actions@github.com>
@Chriscbr Chriscbr marked this pull request as ready for review January 20, 2022 17:12
@Chriscbr Chriscbr requested a review from a team January 20, 2022 17:13
@mergify mergify bot merged commit 9dc9837 into main Jan 20, 2022
@mergify mergify bot deleted the rybickic/docgen-json branch January 20, 2022 23:52
MrArnoldPalmer added a commit that referenced this pull request Jan 21, 2022
Revert change in api url generation and version of jsii-docgen.
This reverts commit 9dc9837.
mergify bot pushed a commit that referenced this pull request Jan 21, 2022
Revert change in api url generation and version of jsii-docgen.
This reverts commit 9dc9837.


----

*By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
mergify bot pushed a commit that referenced this pull request Jan 27, 2022
See #720 for original context.

Compared to the original PR, this adds the following fixes:
- reduces the size of the output of the transliterator handler by taking the created/deleted `S3Object` arrays and only returning the keys instead. This is needed to prevent failures caused by the output being too large.
- fixes logic for the linkFormatter and updates it to give incorrect error messages

TODO: update jsii-docgen version once cdklabs/jsii-docgen#571 is merged

----

*By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
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