Skip to content

Comments

docs(dev): add dev:docs workflow for local SuperDoc development#2165

Open
lucbic wants to merge 2 commits intosuperdoc-dev:mainfrom
lucbic:docs/fix-dev-docs-local
Open

docs(dev): add dev:docs workflow for local SuperDoc development#2165
lucbic wants to merge 2 commits intosuperdoc-dev:mainfrom
lucbic:docs/fix-dev-docs-local

Conversation

@lucbic
Copy link

@lucbic lucbic commented Feb 24, 2026

The problem

I was trying to fix a bug in the Image extension section of the docs, but I noticed that changes in the packages/super-editor were not being reflected in the docs local dev server.

The idea

Instead of just fetching the superdoc bundle from unpkg, it detects if the user is running the docs in development and fetches the built files from the vite dev server. The file changes are watched to trigger new builds, which run instantaneously thanks to vite.

The feature

Enable docs contributors to preview interactive widgets with local source changes. pnpm dev:docs starts the Vite dev server, UMD watcher, and Mintlify in parallel.

  • Refactor SuperDocEditor widget to load from local dev server on localhost
  • Add serve-dist-for-docs Vite plugin to serve UMD bundle over CORS
  • Add watch:umd script with debounced rebuilds (300ms)
  • Document the workflow in apps/docs/README.md

Enable docs contributors to preview interactive widgets with local source changes. `pnpm dev:docs` starts the Vite dev server, UMD watcher, and Mintlify in parallel.

  - Refactor SuperDocEditor widget to load from local dev server on localhost
  - Add serve-dist-for-docs Vite plugin to serve UMD bundle over CORS
  - Add watch:umd script with debounced rebuilds (300ms)
  - Document the workflow in apps/docs/README.md
Copy link

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 3d7387fb7f

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

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