简体   繁体   English

为什么 TypeDoc 不处理本地文件导入?

[英]Why TypeDoc don't process local file imports?

I tried this answer.我试过这个答案。 TypeDoc doesn't generate documentation for local files. TypeDoc 不会为本地文件生成文档。 I used the command: yarn typedoc and I have the tsconfig.json, here is a part of this我使用了命令: yarn typedoc ,我有 tsconfig.json,这是其中的一部分

"typedocOptions": {
      "entryPoints": ["src/main.ts"],
      "out": "docs"
  }

--entryPointStrategy doesn't work in any value. --entryPointStrategy 对任何值都不起作用。

In my case the solution was run typedoc with this command就我而言,解决方案是使用此命令运行 typedoc

npx typedoc --entryPointStrategy expand ./src

Inside ./src there is a file index.tsx - it`s entry point of my app./src中有一个文件index.tsx - 它是我的应用程序的入口点

More更多的

  1. docs文档
  2. typedoc issue打字稿问题

You may also need these plugins您可能还需要这些插件

  1. typedoc-plugin-missing-exportstypedoc-plugin-missing-exports
  2. typedoc-plugin-not-exported typedoc-plugin-not-exported

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM