typedoc2md / typedoc-plugin-markdown

A plugin for TypeDoc that enables TypeScript API documentation to be generated in Markdown.
https://typedoc-plugin-markdown.org
MIT License
714 stars 176 forks source link

No entry points were provided, this is likely a misconfiguration. #445

Closed softmarshmallow closed 1 year ago

softmarshmallow commented 1 year ago

I'm using docusaurus-plugin-typedoc in my ts monorepo project

Each package's main entry point is set to dist/index.js since it needs to be published to npm. I'm wondering this would be a problem, Yet I don't want to set up multiple docusaurus-plugin-typedoc plugins for each packages, seems little redundant.

How would I be able to setup this plugin while package's entry is not index.ts, but lib/index.ts and not specified in pakcage.json?

tgreyuk commented 1 year ago

I think you just need to set entrypoints in a typedoc config for each package. ie:

website/docusaurus.config.js

  entryPoints: ['../packages/*'],
  entryPointStrategy: 'packages',

packages/package-a/typedoc.json

"entryPoints": ["./lib/index.ts"]

packages/package-b/typedoc.json

"entryPoints": ["./lib/index.ts"]