Skip to content

Commit

Permalink
fix: improve API reference URLs (#720)
Browse files Browse the repository at this point in the history
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*
  • Loading branch information
Chriscbr authored Jan 20, 2022
1 parent 374fbbc commit 9dc9837
Show file tree
Hide file tree
Showing 12 changed files with 5,119 additions and 3,248 deletions.
3 changes: 3 additions & 0 deletions .projen/tasks.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion .projenrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -639,7 +639,7 @@ function newEcsTask(entrypoint) {
description: `Continuously update an AWS Fargate bundle from ${entry}`,
exec: [...bundleCmd, '--watch'].join(' '),
});
bundle.env(BUNDLE_DIR_ENV, outdir);
bundleWatch.env(BUNDLE_DIR_ENV, outdir);

project.compileTask.spawn(bundle);
bundleTask.spawn(bundle);
Expand Down
6,660 changes: 4,228 additions & 2,432 deletions API.md

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1,024 changes: 512 additions & 512 deletions src/__tests__/__snapshots__/construct-hub.test.ts.snap

Large diffs are not rendered by default.

Loading

0 comments on commit 9dc9837

Please sign in to comment.