Skip to content

Add Bitrise CI API reference hub (docusaurus-plugin-openapi-docs)#36

Open
zoltan-baba wants to merge 1 commit into
mainfrom
api-docs-gen-hub
Open

Add Bitrise CI API reference hub (docusaurus-plugin-openapi-docs)#36
zoltan-baba wants to merge 1 commit into
mainfrom
api-docs-gen-hub

Conversation

@zoltan-baba

Copy link
Copy Markdown
Collaborator

Summary

  • Adds a new /en/bitrise-api hub powered by docusaurus-plugin-openapi-docs, rendering the full Bitrise CI REST API as interactive reference pages
  • Wires the hub into the sidebar system with tag-grouped navigation, label normalisation, and a Book-icon Introduction entry
  • Removes the old SwaggerUI embed page (/en/bitrise-ci/api/api-reference) in favour of an "API reference ↗" link appended to the CI API sidebar category
  • Adds scripts/patch-api-info.js and npm run gen-api-docs to reapply post-generation patches (displayed_sidebar, MIT licence name) automatically after spec updates

Test plan

  • /en/bitrise-api hub index renders with the correct three-column layout
  • /en/bitrise-api/api-reference/bitrise-api Introduction page shows the Bitrise API sidebar
  • Tag-grouped endpoint pages render with the interactive explorer (try/send)
  • CI API sidebar shows "API reference ↗" as the last item under the API category
  • Old /en/bitrise-ci/api/api-reference URL no longer exists (expect 404 or redirect)
  • npm run gen-api-docs regenerates and patches cleanly

🤖 Generated with Claude Code

- Add docusaurus-plugin-openapi-docs + docusaurus-theme-openapi-docs packages
- Commit API spec snapshot to api/bitrise-ci.json
- Generate API reference output under docs/bitrise-api/api-reference/
- Add docs/bitrise-api/ hub index page and category
- Wire bitriseAPISidebar in sidebars.ts with tag label normalisation and Code icons
- Add Introduction entry (Book icon) to the top of bitriseAPISidebar
- Add injectApiSidebar + sidebarItemsGenerator in docusaurus.config.ts to resolve appendApiHubLink markers
- Append "API reference ↗" link to the CI API sidebar category via _category_.json
- Remove old SwaggerUI API reference page (docs/bitrise-ci/api/api-reference.mdx)
- Swizzle DocItem to route generated pages through ApiItem with api-reference-page HTML class
- Swizzle DocSidebarItem/Link to show ↗ indicator for newTab links
- Add CSS: full-width layout on API explorer pages; hide duplicate openapi heading
- Add scripts/patch-api-info.js and npm run gen-api-docs to reapply post-generation patches
- Patch bitrise-api.info.mdx: add displayed_sidebar and MIT license name

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
@github-actions

Copy link
Copy Markdown

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