docgeni / docgeni

📖 A modern, powerful and out of the box documentation generator for Angular components lib and markdown docs.(现代化的、强大的、开箱即用的 Angular 组件文档生成工具)

Home Page:https://docgeni.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

生成 “组件文档” 时提示路径引用错误

shiyuyuanfang opened this issue · comments

Describe the bug
生成 “组件文档” 时提示路径引用错误,并且识别自定义组件元素

To Reproduce
通过 cli 初始化一个名为 “my-app” 的angular项目,在通过 “ng add @docgeni/cli” 将 docgeni 添加到angular项目中后,按照以下步骤配置后报错;
image

Expected behavior
期望可以正常工作

确定一下 tsconfig.json 添加了 path 是否是站点 .docgeni/public 下的 tsconfig.json,路径需要修改为相对于 .docgeni/site 的路径地址, 可以参考 docgeni-template 的配置 https://github.com/docgeni/docgeni-template/blob/master/.docgeni/public/tsconfig.json

配置文档如下:
https://docgeni.org/guides/basic/component#%E5%BC%95%E7%94%A8%E9%85%8D%E7%BD%AE

image

我看了一下,你把 examples.module.ts 改为 module.ts 试试

新版本已经支持自动生成 module.ts
image

非常感谢,这个问题已经得到解决;