Skip to content

Add deprecated indicator to all deprecated API reference pages#2070

Open
BPKelley wants to merge 2 commits intomainfrom
bkelley/doc-569-add-deprecated-indicator-to-all-deprecated-public-api-docs
Open

Add deprecated indicator to all deprecated API reference pages#2070
BPKelley wants to merge 2 commits intomainfrom
bkelley/doc-569-add-deprecated-indicator-to-all-deprecated-public-api-docs

Conversation

@BPKelley
Copy link
Copy Markdown
Contributor

Summary

  • Create a reusable DeprecatedWarning snippet (snippets/api/deprecated-warning.mdx) using the <Warning> callout component
  • Include it on all 120 API reference pages nested under the "Deprecated" navigation group
  • Replaces ad-hoc <Tip> callouts on botusers and tunnels pages with the standardized component

Why

Deprecation status is only visible in the sidebar nav grouping — not in the page content itself. AI agents and LLMs reading these pages have no way to know the endpoint is deprecated, causing them to repeatedly suggest deprecated APIs (Edges, Tunnels, Bot Users) in new integrations and specs.

Prior art: universal-gateway/edges.mdx, agent/config/v3.mdx, and snippets/shared/warnings/traffic-policy-preview.mdx all use this same <Warning> pattern.

Closes DOC-569

Create a reusable DeprecatedWarning snippet and include it on all 120
API reference pages nested under the Deprecated navigation group. This
makes deprecation status visible in the page content itself (not just
the sidebar), which is critical for AI agents and screen readers that
don't parse navigation DOM.

Replaces ad-hoc Tip callouts on botusers and tunnels pages with the
standardized warning component.

Closes DOC-569
@mintlify
Copy link
Copy Markdown

mintlify bot commented Mar 25, 2026

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

Project Status Preview Updated (UTC)
ngrok 🟢 Ready View Preview Mar 25, 2026, 3:14 AM

Unrelated to the deprecation warning feature — these are pre-existing
style issues ("traffic policy" -> "Traffic Policy", "agent endpoints"
-> "Agent Endpoints") flagged by Vale because our previous commit
touched these files. Feel free to drop this commit if you'd prefer to
keep the PR scoped to the deprecation warning only.
BPKelley added a commit to ngrok/ngrok-openapi that referenced this pull request Mar 25, 2026
Adds the OpenAPI `deprecated: true` field to all deprecated operations
(Bot Users, Backends, Edges, Tunnels) so that Mintlify and other
consumers can render deprecation indicators natively.

Companion to ngrok/ngrok-docs#2070.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@BPKelley
Copy link
Copy Markdown
Contributor Author

FYI this other PR is probably a better approach: ngrok/ngrok-openapi#17

If it's correct, we can probably just reject this current PR

@S3Prototype
Copy link
Copy Markdown
Collaborator

@BPKelley It looks like the warnings aren't rendering in the preview deployment. Maybe these generated pages don't support importing custom components? Could you test just pasting the warning on one of the pages? I'll ask mintlify if this is a limitation

@sg-writer sg-writer added kind/enhancement New feature or improvement to the docs experience docs/api-reference labels Mar 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

docs/api-reference kind/enhancement New feature or improvement to the docs experience

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants