Skip to content

Add an overview page at the Sprites API root - #261

Merged
kcmartin merged 1 commit into
mainfrom
test-sprites-api-overview
Oct 8, 2026
Merged

kcmartin merged 1 commit into
mainfrom
test-sprites-api-overview

Conversation

@kcmartin

@kcmartin kcmartin commented Oct 8, 2026 •

Copy link
Copy Markdown
Collaborator

Fixes the root half of superfly/docs-tracking#347.

/sprites/api was a 307 to /sprites/api/connectors/list-connectors, so every link into the reference cost an extra hop and an agent fetching it landed on one connector endpoint rather than an entry point. It is the most-linked URL in the chain: 11 references as sprites.dev/api in ui-ex, 4 as /sprites/api, 3 as the full docs URL, plus landing and sprites-docs.

Verified on the preview: /sprites/api returns 200 with zero redirects, the content renders, and all four sampled operation pages still serve 200, so adding the index did not disturb the OpenAPI generation. The group roots still 307 to their first operation, unchanged.

One limitation. The page is served at that URL but does not appear in the tab's sidebar: preview and live both have the same 51 nav links, neither including /sprites/api. So it fixes links and agent fetches, not human browsing. Asked Mintlify whether a non-generated page can be shown in an OpenAPI tab's navigation.

Content comes from api/openapi.json: base URL https://api.sprites.dev and bearerAuth. Someone who knows the API may want a different opening paragraph, and the spec also carries version: 0.1.12 across 31 paths if either is worth mentioning.

The five group roots are still 307 and nothing much links them, so they are left for a decision on whether they are worth pages at all.

@mintlify

mintlify Bot commented Oct 8, 2026 •

Copy link
Copy Markdown

Preview deployment for your docs. Learn more about Mintlify Previews.

Project Status Preview Updated
fly-io 🟢 Ready View Preview Oct 8, 2026, 6:30 PM

💡 Tip: Enable Automations to automatically generate PRs for you.

@kcmartin
kcmartin marked this pull request as ready for review October 8, 2026 18:23
@kcmartin kcmartin changed the title Test: does an index page override the OpenAPI tab root? Add an overview page at the Sprites API root Oct 8, 2026
/sprites/api redirected to the first connector endpoint, so every link into
the reference cost an extra hop and an agent fetching it landed on one
operation rather than an entry point. It is the most-linked URL we have for
the API.

Content comes from api/openapi.json: base URL, bearer auth, and a link to
the spec. Verified on a preview that the root serves 200 and the generated
operation pages are unaffected.
@kcmartin
kcmartin merged commit f970d5a into main Oct 8, 2026
1 check passed
@kcmartin
kcmartin deleted the test-sprites-api-overview branch October 8, 2026 20:19
@kcmartin kcmartin mentioned this pull request Oct 9, 2026

This branch was successfully deployed

1 active deployment
staging — c6104540 Deployed Oct 8, 2026 by mintlify[bot]
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