Skip to content

Conversation

@olafurpg
Copy link
Contributor

Previously, there was no easy way to reference docs for our REST API endpoints. This PR adds a new <ApiOperation/> React component that we can use in MDX files to embed docs for a single API operation. The component renders the code examples, request schema, and response schema using existing components like code blocks and HTML tables avoiding the need for custom CSS styling.

Pull Request approval

You will need to get your PR approved by at least one member of the Sourcegraph team. For reviews of docs formatting, styles, and component usage, please tag the docs team via the #docs Slack channel.

Previously, there was no easy way to reference docs for our REST API
endpoints. This PR adds a new `<ApiOperation/>` React component that
we can use in MDX files to embed docs for a single API operation. The
component renders the code examples, request schema, and response schema
using existing components like code blocks and HTML tables avoiding the
need for custom CSS styling.
@vercel
Copy link

vercel bot commented Oct 28, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
sourcegraph-docs ❌ Failed (Inspect) Oct 28, 2024 7:45pm

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