【问题标题】:angular compodoc tool ignoring *.d.ts files忽略* .d.ts文件的角度compodoc工具
【发布时间】:2021-10-12 22:39:40
【问题描述】:

我正在使用 compodoc 为我的 angular 项目生成文档,但它忽略了所有 .d.ts 文件,即使我在 tsconfig.compodoc.json 中包含所有 .d.ts 文件,如下所示:

{
  
  "include": [   
    "src/**/*.d.ts",
    "src/**/*.ts"
  ]  
}

运行命令:

compodoc -p .\tsconfig.compodoc.json

样本输出:

[12:20:28] Including      : F:\Projects\WebGPNet\frontend\projects\map-core\src\SnapCapability.ts
[12:20:28] Including      : F:\Projects\WebGPNet\frontend\projects\map-core\src\test.ts
[12:20:28] Including      : F:\Projects\WebGPNet\frontend\projects\map-core\src\VertexHighlighter.ts
[12:20:28] Including      : F:\Projects\WebGPNet\frontend\projects\map-core\src\VLayer.ts
[12:20:28] Ignoring       : F:\Projects\WebGPNet\frontend\projects\map-core\src\interfaces\ActionModel.d.ts
[12:20:28] Ignoring       : F:\Projects\WebGPNet\frontend\projects\map-core\src\interfaces\ActionsGroup.d.ts
[12:20:28] Ignoring       : F:\Projects\WebGPNet\frontend\projects\map-core\src\interfaces\BackgroundColor.d.ts
[12:20:28] Ignoring       : F:\Projects\WebGPNet\frontend\projects\map-core\src\interfaces\ContextMenuItem.d.ts

如何包含这些文件?

【问题讨论】:

    标签: angular typescript documentation compodoc


    【解决方案1】:

    我检查了 compodoc 源代码,有一些硬编码的行忽略了 .d.ts 文件。我做了一个叉子并为任何有这个问题的人修复它:

    https://github.com/zatkhahi/compodoc/tree/ignore-d-ts

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2017-01-27
      • 2018-03-23
      • 2022-06-22
      • 2019-08-30
      • 2019-01-07
      • 1970-01-01
      • 2022-09-24
      • 2023-02-01
      相关资源
      最近更新 更多