-
Notifications
You must be signed in to change notification settings - Fork 6.7k
feat(docs): autogenerate API documentation #27573
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
feat(docs): autogenerate API documentation #27573
Conversation
Missing ChangesetsThe following package(s) are changed by this PR but do not have a changeset:
See CONTRIBUTING.md for more information about how to add changesets. Changed Packages
|
156c510
to
ae114a7
Compare
Thanks for the contribution! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks like a great addition to the docs @aramissennyeydd, thanks for taking this on!
Looks good over all, curious about two things:
- Whats the impact on build time?
- Do we need to manage the new sidebars manually?
704463a
to
8e11767
Compare
33328cd
to
8954557
Compare
This PR has been automatically marked as stale because it has not had recent activity from the author. It will be closed if no further activity occurs. If the PR was closed and you want it re-opened, let us know and we'll re-open the PR so that you can continue the contribution! |
@awanlin Sorry for the slow response here, impact on build time should be ~2 mins added, mostly from having to run the extra yarn install. I think there are security issues if we don't separate out the user generated content + hosted content. Happy to chat about this at the next SIG though :) We will also need to manage the new sidebars semi-manually, we'd need to add the initial reference to the autogenerated file as I have here, but after that, we can just use the autogenerated one. |
This PR has been automatically marked as stale because it has not had recent activity from the author. It will be closed if no further activity occurs. If the PR was closed and you want it re-opened, let us know and we'll re-open the PR so that you can continue the contribution! |
packages/catalog-client/src/schema/openapi/generated/apis/Api.client.ts
Outdated
Show resolved
Hide resolved
a1254c2
to
53f55db
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pretty cool. Tentative approval. Would love to see the result of it, but haven't had the time yet to run it locally. I see it angers lighthouse too.
Lighthouse ended up being a CJS/MJS issue :shaking_fist, should be fixed now :) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's try it out 🚀
This PR has been automatically marked as stale because it has not had recent activity from the author. It will be closed if no further activity occurs. If the PR was closed and you want it re-opened, let us know and we'll re-open the PR so that you can continue the contribution! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Awesome stuff! 😁
Couple small pieces before
@@ -266,7 +276,27 @@ const config: Config = { | |||
ratingMode: 'stars', | |||
}, | |||
], | |||
[ | |||
'docusaurus-plugin-openapi-docs', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Signed-off-by: aramissennyeydd <aramis.sennyey@doordash.com>
Signed-off-by: aramissennyeydd <aramis.sennyey@doordash.com>
Signed-off-by: aramissennyeydd <aramis.sennyey@doordash.com>
Signed-off-by: Aramis Sennyey <159921952+aramissennyeydd@users.noreply.github.com>
Signed-off-by: aramissennyeydd <aramis.sennyey@doordash.com>
Signed-off-by: aramissennyeydd <aramis.sennyey@doordash.com>
Signed-off-by: aramissennyeydd <aramis.sennyey@doordash.com>
Signed-off-by: aramissennyeydd <aramis.sennyey@doordash.com>
Signed-off-by: aramissennyeydd <aramis.sennyey@doordash.com>
a94996d
to
c49e11b
Compare
Signed-off-by: aramissennyeydd <aramis.sennyey@doordash.com>
Signed-off-by: aramissennyeydd <aramis.sennyey@doordash.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Alright, let's 🎉
Thank you, awesome stuff! 😁 👍
Hey, I just made a Pull Request!
Addresses #26894.
This uses https://github.com/PaloAltoNetworks/docusaurus-openapi-docs to render our existing specs. The goal here is to make the OpenAPI spec the source of truth for docs + API definition. I moved the existing catalog docs into the spec and saw really nice results in the autogenerated markdown.
TODO:
✔️ Checklist
Signed-off-by
line in the message. (more info)