Improve public API docs SEO and Mintlify metadata#2811
Merged
Conversation
Contributor
|
Preview deployment for your docs. Learn more about Mintlify Previews.
💡 Tip: Enable Workflows to automatically generate PRs for you. |
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Contributor
There was a problem hiding this comment.
1 issue found across 7 files (changes from recent commits).
Prompt for AI agents (unresolved issues)
Check if these issues are valid — if so, understand the root cause of each and fix them. If appropriate, use sub-agents to investigate and fix each issue separately.
<file name="packages/docs/api-reference/overview.mdx">
<violation number="1" location="packages/docs/api-reference/overview.mdx:10">
P2: Narrow the auth wording here; not all API workflows use `X-API-Key`.</violation>
</file>
Reply with feedback, questions, or to request a fix. Tag @cubic-dev-ai to re-run a review, or fix all with cubic.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
apps/api/src/openapi/*for Mintlify titles, descriptions, tags, content, code samples, production server URLs, SEO-safe fallbacks, and route/schema pruning.packages/docs/openapi.jsonfrom the NestJS source so Mintlify gets productionhttps://api.trycomp.ai, completex-mint.metadata, and no localhost examples.packages/docs: API overview, introduction, Trust Access, and Security Questionnaire now point readers to API-key based automation instead of token-session implementation details./api,/docs/api, removed token-questionnaire docs, and excluded/stale API reference groups.Ahrefs Legitimacy Report
x-mint.metadataon all retained public operations with enforced title/description length bounds.https://api.trycomp.ai./docs/apiand/apiwere broken/ambiguous docs routes. The docs config now redirects both to/api-reference/overviewand avoids Mintlify reserved path behavior.Verification
bunx jest src/openapi-docs.spec.ts --runInBandGEN_OPENAPI=1 bunx jest src/gen-openapi.spec.ts --runInBandgit diff --checkpackages/docs/openapi.json: 0 hits for token upload/session routes, FedRAMP, internal finding-template details, secret disclosure enum, pipeline/test flags, localhost, or generated boilerplate fragments.Notes
bun run typecheckinapps/apistill fails on current-main issues unrelated to this diff, including@trycompai/billingmodule resolution, existing better-auth access-control typing, framework manifest fixture types, integration-platform manifest/spec mismatches, and several existing test mock signatures.x-mintmetadata/content, code samples, page visibility, redirects, and the reserved/apipath warning.