-
Notifications
You must be signed in to change notification settings - Fork 856
refactor: chore make management API docs more visible #7059
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
Conversation
WalkthroughThe changes update the Prisma Management API documentation with clearer instructions and add a new guides section. Additionally, static redirect rules are introduced and expanded to ensure old documentation paths for the Management API and error references correctly point to their new locations, including support for wildcard subpaths. Multiple internal links in various Postgres and Accelerate docs were updated to reflect the new error-reference URL path. Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~8 minutes Note ⚡️ Unit Test Generation is now available in beta!Learn more here, or try it out under "Finishing Touches" below. 📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (7)
✅ Files skipped from review due to trivial changes (6)
🚧 Files skipped from review as they are similar to previous changes (1)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (3)
✨ Finishing Touches🧪 Generate unit tests
🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
Dangerous URL checkNo absolute URLs to prisma.io/docs found. |
Redirect checkThis PR probably requires the following redirects to be added to static/_redirects: |
Deploying docs with
|
| Latest commit: |
057e993
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://f34ed963.docs-51g.pages.dev |
| Branch Preview URL: | https://dc-4688.docs-51g.pages.dev |
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.
Actionable comments posted: 1
🧹 Nitpick comments (2)
static/_redirects (1)
564-565: Redirect covers only the root path – consider adding a wildcard splat
/postgres/database/api-reference/management-apiwill work, but/postgres/database/api-reference/management-api/<subpage>will 404.
Unless you intend every sub-URL to 404, add a splat redirect similar to the one used for error-reference:-/postgres/database/api-reference/management-api /docs/postgres/introduction/management-api +/postgres/database/api-reference/management-api* /docs/postgres/introduction/management-api:splatcontent/250-postgres/100-introduction/230-management-api.mdx (1)
53-61: Numbered list renders as one long “1.” listIn MDX/Markdown a blank line is required before a numbered list to restart automatic numbering.
Current output will render all items as1.. Insert an empty line before the list or use explicit numbers:You can create a service token to use the Management API like this: 1. Open the …Also confirm the UI labels (“Integrations”, “New service token”) exactly match the Console; mismatched wording confuses readers.
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (2)
content/250-postgres/100-introduction/230-management-api.mdx(2 hunks)static/_redirects(2 hunks)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (4)
- GitHub Check: Check internal links
- GitHub Check: runner / linkspector
- GitHub Check: Lost Pixel
- GitHub Check: Cloudflare Pages
🔇 Additional comments (2)
content/250-postgres/100-introduction/230-management-api.mdx (2)
13-14: Verify OpenAPI playground URLThe link now points at
https://api.prisma.io/v1/swagger-editor.
Previous docs used/v0/…; make sure the v1 endpoint is publicly reachable and contains the 3.1 spec before publishing.
16-22: Guide slugs may not exist yetDouble-check that the three guide routes resolve:
/guides/management-api-basic/guides/github-actions/guides/management-apiIf any of these are placeholders or have different slugs (e.g. live at
/guides/management-api/overview), users will hit 404s.
* refactor: chore make management API docs more visible * fix: broken links
Summary by CodeRabbit
Documentation
Chores