Add hosted API docs link#212
Merged
Merged
Conversation
Deploying with
|
| Status | Name | Latest Commit | Preview URL | Updated (UTC) |
|---|---|---|---|---|
| ✅ Deployment successful! View logs |
superwall-docs-staging | 2d0c36b | Commit Preview URL Branch Preview URL |
Jun 10 2026, 10:29 PM |
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.
Adds a hosted API docs entry to the docs overview and shared layout tabs.
The tab is labeled API, opens https://api.superwall.com/docs externally, and is available in the compact mobile/iPad tab dropdown because it is now part of the shared DocsLayout tab list.
Internal overview cards still use router links, while external cards render as safe anchors with noopener/noreferrer.
Validated with
bun run build:cf,bun test, and autoreview.Note
Low Risk
Navigation and presentation only; no auth, data, or API behavior changes.
Overview
Adds a discoverable link to the hosted API reference at
https://api.superwall.com/docsfrom the docs home and from every docs page navbar.On doc pages, tab building moves out of
sidebar.tabsintogetDocsLayoutTabs, which uses fumadocsgetLayoutTabswith the same SDK-aware URL and icon behavior as before, then appends an API tab (Code icon) that opens externally withtarget="_blank"andrel="noreferrer noopener". Those tabs are passed toDocsLayoutvia the top-leveltabsprop so the API entry shows in the shared navbar / compact tab UI.On the docs overview, a new API card sits with the other documentation sections.
OverviewCardnow treats absolute URLs as external and renders a plain anchor instead of a routerLink, while internal paths still use client navigation.Reviewed by Cursor Bugbot for commit 2d0c36b. Bugbot is set up for automated code reviews on this repo. Configure here.