Skip to content

feat: add create-docusaurus-openapi-docs CLI package - #1413

Merged
sserrata merged 1 commit into
mainfrom
feat/create-docusaurus-openapi-docs
Apr 13, 2026
Merged

sserrata merged 1 commit into
mainfrom
feat/create-docusaurus-openapi-docs

Conversation

@sserrata

Copy link
Copy Markdown
Member

Summary

  • Adds a new create-docusaurus-openapi-docs package to the monorepo that replaces the separate docusaurus-template-openapi-docs repo
  • Users can now bootstrap a new site with a single command: npx create-docusaurus-openapi-docs my-website
  • The package ships embedded template files, auto-injects correct plugin/theme versions at runtime, and is published alongside existing packages via lerna
  • Canary releases are excluded via --ignore flag
  • scripts/version.ts is updated to keep the template's dependency versions in sync on real releases

Test plan

  • Run yarn build-packages — all 3 packages build successfully
  • Run node packages/create-docusaurus-openapi-docs/bin/index.js /tmp/test-site --skip-install — site scaffolds correctly
  • Verify generated package.json has correct plugin/theme versions (5.0.0) and site name
  • Verify .gitignore is created (renamed from gitignore)
  • Run cd /tmp/test-site && yarn install && yarn start — Docusaurus site boots with Petstore API docs
  • Verify canary publish commands include --ignore create-docusaurus-openapi-docs

🤖 Generated with Claude Code

Adds a new `create-docusaurus-openapi-docs` package to the monorepo
that replaces the separate template repo for bootstrapping new sites.

Users can now run:
  npx create-docusaurus-openapi-docs my-website

The package ships template files, auto-injects the correct plugin/theme
versions at runtime, and is published alongside existing packages via
lerna. Canary releases are excluded. The version script is updated to
keep the template's dependency versions in sync on real releases.

Co-Authored-By: Claude Opus 4.6 <[email protected]>
@github-actions

Copy link
Copy Markdown

Size Change: 0 B

Total Size: 2.26 MB

ℹ️ View Unchanged
Filename Size
demo/.docusaurus/codeTranslations.json 2 B
demo/.docusaurus/docusaurus.config.mjs 16.3 kB
demo/.docusaurus/globalData.json 69.2 kB
demo/.docusaurus/i18n.json 372 B
demo/.docusaurus/registry.js 100 kB
demo/.docusaurus/routes.js 94.6 kB
demo/.docusaurus/routesChunkNames.json 39.3 kB
demo/.docusaurus/site-metadata.json 1.58 kB
demo/build/assets/css/styles.********.css 171 kB
demo/build/assets/js/main.********.js 664 kB
demo/build/assets/js/runtime~main.********.js 23.2 kB
demo/build/index.html 95.6 kB
demo/build/petstore/add-pet/index.html 30 kB
demo/build/petstore/create-user/index.html 24.7 kB
demo/build/petstore/create-users-with-array-input/index.html 24.8 kB
demo/build/petstore/create-users-with-list-input/index.html 24.8 kB
demo/build/petstore/delete-order/index.html 24.5 kB
demo/build/petstore/delete-pet/index.html 24.8 kB
demo/build/petstore/delete-user/index.html 25 kB
demo/build/petstore/find-pets-by-status/index.html 25.5 kB
demo/build/petstore/find-pets-by-tags/index.html 25.7 kB
demo/build/petstore/get-inventory/index.html 23.8 kB
demo/build/petstore/get-order-by-id/index.html 24.8 kB
demo/build/petstore/get-pet-by-id/index.html 25.6 kB
demo/build/petstore/get-user-by-name/index.html 25.1 kB
demo/build/petstore/login-user/index.html 25.6 kB
demo/build/petstore/logout-user/index.html 24.4 kB
demo/build/petstore/new-pet/index.html 25 kB
demo/build/petstore/pet/index.html 23.2 kB
demo/build/petstore/place-order/index.html 24 kB
demo/build/petstore/schemas/apiresponse/index.html 25.2 kB
demo/build/petstore/schemas/cat/index.html 39 kB
demo/build/petstore/schemas/category/index.html 26.3 kB
demo/build/petstore/schemas/dog/index.html 39.3 kB
demo/build/petstore/schemas/honeybee/index.html 39.3 kB
demo/build/petstore/schemas/id/index.html 23.4 kB
demo/build/petstore/schemas/order/index.html 27.3 kB
demo/build/petstore/schemas/pet/index.html 38.8 kB
demo/build/petstore/schemas/tag/index.html 24.7 kB
demo/build/petstore/schemas/user/index.html 40.7 kB
demo/build/petstore/store/index.html 22.2 kB
demo/build/petstore/subscribe-to-the-store-events/index.html 30.9 kB
demo/build/petstore/swagger-petstore-yaml/index.html 30.9 kB
demo/build/petstore/update-pet-with-form/index.html 25 kB
demo/build/petstore/update-pet/index.html 25.4 kB
demo/build/petstore/update-user/index.html 25 kB
demo/build/petstore/upload-file/index.html 24.8 kB
demo/build/petstore/user/index.html 22.9 kB

compressed-size-action

@github-actions

Copy link
Copy Markdown

Visit the preview URL for this PR (updated for commit 3537700):

https://docusaurus-openapi-36b86--pr1413-u2q9p37d.web.app

(expires Mon, 20 Apr 2026 18:55:22 GMT)

🔥 via Firebase Hosting GitHub Action 🌎

Sign: bf293780ee827f578864d92193b8c2866acd459f

@sserrata
sserrata merged commit 665f36a into main Apr 13, 2026
11 checks passed
@sserrata
sserrata deleted the feat/create-docusaurus-openapi-docs branch April 13, 2026 19:01
@sserrata sserrata mentioned this pull request Apr 14, 2026
4 tasks

This branch was previously deployed

1 inactive deployment
preview — 35377009 Deployed Apr 13, 2026 by sserrata via Deploy #2060
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