Skip to content

docs: include Vite and Next.js plugins in TypeDoc API docs build (NE-6952)#218

Open
kaktus-klaus wants to merge 1 commit intoneedle-tools:mainfrom
kaktus-klaus:docs/vite-plugin-api
Open

docs: include Vite and Next.js plugins in TypeDoc API docs build (NE-6952)#218
kaktus-klaus wants to merge 1 commit intoneedle-tools:mainfrom
kaktus-klaus:docs/vite-plugin-api

Conversation

@kaktus-klaus
Copy link
Copy Markdown
Collaborator

Summary

Companion to needle-tools/needle-tiny#923 — makes the Needle Engine Vite plugins visible in the public API documentation at engine.needle.tools/docs/api.

  • tools/build_api_docs.mjs — adds plugins/types/vite.d.ts and plugins/types/next.d.ts as new TypeDoc entry points alongside the existing src/engine/api.ts entries.
  • tools/api-plugins/tsconfig.json — extends the include glob with ../../.temp/**/plugins/types/**/*.ts so TypeScript resolves plugin type imports correctly during the docs build.

After this change, TypeDoc will render a Vite Plugins module in the API docs showing needlePlugins, loadConfig, useGzip, and all ~24 individual sub-plugin exports — each with full JSDoc descriptions, parameter docs, return types, and usage examples.

Test plan

  • Run node tools/build_api_docs.mjs --dev locally; confirm no TypeDoc errors
  • Check that the generated api/ directory contains a page for the Vite plugins module
  • Verify needlePlugins and needlePWA both appear with their full docstrings
  • Spot-check that existing src/ module pages are unaffected

🤖 Generated with Claude Code

…6952)

Adds plugins/types/vite.d.ts and plugins/types/next.d.ts as TypeDoc
entry points so that all Needle Engine Vite plugins (needlePlugins,
needleAI, needlePWA, needleBuild, etc.) appear in the API docs site.

Changes:
- tools/build_api_docs.mjs: two new entryPoints for vite.d.ts and next.d.ts
- tools/api-plugins/tsconfig.json: extend include glob to cover
  .temp/**/plugins/types/**/*.ts so TypeScript can resolve plugin types

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@bolt-new-by-stackblitz
Copy link
Copy Markdown

Review PR in StackBlitz Codeflow Run & review this pull request in StackBlitz Codeflow.

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