Skip to content

feat: add Admin API docs with remote OpenAPI spec#996

Draft
dslovinsky wants to merge 1 commit intomainfrom
ds/admin-api-docs
Draft

feat: add Admin API docs with remote OpenAPI spec#996
dslovinsky wants to merge 1 commit intomainfrom
ds/admin-api-docs

Conversation

@dslovinsky
Copy link
Collaborator

Summary

  • Adds a hidden admin-api tab with placeholder overview and authentication MDX pages
  • Extends generate-open-api.sh to fetch and bundle the remote spec at https://admin-api.alchemy.com/openapi.yaml into the existing GH Pages pipeline
  • Adds repository_dispatch trigger to gh-pages-deploy.yml so the API repo can trigger spec rebuilds
  • Adds workflow_dispatch to index-main-content.yml for manual re-indexing

How it works

The remote YAML spec is fetched and dereferenced by redocly bundle during the existing build step, outputting JSON to fern/api-specs/alchemy/rest/admin-api.json. From there, the entire existing pipeline handles it automatically — metadata.json generation, GH Pages deploy, content indexing, caching, and revalidation all treat it identically to local specs.

The tab is "hidden" because it's defined in docs.yml (pages are indexed and URL-accessible) but not added to the docs-site header navigation.

Test plan

  • Run pnpm generate locally and verify fern/api-specs/alchemy/rest/admin-api.json is created
  • Run pnpm generate:metadata and verify metadata.json includes the admin-api URL
  • Run pnpm index:main and verify path index contains admin-api entries
  • After deploy, verify pages accessible at /docs/admin-api/overview and /docs/admin-api/authentication
  • Verify API reference pages render correctly
  • Verify admin-api tab does NOT appear in header navigation

Adds a hidden admin-api tab with overview/auth MDX pages and API
reference from the remote spec at admin-api.alchemy.com. Extends
generate-open-api.sh to fetch and bundle the remote YAML spec into
the existing GH Pages pipeline. Adds repository_dispatch trigger
for spec freshness and workflow_dispatch for manual re-indexing.
@github-actions
Copy link

github-actions bot commented Feb 6, 2026

🌿 Documentation Preview

Name Status Preview Updated (UTC)
Alchemy Docs ❌ Failed Feb 6, 2026, 9:16 PM

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.

1 participant